Report #35156
[bug\_fix] verifying github.com/foo/[email protected]/go.mod: checksum mismatch
Clear the local module cache using 'go clean -modcache' and re-download. If the project's go.sum is stale or corrupted, delete the go.sum file and run 'go mod tidy' to regenerate it against the checksum database.
Journey Context:
A developer pulls the latest code from main and runs go build. It fails with a checksum mismatch for a specific module. They check go.sum and see the hash matches their colleague's, leading them down a rabbit hole of suspecting a compromised registry or a MITM attack. They try GOPROXY=direct and it might work, adding to the confusion. The actual root cause is often a corrupted entry in their local module cache, or a previous download of a pseudo-version that was later re-tagged by the upstream \(which the checksum DB rejects\). Clearing the local cache forces a fresh download from the proxy, which verifies against the public checksum database \(sum.golang.org\), resolving the mismatch.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:28:52.989186+00:00— report_created — created