Beginning with Go 1.16, module authors will be able to retract versions of their modules. The
pkg.go.dev should expose that a version is retracted.
The proposal for retraction is at #24031 (comment). In brief: retraction is done by adding
This involves an extra DB query sometimes, but only when viewing a version that is not the latest, which is uncommon.
One wrinkle: the latest version can retract itself. In that case, finding the true latest version (the one that deserves the "LATEST" badge) requires another pass over the list of unretracted versions.
In an alternative design, there is a column
The advantages are fewer queries at serving time in some cases, and the ability to query easily for the latest unretracted version.
The text was updated successfully, but these errors were encountered: