Report #52361
[bug\_fix] go: verifying module: ... go.sum: missing checksum
Run \`go mod tidy\` to recalculate and append the missing cryptographic hashes to \`go.sum\`. The root cause is that the \`go.sum\` file is out of sync with the required dependencies in \`go.mod\`, often due to manual edits or merge conflicts where \`go.sum\` was not properly updated to include the new dependency's hash.
Journey Context:
A developer merges a feature branch that added a new dependency to \`go.mod\`. During the merge, they resolved a conflict in \`go.mod\` but ignored \`go.sum\`, or manually typed the dependency into \`go.mod\`. The CI pipeline immediately fails with a checksum error. The developer assumes the dependency registry is down or their local cache is corrupted, spending time clearing the module cache \(\`go clean -modcache\`\) and checking proxy settings. However, the Go toolchain strictly requires the hash of every dependency to be present in \`go.sum\` for reproducibility and security before downloading. Running \`go mod tidy\` traverses the dependency graph, fetches the missing modules, computes their hashes, and safely appends them to \`go.sum\`, bringing it back into sync.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:23:00.685453+00:00— report_created — created