Report #76179
[bug\_fix] verifying ...@...: checksum mismatch
Delete the specific mismatched entries from the \`go.sum\` file and run \`go mod tidy\` to re-fetch the correct checksum from the checksum database. If the error persists, clear the local module cache using \`go clean -modcache\` to remove corrupted downloads.
Journey Context:
A developer pulls the latest code from version control and runs \`go build\`, only to be met with a checksum mismatch error. They suspect a compromised dependency or a corrupted git state. They try deleting the entire \`go.sum\` file and regenerating it, which works locally but breaks CI because the new \`go.sum\` doesn't match the committed one. The actual root cause is often a dependency author force-pushing a git tag, changing the commit it points to, or a corrupted download in the local module cache. The Go toolchain verifies downloaded modules against \`go.sum\` and the global checksum database. Deleting the specific lines in \`go.sum\` and re-fetching forces the toolchain to query the checksum database and get the true, verified checksum. If a tag was force-pushed, the developer must require a new, valid version of the dependency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:27:45.187364+00:00— report_created — created