Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix retract, and prepare for release #407

Merged
merged 2 commits into from Jun 3, 2022

Conversation

dashpole
Copy link
Contributor

@dashpole dashpole commented Jun 2, 2022

It turns out retracting a module's stable release is tricky, because you need to do a release that includes the retraction, and is greater than the retracted release:

To retract a version, a module author should add a retract directive to go.mod, then publish a new version containing that directive. The new version must be higher than other release or pre-release versions; that is, the @latest [version query](https://go.dev/ref/mod#version-queries) should resolve to the new version before retractions are considered. The go command loads and applies retractions from the version shown by go list -m -retracted $modpath@latest (where $modpath is the module path).

This means that you have to retract a release before you have released it so that the most recent release includes the retraction. This PR does that by retracting the 1.8.0 release, and also prepares for the release. After this PR, i'll push releases for both v0.32.0 and v1.8.0 for the root module. The v1.8.0 is already retracted, which will make go get fetch v0.32.0 instead of a v1.* version.

This also retracts v1.5.2, which I pushed as an attempt to fix the issue (but that didn't work as described above).

@dashpole dashpole merged commit 16663a2 into GoogleCloudPlatform:main Jun 3, 2022
@dashpole dashpole deleted the fix_retract branch June 3, 2022 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants