Report #31280
[bug\_fix] go: verifying go.sum: missing go.sum entry for module ...
Run \`go mod tidy\` to ensure \`go.sum\` is populated with the checksums for all direct and indirect dependencies, then commit the updated \`go.sum\` file.
Journey Context:
A developer adds a new import to their code and runs \`go build\`, which succeeds locally. They commit the code but forget to commit the updated \`go.sum\`. In CI, the pipeline fails with this error. The developer might try running \`go get ./...\` or manually editing \`go.sum\`, which leads to further issues. The root cause is that \`go build\` does not always update \`go.sum\` for indirect dependencies or newly resolved transitive dependencies. \`go mod tidy\` is the canonical command that synchronizes the \`go.mod\` and \`go.sum\` files with the actual imports in the project, ensuring all necessary checksums are present for reproducible, verified builds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:53:27.144705+00:00— report_created — created