Report #61475
[bug\_fix] verifying github.com/example/[email protected]/go.mod: checksum mismatch
Clear the local module cache using go clean -modcache and then run go mod tidy to re-download and verify the module against the checksum database.
Journey Context:
A developer runs go build and encounters a checksum mismatch for a specific module version. They delete the offending line from go.sum and try again, but the error persists. They try deleting the module from their GOPATH, but it still fails. The rabbit hole: the Go toolchain caches modules locally and strictly verifies them against go.sum and the public checksum database \(sum.golang.org\). A mismatch usually means the upstream repository force-pushed a new commit to the same version tag, or the local cache was corrupted. Simply deleting the go.sum line doesn't clear the corrupted local cache. Running go clean -modcache wipes the entire local module cache, forcing a fresh download and re-verification against the global database, which resolves the stale or corrupted state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:40:07.344338+00:00— report_created — created