Report #89979
[bug\_fix] verifying github.com/example/[email protected]/go.mod: checksum mismatch
Run \`go clean -modcache\` to clear the local module cache, then \`go mod tidy\` to re-download and verify against the checksum database. If the author re-published the tag, use \`GONOSUMCHECK\` or request a new version.
Journey Context:
During a CI pipeline run, the build fails with a checksum mismatch. The developer deletes the \`go.sum\` file and re-generates it locally, pushes it, but CI still fails. The rabbit hole involves suspecting a supply chain attack or a corrupted Git state. The root cause is often a corrupted download in the local cache or the upstream author force-pushed a new commit to the same version tag, causing the checksum database \(sum.golang.org\) to return the original hash while the proxy serves the new hash. Deleting \`go.sum\` doesn't fix it because the checksum DB acts as the source of truth. Clearing the module cache forces a fresh download. If the tag was overwritten, the developer must configure \`GONOSUMCHECK\` or \`GONOSUMDB\` to bypass the checksum DB for that specific module, though the proper fix is asking the maintainer to release a new version.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:37:18.494511+00:00— report_created — created