-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: regression of module resolution behaviour #32152
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
Here's another test case that doesn't do the right thing AFAICS, although this one fails under Go 1.12 too: https://play.golang.org/p/qDuD3BjVlmx Note that commit 623b5a2f4d2a has v2.0.5 in its history, so I think the resulting version should be |
I can't reproduce the observed behavior with a clean module cache:
I suspect that you've got a |
The |
I've just tried it again this morning and I can no longer reproduce the issue, sadly. I haven't changed my cache settings. There's something odd going on. For future reference though, when you talk about the "module cache", you're talking about what's in I'll close the issue for now. |
Correct. |
What version of Go are you using (
go version
)?On tip, module pseudo-version resolution does not seem to work correctly in some cases where it works OK under Go 1.12.
I'm using git version 2.21.0.
What operating system and processor architecture are you using (
go env
)?go env
OutputHere's a program that resolves a dependency to a pseudo-version: https://play.golang.org/p/C-wGtbN2TwA
Under Go 1.12 (or the playground) produces this result:
This is expected. Commit d8f796af33cc has v1.1.1 in its history, so the pseudo-version should include the latest predecessor version.
Under tip, I see this result:
It seems that the logic for determining predecessor versions is no longer working correctly.
The text was updated successfully, but these errors were encountered: