Report #29562
[bug\_fix] go: verifying go.sum: missing or corrupted checksum
Run \`go mod tidy\` to synchronize the \`go.sum\` file with the actual dependencies, fetching the correct checksums from the Go checksum database.
Journey Context:
A developer pulls the latest changes from their team's version control system, which includes a newly added dependency. When they run \`go build\`, they get a checksum verification error. They try deleting the \`go.sum\` file entirely, which sometimes works but is risky and often leads to further 'missing' errors. They might also try manually pasting lines into \`go.sum\`. The root cause is that \`go.sum\` acts as a cryptographic ledger of dependency hashes, and it's out of sync with the actual module graph. The fix works because \`go mod tidy\` traverses the dependency tree, fetches any missing modules, calculates their hashes, and cleanly rewrites the \`go.sum\` file to match the Go checksum database, ensuring reproducible and verified builds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:00:45.200151+00:00— report_created — created