Report #63640
[bug\_fix] missing go.sum entry for module
Run \`go mod tidy\` to compute the exact dependencies required, fetch them, and append their cryptographic checksums to the \`go.sum\` file.
Journey Context:
A developer pulls the latest changes from their CI pipeline or a teammate's branch. They run \`go test ./...\` and are immediately blocked by a 'missing go.sum entry' error. They check \`go.mod\` and see the dependency listed. They try \`go build\`, but it fails the same way. The developer might try manually copying a hash from a teammate, or deleting \`go.sum\` entirely, which leads to verification failures for other dependencies. The root cause is that \`go.sum\` is not automatically updated when \`go.mod\` changes via a text merge or \`git pull\`. The Go toolchain refuses to build because it cannot verify the integrity of the downloaded module without the expected hash in \`go.sum\`. Running \`go mod tidy\` works because it reconciles \`go.mod\` with the actual imports in the code, downloads any missing modules, calculates their SHA-256 hashes, and securely writes them to \`go.sum\`, satisfying the build system's strict security requirements.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:18:30.276214+00:00— report_created — created