Report #15774
[bug\_fix] go: github.com/user/[email protected]: verifying module: checksum mismatch
Delete the offending entries from \`go.sum\` \(or delete the whole file\) and run \`go mod tidy\` to re-download the module and re-calculate the correct checksums.
Journey Context:
A developer pulls the latest code from version control and runs \`go build\`, only to be hit with a checksum mismatch for a specific module version. They suspect a supply chain attack or a broken dependency. They check the upstream repository and the tag is still there. The root cause is often a stale or corrupted \`go.sum\` file—perhaps a dependency was re-fetched and the local cache got corrupted, or a colleague force-pushed a tag with new content \(which the Go proxy might reject, but direct fetching might hit\). The \`go.sum\` file contains the cryptographic hashes of the module zips, and if the local \`go.sum\` does not match the downloaded module or the global sum database, the build halts. Deleting the specific lines or the entire \`go.sum\` and running \`go mod tidy\` allows the Go toolchain to re-fetch the module, verify it against \`sum.golang.org\`, and regenerate a clean \`go.sum\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T00:55:55.516572+00:00— report_created — created