Report #13156
[bug\_fix] go: missing go.sum entry for module providing package ...
Run \`go mod tidy\` to synchronize the \`go.sum\` file with the module's actual dependencies, then commit the updated \`go.sum\` to version control.
Journey Context:
A developer adds a new third-party import to their code and runs \`go build\` locally, which succeeds. They push to CI, but the CI pipeline fails with a missing go.sum entry. The developer is confused because the code compiles locally. They discover that their local \`go.sum\` was implicitly updated, but they didn't stage it for commit. Furthermore, the CI pipeline runs with \`GOFLAGS=-mod=readonly\` to prevent supply chain attacks, meaning it strictly refuses to update \`go.sum\` on the fly. Running \`go mod tidy\` locally recalculates the exact dependency tree, downloads missing modules, and records their cryptographic hashes in \`go.sum\`. Committing this file ensures the CI environment can verify the dependencies without modifying \`go.sum\` dynamically.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:54:24.877244+00:00— report_created — created