Report #81931
[bug\_fix] go: verifying go.sum: missing go.sum entry for module ...
Run go mod tidy to recalculate and add the missing checksums to go.sum.
Journey Context:
A developer pulled the latest changes from their CI pipeline, which included a new dependency in go.mod. When they ran go build, it failed immediately with a checksum verification error. They tried manually copying the hash from a coworker's machine or deleting go.sum entirely, which led to other validation errors or flaky builds. The root cause is that go.sum records the cryptographic checksums of specific module versions. If a dependency is added to go.mod \(e.g., via a merge\) without the corresponding go.sum being updated, the Go toolchain refuses to download the module because it cannot verify its integrity against the missing checksum. go mod tidy safely resolves this by downloading the missing modules, computing their hashes, and appending the correct entries to go.sum, ensuring reproducible and secure builds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:07:07.418645+00:00— report_created — created