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: go module does not work as expected, reports 'checksum mismatch' #30978
Comments
@daixiang0 If you review the symptoms and workaround described in #29278 (comment) and #29278 (comment), does it look like you might be seeing #29278? |
@thepudds clean mod cache does not work for me
|
@thepudds any input? |
@daixiang0 You mentioned in your original report that you're on Go 1.11. In Go 1.11.4, there was a change to the way we compute the hashes that go into go.sum. These are the issues that @thepudds linked to. It's very likely that this go.sum file was written with a Go version after 1.11.4, so they have the new hashes, but your installed Go binary is still producing the old hashes. Could you try upgrading to 1.11.4 or newer? Failing that, could you please run (The change in hashes was an unforeseen consequence, and definitely something we'll avoid in the future, but we can't go back and change 1.11.4 at this point). |
@jayconrod thanks very much, after upgrade it works. |
@jayconrod another question, why unset GOPATH can work? |
@daixiang0 Glad to hear. I'll close this.
|
@jayconrod Thanks you again! |
With a env with GOPATH and download many pkgs:
What version of Go are you using (
go version
)?reproduce with follow cmd:
What operating system and processor architecture are you using (
go env
)?go env
Outputunset GOPATH,
make
works.The text was updated successfully, but these errors were encountered: