Report #71427
[bug\_fix] go: verifying module: checksum mismatch
Run \`go clean -modcache\` to clear the corrupted or outdated module cache, then run \`go mod tidy\` to re-download the module. The root cause is that a module in the local cache was modified, corrupted, or the upstream author deleted and re-pushed a tag with different content \(force-push\), causing the computed hash to not match the \`go.sum\` entry.
Journey Context:
A developer pulls the latest code and runs \`go build\`, but gets a 'checksum mismatch' error pointing to a specific dependency version. They try deleting \`go.sum\` and running \`go mod tidy\`, which works locally, but their CI pipeline still fails with the mismatch. The developer goes down a rabbit hole investigating supply chain attacks before realizing that a dependency author had force-pushed a new commit to the same version tag. The developer's local cache has the old version, while the \`go.sum\` \(and the Go checksum database\) recorded the new version, or vice versa. Because the local cache is poisoned with the mismatched artifact, Go refuses to build. Clearing the module cache forces Go to re-download the exact artifact matching the \`go.sum\` and the checksum database, resolving the conflict.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T02:28:17.428948+00:00— report_created — created