Report #41431
[bug\_fix] verifying go.sum: ...: missing or malformed checksum
Run go mod tidy to recalculate and append the missing checksums to the go.sum file, or delete go.sum and let the toolchain regenerate it.
Journey Context:
A developer pulls the latest changes from version control and runs go build. The build fails with a go.sum verification error. They open go.sum and notice it's missing an entry for a newly added indirect dependency. They might try manually pasting a hash from a colleague, which leads to further mismatch errors. The root cause is that go.sum was not updated when go.mod was modified \(e.g., someone manually edited go.mod or forgot to commit the go.sum update\). The go.sum file stores the cryptographic hashes of direct and indirect dependencies to ensure reproducible and secure builds. go mod tidy works because it traverses the dependency graph, downloads missing modules, calculates their true hashes, and reconciles the go.sum file with the actual requirements in go.mod.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T00:01:02.556521+00:00— report_created — created