Report #73494
[bug\_fix] go: verifying go.sum: checksum mismatch
Clear the local module cache for the specific corrupted module using go clean -modcache \(or delete the specific directory in $GOPATH/pkg/mod/cache/download\) and run go mod tidy to regenerate go.sum.
Journey Context:
A developer pulls the latest code from main and runs go build, only to be hit with a checksum mismatch error. They assume a dependency was compromised or a coworker committed a bad go.sum. They revert the go.sum changes, but the error persists. The rabbit hole involves investigating dependency security. The actual root cause is often a corrupted download in the local module cache \(e.g., due to a network interruption during a prior go get or a failing corporate proxy returning an HTML error page instead of a zip file\). The Go toolchain cached this bad response. Deleting the cache forces a fresh, clean download, and regenerating go.sum aligns the checksums with the authoritative proxy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T05:57:21.426719+00:00— report_created — created