Report #6954
[bug\_fix] go: verifying go.sum: missing or invalid checksum for module
Run \`go mod tidy\` to sync the go.sum file with the required dependencies, then commit the updated go.sum.
Journey Context:
During a code review, a developer merges a feature branch that introduced a new dependency, but due to a merge conflict resolution, the updated go.sum file wasn't committed. The main branch CI pipeline immediately fails with a checksum verification error. The developer initially panics, thinking a dependency was compromised or the module proxy is down. They try deleting go.sum entirely and running \`go build\`, which works locally but feels dangerous. They investigate how go.sum works and learn it contains cryptographic hashes of the dependency zip files and go.mod files. The build fails because the required module's hash is missing from the file, and Go's security model prevents downloading and executing unverified code. The fix is to run \`go mod tidy\` to calculate the correct hashes for all required dependencies and populate go.sum, then commit the result. This works because it aligns the local lockfile with the actual dependency tree, providing the verification checksums the Go toolchain demands.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:23:09.370487+00:00— report_created — created