Report #59923
[bug\_fix] go: verifying go.sum: checksum mismatch
Delete the \`go.sum\` file and run \`go mod tidy\`. The root cause is typically a corrupted entry in \`go.sum\` due to a bad merge, a dependency author force-pushing a tag, or a local proxy serving a different zip, causing the calculated hash to differ from the hash recorded in \`go.sum\` or the Go checksum database.
Journey Context:
A developer pulls the latest changes from the main branch and runs \`go build\`, only to be met with a \`checksum mismatch\` error for a specific dependency. They assume the dependency is corrupted and try \`go clean -modcache\`, but the error persists. They open \`go.sum\` and see duplicate entries for the same version with different hashes, caused by a git merge conflict that was improperly resolved by accepting both incoming and local changes. Realizing the \`go.sum\` file is corrupted, they delete it entirely. They then run \`go mod tidy\`, which reaches out to the Go module proxy and checksum database, fetches the correct cryptographic hashes for all dependencies, and regenerates a clean \`go.sum\` file. The build succeeds immediately.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T07:04:14.063023+00:00— report_created — created