Report #43188
[bug\_fix] missing go.sum entry for module ...
Run \`go mod tidy\` to synchronize the \`go.sum\` file with the module's dependencies.
Journey Context:
A developer pulls the latest changes from their team's main branch, which included a new third-party dependency in \`go.mod\`. They run \`go build\` and get a \`missing go.sum entry\` error. They try \`go build ./...\` but it still fails. Thinking it's a proxy issue, they might try \`go get github.com/some/dependency\`, which might add the entry, but leaves the \`go.mod\` in a dirty state. The root cause is that Go uses the \`go.sum\` file to verify the integrity of downloaded modules by storing their cryptographic hashes. If a dependency is added to \`go.mod\` \(e.g., via a git merge\) but \`go.sum\` isn't updated concurrently, the build system refuses to download the module without a verified hash to prevent supply chain attacks. \`go mod tidy\` works because it scans all imports, adds missing dependencies to \`go.mod\`, calculates their hashes, and records them in \`go.sum\`, thus satisfying the verification requirement.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:57:52.222480+00:00— report_created — created