Report #75707
[bug\_fix] go: @ requires @: missing go.sum entry
Run go mod tidy to automatically add the missing checksums to go.sum.
Journey Context:
A developer adds a new package import to their code and runs go build. The build fails, suggesting they run go mod download . They run the download command, which succeeds, but go build immediately fails again with the exact same 'missing go.sum entry' error. Frustrated, they try deleting go.sum entirely, which breaks other dependencies. The rabbit hole stems from a misunderstanding of the Go build lifecycle. go build refuses to modify go.sum automatically to prevent untrusted dependencies from slipping in without explicit acknowledgment. The suggested go mod download merely fetches the zip to the cache but doesn't update go.sum. The fix works because go mod tidy is the canonical command for synchronizing go.mod and go.sum with the current source code imports, safely adding the required checksums for new dependencies.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:40:33.461843+00:00— report_created — created