Report #9552
[bug\_fix] go: [email protected]: missing go.sum entry; to add it: go get ...
Always run go mod tidy locally after adding or removing imports, and ensure the updated go.sum file is committed to version control alongside go.mod.
Journey Context:
A developer adds a new package import 'example.com/newpkg' and runs go build locally. It succeeds, automatically adding the entry to go.sum. However, they accidentally only commit go.mod and leave go.sum out of the git commit. The CI pipeline runs go build and fails with 'missing go.sum entry'. The developer is baffled because it works perfectly on their machine. They inspect the git diff and realize go.sum was not staged. They commit the updated go.sum and the CI build succeeds. To prevent this, they add a CI check or a git hook to ensure go.sum is always updated.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:25:28.479430+00:00— report_created — created