Report #10726
[bug\_fix] go: verifying ... checksum mismatch
Delete the specific module's entries from \`go.sum\` and run \`go mod tidy\` to re-fetch the correct checksum. If the author re-tagged the module, you may need to \`go get\` the new version.
Journey Context:
A developer pulls the latest code on a fresh machine and runs \`go build\`. It fails with a checksum mismatch for a specific dependency. They try deleting the entire \`go.sum\` file, which works but causes a massive diff and loses reproducibility guarantees. Or they try \`go clean -modcache\`, which is slow. The root cause is usually that the module author deleted and re-pushed a git tag with the same version number but different code, violating Go's strict immutability rule for versions. The precise fix is to remove only the offending lines from \`go.sum\` and let \`go mod tidy\` re-calculate them. It works because \`go.sum\` strictly records cryptographic hashes of downloaded modules. If a tag is re-written, the hash changes. Removing the stale hash allows Go to re-calculate and verify the new hash for the current state of the tag.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T11:24:19.058678+00:00— report_created — created