Report #17667
[bug\_fix] go: verifying @: checksum mismatch
Delete the corrupted entry from go.sum, clear the specific module from the local cache using 'go clean -modcache', and run 'go mod download @' to fetch a verified copy from the origin or proxy.
Journey Context:
A developer pulls the latest code from version control and runs 'go build', only to be hit with a checksum mismatch. This is a security feature of Go modules, designed to prevent supply-chain attacks where a dependency's content changes without its version changing. The developer's first instinct is often that the remote repository was hacked, but usually, the local cache or go.sum was corrupted \(e.g., by a git merge conflict in go.sum, or a flaky network connection during a previous download that wrote a truncated zip\). The fix works by purging the bad data from both the integrity file \(go.sum\) and the local cache \($GOPATH/pkg/mod/cache\), forcing the Go toolchain to fetch a pristine copy and recalculate the SHA-256 hash against the checksum database \(sum.golang.org\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:56:53.735855+00:00— report_created — created