-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: Checksum mismatch between macOS and Windows (both on 1.11.4; first deleted go.sum) #29282
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
Duplicate of #29278. (The symlinks are in |
@bcmills is there a need to clear the module cache to get the new checksum calculation? Quick test seems to hint that is the case. (In this example, 1.11.4 populates
|
@glyn Can you try |
Yes, if you have a copy of a module that contains symlinks you'll need to run |
Thanks! A workaround was indeed to issue Ideally, "modfetch" would automatically delete cache entries from old/incompatible versions of Go, but at the very least, advice should be added to the release notes for 1.11.4. |
Related to false-positive checksum-mismatch errors: golang/go#29278 golang/go#29282
* Bump riff dependency to latest * Adjust indirect dependencies and k8s.io/apimachinery to match the changes in riff's Gopkg.lock. * Move k8s.io/apimachinery dependency from indirect to direct group in go.mod. * Redo go.sum based on Go 1.11.4 after `go clean -modcache`. See: - golang/go#29278 - golang/go#29282 * Add go.sum entries for Windows * Make unit tests pass and image relocate work on Windows Fixes https://github.com/pivotal-cf/pfs/issues/175 Fixes https://github.com/pivotal-cf/pfs/issues/135
* Bump riff dependency to latest * Adjust indirect dependencies and k8s.io/apimachinery to match the changes in riff's Gopkg.lock. * Move k8s.io/apimachinery dependency from indirect to direct group in go.mod. * Redo go.sum based on Go 1.11.4 after `go clean -modcache`. See: - golang/go#29278 - golang/go#29282 * Add go.sum entries for Windows * Make unit tests pass and image relocate work on Windows Fixes https://github.com/pivotal-cf/pfs/issues/175 Fixes https://github.com/pivotal-cf/pfs/issues/135
Since upgrading to 1.11.4, I'm seeing module checksum mismatches between macOS and Windows (both on 1.11.4).
What version of Go are you using (
go version
)?On macOS:
On Windows:
Does this issue reproduce with the latest release?
Yes as the issue is against 1.11.4. which is the latest release.
What operating system and processor architecture are you using (
go env
)?darwin/amd64 and windows/amd64.
What did you do?
After upgrading to 1.11.4, I deleted
go.sum
(because of #29278), rebuilt on macOS, and checked in the newgo.sum
.Then I pulled the above change from Windows, upgraded to Go 1.11.4, and attempted a build.
What did you expect to see?
A clean build.
What did you see instead?
Observations
Looking in the module cache on each OS, I notice that the zip files for
github.com/knative/[email protected]
are different sizes. Not sure whether this is expected, but if it's not expected, that could explain the checksum mismatch.The text was updated successfully, but these errors were encountered: