Report #90619
[bug\_fix] verifying module: checksum mismatch
Run go clean -modcache to clear corrupted local cache, or verify GOPROXY/GONOSUMDB settings if dealing with private modules.
Journey Context:
A developer runs go build and encounters a checksum mismatch error for a specific module version. They try deleting the module's line from go.sum and running go mod tidy, but it fails with the same mismatch. The root cause is usually a corrupted download in the local module cache, or a corporate proxy serving a repackaged zip file that differs from the checksum database \(sum.golang.org\). The Go toolchain strictly compares the hash of the downloaded module against the checksum database. The fix is to run go clean -modcache to wipe the local cache and force a fresh download. If the module is private and hosted internally, the developer must set GOPRIVATE or GONOSUMDB to bypass the public checksum database for that module.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:41:53.486926+00:00— report_created — created