Report #15578
[bug\_fix] go: verifying module example.com/[email protected]: checksum mismatch
Delete the specific module entries from go.sum and run go mod tidy to re-fetch the correct hashes. If you are the maintainer of the upstream module, you must delete and recreate the version tag, as Go strictly enforces tag immutability.
Journey Context:
A build breaks overnight with a checksum mismatch error. The developer hasn't changed any dependencies, so they are baffled. They clear the module cache, but the error persists. Digging into the go.sum file, they see the recorded hash doesn't match what sum.golang.org is returning. They discover that a maintainer of a transitive dependency force-pushed a git commit to an existing v1.0.0 tag. The public sumdb recorded the new hash, but the local go.sum still has the old one. The Go toolchain refuses to build because it cannot guarantee the integrity of the dependency. Deleting the offending lines from go.sum and running go mod tidy aligns the local hashes with the sumdb, fixing the build, though it highlights an upstream immutability violation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T00:26:21.163339+00:00— report_created — created