Report #12426
[bug\_fix] go: verifying [email protected]: checksum mismatch
Clear the local module cache with \`go clean -modcache\` and then run \`go mod tidy\` to re-download and verify the dependencies.
Journey Context:
A developer pulls the latest changes and runs \`go build\`, but it fails with a checksum mismatch for a specific dependency. They check the \`go.sum\` file and it looks identical to the repository's. The rabbit hole begins: they suspect a supply chain attack or a corrupted Git state. However, the root cause is often that a dependency author force-pushed a new commit to an existing version tag \(violating Go's immutability expectations\), or the developer's local module cache became corrupted. The local cache has the old or corrupted zip file, while \`go.sum\` expects the original hash. Clearing the cache forces Go to fetch a fresh copy from the proxy, which either resolves the corruption or definitively proves the tag was mutated \(requiring the dependency author to release a new version\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T15:53:58.225279+00:00— report_created — created