Report #76691
[bug\_fix] go: verifying go.sum: github.com/user/[email protected]/go.mod: missing go.sum entry \(or checksum mismatch\)
Run \`go mod tidy\` to recalculate and append the correct checksums to \`go.sum\`. If a dependency author force-pushed a tag \(changing the content at the same version\), clear the local module cache with \`go clean -modcache\` before running \`go mod tidy\` to fetch the new checksums.
Journey Context:
A developer pulls the latest main branch and runs \`go build\`, only to be blocked by a 'missing go.sum entry' or 'checksum mismatch' error. They try \`go mod download\` as suggested by the error output, but it fails. They investigate and realize a colleague force-pushed a Git tag \`v1.0.0\` for a shared internal dependency, altering the module's contents without bumping the version number. The Go module ecosystem relies on \`go.sum\` to ensure cryptographic integrity and reproducibility. The local \`go.sum\` and the Go module proxy still hold the old hash for \`v1.0.0\`, causing a mismatch with the newly downloaded files. The fix is to clear the local cache using \`go clean -modcache\` to remove the stale artifacts, then run \`go mod tidy\` to fetch the new version and update the \`go.sum\` file with the correct hashes. Note that force-pushing tags is strongly discouraged in Go modules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:19:01.547684+00:00— report_created — created