Report #37996
[bug\_fix] go: ... requires ...: missing go.sum entry; to add it: go mod tidy
Run \`go mod tidy\` to calculate the exact transitive dependencies, populate the \`go.sum\` file with their checksums, and remove stale entries. Commit the updated \`go.sum\` and \`go.mod\` files.
Journey Context:
A developer pulls the latest code from the main branch and tries to run \`go build\` or \`go test\`, but it immediately fails with a 'missing go.sum entry' error. They think, 'I didn't add any new dependencies, why is this failing?' They look at the \`go.mod\` and see a new dependency was indeed added by a teammate, but the teammate forgot to commit the \`go.sum\` file, or the CI server is running a strict \`go mod verify\` which fails because the local \`go.sum\` is out of sync. The developer tries \`go get \`, which adds it, but doesn't clean up stale entries or fetch transitive dependencies properly. The actual established fix is \`go mod tidy\`, which ensures the \`go.sum\` perfectly reflects the transitive dependency graph of the current module. Running \`go mod tidy\` resolves the missing entry by downloading the module and calculating its checksum, ensuring reproducible builds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:15:07.261239+00:00— report_created — created