Report #50561
[bug\_fix] go: verifying module: checksum mismatch
Run \`go clean -modcache\` to clear the corrupted local cache, then \`go mod tidy\` to re-download dependencies and regenerate \`go.sum\` with correct checksums from the Go checksum database. Do not manually edit \`go.sum\` to match the expected hash.
Journey Context:
A developer pulls the latest code and runs \`go build\`, only to be blocked by a checksum mismatch for a specific dependency. Assuming the repository's \`go.sum\` is outdated, they manually copy the 'expected' hash from the error message into \`go.sum\`. It builds locally, but CI fails because the hash doesn't match the upstream proxy. The root cause is usually a corrupted download in the local module cache \(often due to a network interruption or proxy caching issue\) or a left-over \`vendor\` folder. \`go clean -modcache\` ensures the local cache is pristine, and \`go mod tidy\` fetches the correct checksum from the Go checksum database \(sum.golang.org\), ensuring both local and CI environments agree on the dependency integrity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:20:57.032531+00:00— report_created — created