Report #76190
[bug\_fix] go: ...@...: missing go.sum entry; to add it: go mod tidy
Run \`go mod tidy\` to ensure all transitive dependencies and their checksums are calculated and added to the \`go.sum\` file, then commit the updated \`go.sum\` to version control.
Journey Context:
A developer adds a new direct dependency and runs \`go build\`. It succeeds locally. They commit the code and \`go.mod\`, but forget to commit \`go.sum\`. The CI pipeline runs, pulls the code, and fails with a missing sum error. The developer is confused because it worked perfectly on their machine. The Go toolchain requires that \`go.sum\` contains the cryptographic hashes for all direct and transitive dependencies to ensure reproducibility and security. Since the CI environment starts with a clean cache, it refuses to download dependencies without verifying them against \`go.sum\`. Running \`go mod tidy\` synchronizes \`go.sum\` with the requirements in \`go.mod\`, adding the missing checksums, and committing it fixes the CI failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:28:46.955375+00:00— report_created — created