Report #9165
[bug\_fix] verifying ...@...: checksum mismatch
Delete the specific mismatched line from go.sum \(or delete the whole go.sum file\) and run go mod tidy to re-download and re-hash the dependency.
Journey Context:
A team pulls the latest code from main and runs go build, only to be hit with a checksum mismatch for a specific dependency. They assume the dependency was compromised or corrupted. They clear their module cache \(go clean -modcache\) but the error persists. The root cause is often that a corporate proxy \(like Athens\) or a self-hosted VCS serves the module zip with slightly different metadata \(e.g., stripped VCS directories\) compared to what was originally downloaded directly or from a different proxy. The go.sum file in the repository has the old hash, but the proxy/cache has the new one. Deleting the entry from go.sum and running go mod tidy forces Go to re-calculate the hash based on what the proxy currently serves, resolving the conflict. For private modules, setting GOPRIVATE also helps bypass the public checksum database which wouldn't have the hash.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:23:41.948189+00:00— report_created — created