-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: pseudo-versions for post-v1 commits use the wrong major version #29262
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
Comments
Dup of #27171, but we should make sure the tests cover this case. |
This might not be an exact duplicate of #27171, since it also interacts non-trivially with |
At current head:
It should instead be something like
(CC @sylr) |
For readability it would be nice if the tag would be kept in the go.mod -> |
That's (an interesting special case of) #25898. |
FWIW, from looking at this somewhat briefly (and hence might not be correct), it seems this issue is specific to a v2+ module and asking for a commit (current meaning of
I suspect but have not confirmed that this particular problem pattern would not happen for someone following the "Major Branch" approach for a v2+ module with different branches for v1 vs v2 vs v3 with the appropriate semver tags on their respective branches. CC @rogpeppe |
That commit actually has a However, the It also means I need to find a different example for |
Change https://golang.org/cl/181881 mentions this issue: |
Go version:
go version devel +976bab6003 Fri Dec 14 09:10:02 2018 +0000 darwin/amd64
rsc.io/quote's latest released version is v1.5.2.
But go chooses v0.0.0-... as the pseudo version selected when using the master branch.
Possibly related to #27171 but needs investigation.
@bcmills
The text was updated successfully, but these errors were encountered: