Report #83471
[bug\_fix] go: verifying go.sum: missing go.sum entry for ...
Run go mod tidy or go get to download the missing dependency and update go.sum, then commit the updated go.sum to version control.
Journey Context:
A developer pulls the latest changes from main, which includes a new dependency in go.mod. They run go build and get a missing go.sum entry error. They try to manually edit go.sum by copying hashes from a colleague, or delete go.sum entirely, leading to further validation errors. The rabbit hole often involves suspecting proxy issues, CI caching bugs, or local cache corruption. The actual root cause is that Go strictly verifies downloaded modules against the cryptographic hashes in go.sum to ensure supply chain security. If a dependency is listed in go.mod but its hash is missing from go.sum, Go refuses to build. The fix is simply to let the Go toolchain calculate the hash and append it by running go mod tidy, which safely reconciles go.mod and go.sum.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:41:31.466217+00:00— report_created — created