Report #66595
[bug\_fix] go: verifying go.sum: ...: missing go.sum entry
Run \`go mod tidy\` to recalculate and populate the \`go.sum\` file with the correct cryptographic hashes, then commit the updated \`go.sum\`.
Journey Context:
A developer pulls the latest code from version control and runs \`go build\`, but immediately hits a 'missing go.sum entry' or 'go.sum database collision' error. They try \`go build ./...\` but it still fails. They might manually delete \`go.sum\` and run \`go mod download\`, which temporarily fixes it but breaks CI because the CI checks out the old \`go.sum\`. The root cause is that the \`go.sum\` file is out of sync with the actual dependencies resolved in \`go.mod\`—perhaps a coworker added a dependency in \`go.mod\` but forgot to commit the updated \`go.sum\`, or a transitive dependency was updated. \`go mod tidy\` works because it prunes unused dependencies and calculates the exact hashes for all direct and indirect dependencies, ensuring \`go.sum\` perfectly reflects the required module graph.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:15:36.495740+00:00— report_created — created