-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/go: suggestion to use go mod download does not work #50934
Comments
I assume this was using a |
Yes: |
Reproduced:
|
This is kind of an edge-case interaction between I think what's happening is:
This will probably need a bit more thought to get right. Perhaps if we fail to load the module graph we should report any known version-inconsistencies before we report checksum errors. |
I ran into something that looks like the same issue in franz-go today.
Running
Would be great to see this fixed - it was very confusing! |
I was having the same problem. Using goimports returns:
And it would add |
I solved this problem by |
I ran into this just now after upgrading x/mod in x/tools, running tests from the x/tools/gopls module:
The error message suggests that
go mod download
will fix the missing go.sum entry, but this does not work. I had togo mod tidy
.Can this suggestion be made more accurate?
This looks similar to #46528, but not quite a duplicate. Apologies if I missed another dupe.
CC @bcmills @matloob
The text was updated successfully, but these errors were encountered: