Report #4447
[bug\_fix] verifying module: checksum mismatch
Remove the stale go.sum entries and the affected module from the module cache, then run 'go mod tidy' followed by 'go mod verify'. Do not bypass GOSUMDB unless you explicitly trust the alternate source.
Journey Context:
A teammate commits an updated go.sum from macOS. On your Linux builder 'go build' fails with 'verifying github.com/foo/[email protected]: checksum mismatch'. You first worry about a supply-chain attack, but the diff shows someone edited go.mod by hand and copied a partial go.sum from another project. The go command computes a cryptographic hash of the exact module zip contents and compares it with go.sum; any byte or metadata difference fails the build. You stop, run 'rm go.sum', 'go clean -modcache', and 'go mod tidy' so the toolchain fetches each module through the configured GOPROXY and records fresh hashes against the trusted checksum database. 'go mod verify' confirms the local cache matches, and the build is reproducible across machines.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T19:30:35.369774+00:00— report_created — created