Report #98695
[bug\_fix] verifying github.com/foo/[email protected]/go.mod: checksum mismatch downloaded: h1:abc... go.sum: h1:def...
Delete the stale go.sum lines for the module, run \`go clean -modcache\` if a local cache or proxy may be corrupted, then regenerate hashes with \`go mod tidy\`. In CI, commit the updated go.sum and ensure all builders use the same module proxy.
Journey Context:
A teammate's PR passes locally but fails in CI with a checksum mismatch. You compare the downloaded hash with go.sum and they differ. You suspect someone force-retagged the dependency after you ran \`go mod tidy\`, or your corporate module proxy cached a rebased commit, or a replace directive in another workspace leaked a different source tree. You remove the affected go.sum entries, clear the module cache, and run \`go mod tidy\` against the canonical proxy. The new hashes match CI. The fix works because go.sum records cryptographic hashes of module contents; any deviation in the downloaded zip or go.mod triggers a hard failure by design to prevent supply-chain tampering.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-28T04:37:47.900957+00:00— report_created — created