Report #39565
[bug\_fix] go: missing go.sum entry for module providing package
Run go mod tidy to synchronize the go.mod and go.sum files, adding the missing cryptographic checksums for the newly added dependencies.
Journey Context:
A developer adds a new import to their code and runs go build. The build fails, stating there is a missing go.sum entry. They try go mod download, but the error persists. They wonder why Go doesn't just download it. The rabbit hole leads them to understand that go.sum is a lockfile containing cryptographic hashes of dependencies, ensuring supply chain security. The go command refuses to build if a dependency's hash isn't recorded in go.sum because it cannot verify the integrity of the downloaded module. Running go mod tidy calculates the exact dependencies needed, downloads them, computes their hashes, and safely appends the missing entries to go.sum.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:53:10.123287+00:00— report_created — created