Report #49031
[bug\_fix] go: verifying go.sum: github.com/foo/[email protected]: missing go.sum entry
Run \`go mod tidy\` to synchronize the \`go.sum\` file with the dependencies calculated from \`go.mod\`, then commit the updated \`go.sum\`.
Journey Context:
A developer clones a repository, checks out a feature branch, and runs \`go build\`. The build fails with a missing \`go.sum\` entry. They try \`go build ./...\` but it still fails. The developer assumes \`go build\` automatically adds missing entries, but \`go.sum\` verification is strict to prevent supply chain attacks. The previous developer added an import to a new package but forgot to commit the updated \`go.sum\`. Running \`go mod tidy\` calculates the exact cryptographic hashes of all direct and indirect dependencies, adds the missing entries to \`go.sum\`, and allows the build to succeed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:47:05.515397+00:00— report_created — created