Report #14422
[bug\_fix] go: verifying github.com/example/[email protected]/go.mod: checksum mismatch
Delete the specific offending lines for that module and version from the \`go.sum\` file, then run \`go mod tidy\` to re-fetch the correct canonical hash from the 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 error. The error indicates that the hash of a downloaded dependency doesn't match the hash recorded in \`go.sum\`. Panicking slightly about supply chain attacks, they investigate. They try \`go mod tidy\`, but it fails with the same error. They might try deleting the specific module from the cache or the entire cache, but the re-download yields the same failure. The rabbit hole leads them to realize that a colleague might have force-pushed a new commit to the \`v1.2.3\` tag, or a corporate proxy served a slightly different artifact. The \`go.sum\` file is now out of sync with the canonical hash stored in the Go checksum database \(sum.golang.org\). Deleting the lines from \`go.sum\` and running \`go mod tidy\` forces Go to re-calculate the hash, verify it against the checksum database, and insert the correct, canonical hash back into \`go.sum\`, restoring build integrity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:25:55.358653+00:00— report_created — created