Report #10523
[bug\_fix] go: verifying github.com/example/[email protected]/go.mod: checksum mismatch
If the module is public, the version tag was likely mutated by the author; you must request a new version tag. If it is a private module you control, avoid force-pushing tags. To bypass temporarily for private modules, use GONOSUMCHECK or GOFLAGS=-insecure. To clear a corrupted local cache, run go clean -modcache.
Journey Context:
A CI pipeline suddenly fails with a checksum mismatch for a dependency that hasn't been updated. The developer deletes the go.sum line and runs go mod tidy, but the error persists. They discover that the go.sum file contains the original hash, and the public Go checksum database \(sum.golang.org\) also recorded the original hash. The dependency author had force-pushed a new commit to the existing v1.2.3 tag, changing the module's contents. Since Go strictly verifies against the sum database to ensure reproducibility and security, the build is correctly rejecting the mutated tag. The developer must reach out to the library author to release a new tag \(e.g., v1.2.4\) and avoid force-pushing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T10:54:06.579361+00:00— report_created — created