Report #81741
[bug\_fix] go: verifying ... checksum mismatch
Run go clean -modcache to clear the corrupted local module cache, then go mod tidy to re-download and verify against the checksum database. Do not just delete go.sum.
Journey Context:
A developer pulls the latest code from main and runs go build. It fails with a checksum mismatch for a specific dependency version. They assume go.sum is wrong and delete it, regenerating it. It works locally, but CI still fails. The rabbit hole deepens: they think the dependency was compromised or the proxy is broken. The actual root cause is usually a corrupted file in the local module cache \(often caused by a failed download, a proxy returning an HTML error page instead of a zip, or a process interrupt\). The Go toolchain compares the downloaded artifact's hash against the checksum database \(sum.golang.org\), and if the local cached file is corrupted, it mismatches. Deleting go.sum just bypasses the local project check, but the database check still fails. Clearing the modcache forces a fresh, clean download, resolving the corruption.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:48:04.530077+00:00— report_created — created