Fix retract, and prepare for release #407
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.
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).