Report #65344
[bug\_fix] go: missing go.sum entry for module ...
Run \`go mod tidy\` to calculate and add the missing checksums to \`go.sum\`, ensuring the module graph is consistent.
Journey Context:
A developer adds a new third-party package import to their code and runs \`go build\`. The build fails with a 'missing go.sum entry' error. The developer initially tries to manually copy-paste a hash into \`go.sum\` from a colleague's branch, but this leads to further formatting errors and 'malformed go.sum' issues. They then try \`go mod download\`, which downloads the module but doesn't update \`go.sum\`. Finally, they run \`go mod tidy\`, which analyzes the imports, prunes unused modules, and correctly populates the \`go.sum\` file with verified checksums. This works because \`go mod tidy\` synchronizes the \`go.sum\` file with the exact requirements of the current module's imports, whereas \`go build\` only checks if the requirements are met and refuses to modify \`go.sum\` in some versions/contexts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:09:34.219731+00:00— report_created — created