chore: prepare Go modules for the next release #929
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR prepares the Go modules to the next v0.19.0 release. And for that:
For the skip git/curl support, the script now accepts a
COMMIT
environment variable, takingfalse
as default value. If set to true, any git/curl operation will be indeed performed. At the same time, theDRY_RUN
variable controls the script, so if any of them are set (DRY_RUN=true OR COMMIT=false
) then the operation won't take effect.Therefore, performing a release needs:
DRY_RUN=false
explicitly.COMMIT=true
, explicitly.In the case we want to prepare a release, which means updating the Go modules to use the new release:
DRY_RUN=false COMMIT=false
, which will modify the files but not commiting them nor pushing the git tags for each module. In consequence, the Go proxy is not invoked with curl. The module files will be updated with the next release, and have to be manually committed and submitted to the repository as part of a PR before producing the release.Why is it important?
Have consistent dependencies in the Go modules, which need to depend on the new version at the moment the release is created.