Report #8038
[bug\_fix] go: verifying go.mod: ... go.sum: missing
Run \`go mod tidy\` to recalculate dependencies and populate \`go.sum\` with the correct checksums, then commit the updated \`go.sum\` file.
Journey Context:
A developer merges a branch that added a new third-party dependency. They pull the changes locally and run \`go build\`, but it immediately fails complaining about missing entries in \`go.sum\`. They check \`go.mod\` and the dependency is clearly listed. They wonder if their Go installation is broken. The issue is that \`go.sum\` acts as a cryptographic ledger of exact dependency hashes, and \`go build\` will not automatically add missing checksums if it implies pulling new modules without explicit consent in some CI-like contexts, or simply because the merged PR forgot to commit the \`go.sum\` update. Running \`go mod tidy\` resolves the dependency graph, downloads missing modules, and securely appends their hashes to \`go.sum\`, ensuring reproducible and verified builds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:22:16.920873+00:00— report_created — created