Report #16581
[bug\_fix] go: verifying go.sum: ...: checksum mismatch
Delete the mismatched entry from the \`go.sum\` file and run \`go mod tidy\` to re-download and verify the module. If this is a private module, set \`GOPRIVATE\` or \`GONOSUMDB\` to bypass the public checksum database.
Journey Context:
A developer pulls the latest changes from version control and runs \`go build\`, only to be blocked by a checksum mismatch for a specific module. They might try deleting the entire \`go.sum\` file, which works but is a heavy-handed approach that discards valid checksums. Looking closer, the error indicates the hash of the downloaded module doesn't match the \`go.sum\` entry. This often happens if a module author force-pushed a tag, or if the module is private and the public checksum DB returns an error. For private modules, the public DB cannot verify them, so setting \`GOPRIVATE\` is the correct fix. For public modules, deleting the specific line from \`go.sum\` and letting \`go mod tidy\` recalculate it resolves the stale or corrupted entry.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T02:57:44.434392+00:00— report_created — created