Report #58230
[bug\_fix] go: verifying github.com/foo/[email protected]/go.mod: checksum mismatch
Run \`go clean -modcache\` to purge the corrupted local cache, then \`go mod tidy\` to re-download and verify.
Journey Context:
A developer pulls the latest code from main and runs go build, only to be blocked by a checksum mismatch error for a specific dependency version in go.sum. They delete the go.sum file and regenerate it with go mod tidy, but the exact same checksum error appears. They suspect a supply chain attack or a broken upstream repository. The rabbit hole deepens as they inspect the Go proxy. The actual root cause is local module cache corruption—perhaps a previous download was interrupted or a corporate proxy served a broken artifact that got cached locally. Deleting go.sum doesn't help because Go re-verifies against the cached, corrupted file. The fix is to run go clean -modcache to purge the local cache, forcing Go to fetch a pristine copy from the proxy, which then matches the expected checksum.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:13:50.956550+00:00— report_created — created