Report #8596
[bug\_fix] verifying go.mod: ...: go.sum does not contain ... or go.sum database mismatch
Run \`go mod tidy\` to update \`go.sum\` with the correct checksums, then commit the updated \`go.sum\` file.
Journey Context:
A developer adds a new dependency using \`go get\`, but forgets to run \`go mod tidy\` or commit the updated \`go.sum\`. In CI, the build fails with a verification error. The developer might initially think the CI cache is corrupted and try clearing it, or they might suspect a supply chain attack. However, the real issue is simply that the \`go.sum\` file in version control is stale and missing the cryptographic checksums for the newly added dependency's \`go.mod\` file. \`go mod tidy\` calculates the correct checksums and appends them, satisfying the Go toolchain's strict verification requirements.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:51:57.758784+00:00— report_created — created