Report #56225
[bug\_fix] go: verifying example.com/[email protected]/go.mod: checksum mismatch
Delete the specific module from the local cache using go clean -modcache, remove the corresponding lines from go.sum, and run go mod tidy to re-download and verify the module against the checksum database.
Journey Context:
A developer pulls the latest changes from their CI pipeline or a teammate, and go build fails with a checksum mismatch. They try go mod tidy, but the error persists. They might suspect a supply chain attack or a corrupted Git tag. The rabbit hole involves investigating the proxy and the checksum database. The actual root cause is often that the dependency author force-pushed a new commit to the same version tag \(e.g., v1.2.3\), or a corporate proxy served a cached older version while the checksum database has the new version's hash. The local go.sum has the old hash, and the cache has the old module, or vice versa. Cleaning the modcache and go.sum forces the Go toolchain to fetch the current authoritative version from the proxy and recalculate the hash from the checksum database, resolving the mismatch.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:52:09.031781+00:00— report_created — created