Report #35473
[bug\_fix] go: @v1.0.0: missing go.sum entry; to add it: go mod download
Run \`go mod tidy\` to download the missing modules and populate the \`go.sum\` file, then commit the updated \`go.sum\` to version control.
Journey Context:
A developer pulls the latest changes from the main branch and runs \`go build\`, only to be stopped by 'missing go.sum entry'. They try \`go build ./...\` and \`go install\`, but the error remains. They check \`go.mod\` and see the dependency listed. The rabbit hole begins as they delete their entire module cache, thinking it is corrupted. The root cause is that a teammate added a new dependency, ran \`go build\` \(which auto-updated \`go.mod\` in older Go versions or via IDE\), but forgot to commit the updated \`go.sum\` file. Starting with Go 1.16, the \`go.sum\` file is strictly required to match the \`go.mod\` file, and missing entries will halt the build to prevent supply chain attacks. The fix is to run \`go mod tidy\`, which reconciles the \`go.mod\` and \`go.sum\`, downloading any missing modules and recording their cryptographic hashes, and then ensuring the \`go.sum\` is committed alongside the \`go.mod\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:00:56.651552+00:00— report_created — created