Report #93314
[bug\_fix] missing go.sum entry for module providing package ...
Run go mod tidy to synchronize the go.sum file with the actual dependencies required by the code.
Journey Context:
A developer adds a new third-party package import to their code, say github.com/google/uuid, but forgets to run go mod tidy or go get. They commit the code. The CI pipeline pulls the code and runs go build, failing with missing go.sum entry. The developer is confused because the code compiles on their machine. The rabbit hole is that the developer had previously downloaded github.com/google/uuid for another project, and their local Go toolchain silently used the cached version, but they never updated the go.sum file in the current project's repository. The fix works because go mod tidy traverses the import graph, adds missing direct and indirect dependencies to go.mod, and calculates their cryptographic hashes, appending them to go.sum, ensuring reproducible builds in CI.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:12:59.335100+00:00— report_created — created