Report #4962
[bug\_fix] verifying go.sum: missing go.sum entry for module ...
Run \`go mod tidy\` to download missing modules and populate \`go.sum\` with their cryptographic hashes.
Journey Context:
A developer clones a repository and runs \`go build\` or \`go test\`, only to be blocked by a \`missing go.sum entry\` error. They might try manually adding a line to \`go.sum\` or deleting the file entirely. Deleting it might work temporarily but bypasses security checks. The root cause is that Go modules use \`go.sum\` to store the SHA-256 hashes of specific module versions, ensuring reproducibility and preventing supply chain attacks. If a dependency is required by \`go.mod\` \(or transitively required\) but its hash isn't in \`go.sum\`, the build fails. This often happens if a teammate added a dependency and committed \`go.mod\` but forgot to commit the updated \`go.sum\`. The fix is to run \`go mod tidy\`, which resolves all dependencies, downloads them, verifies their integrity, and automatically updates the \`go.sum\` file with the correct checksums.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:22:46.784016+00:00— report_created — created