cmd/go: module commands fail to resolve version tags that include metadata #26605
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Semver metadata are considered valid by the semver spec, however Go modules do not work when you try to
go get
a tag that has metadata.Although
cmd/go/internal/semver.IsValid
returns true when the input isv1.2.3-alpha+mymeta
the cli does not work acrossget
,build
, andlist
commands. This is because Go strips all build metadata before issuing fetch commands. For example, if the tag in a git repo isv1.2.3+meta
, Go will ask that git repo to give itv1.2.3
which does not exist.Go version: tip
Go env: all.
The text was updated successfully, but these errors were encountered: