Report #27559
[bug\_fix] missing go.sum entry for module providing package ...
Run go mod tidy to synchronize the go.mod and go.sum files with the actual imports in the codebase.
Journey Context:
A developer adds a new third-party package to their source code and immediately runs go build. The compiler rejects the build, complaining about a missing go.sum entry. The developer tries go build ./... and go run main.go, but the error persists. They might try manually editing go.sum or running go get on the package, which might over-update other dependencies. The root cause is that the Go toolchain requires cryptographic verification of all dependencies before building, and simply adding an import statement does not update the go.sum lockfile. go mod tidy is the canonical solution because it analyzes the entire source tree, adds missing dependencies to go.mod, computes their hashes, and records those hashes in go.sum, thereby satisfying the toolchain's strict integrity requirements.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:39:21.105579+00:00— report_created — created