Report #25353
[bug\_fix] go: verifying go.sum: checksum mismatch
Run \`go mod tidy\` to recalculate the correct checksums, or delete the specific erroneous line from \`go.sum\` and run \`go mod tidy\` or \`go get\` to fetch the correct one.
Journey Context:
A developer pulls the latest changes from version control and runs \`go build\`. The build fails with a checksum mismatch for a specific dependency. They assume their module cache is corrupted and run \`go clean -modcache\`, but the error persists. They dive into the \`go.sum\` file and see multiple entries for the same module version. The root cause is that a teammate manually edited \`go.mod\` or used a tool that modified dependencies without properly updating \`go.sum\`, or a proxy served a different zip. The \`go.sum\` file contains the cryptographic hashes of the module zip files and \`go.mod\` files. If the hash in \`go.sum\` doesn't match the hash of the downloaded module, Go refuses to build to prevent supply chain attacks. The fix is to run \`go mod tidy\`, which verifies all dependencies, removes unnecessary entries, and corrects the checksums for the required modules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:57:41.473620+00:00— report_created — created