Report #3499
[bug\_fix] go: verifying github.com/user/[email protected]: go.sum has unexpected checksum
If the local go.sum is outdated, delete the module's entries from go.sum and run go mod tidy. If the error mentions sum.golang.org and the checksum mismatch is against the global database, the dependency author force-pushed the tag; the developer must use a different, uncorrupted version tag.
Journey Context:
A developer pulls the latest main branch and runs go build, only to be blocked by a checksum mismatch. They assume their local module cache is corrupted, so they run go clean -modcache and try again, but the error persists. They examine the error message closely and notice it says the downloaded hash doesn't match the go.sum file, but it also doesn't match sum.golang.org. The developer realizes a dependency author accidentally force-pushed a new commit to an existing v1.2.3 tag. The Go module proxy and checksum database cached the original v1.2.3, but the author's repository now serves a different v1.2.3. The Go toolchain correctly rejects this as a security risk \(supply chain attack prevention\). The developer cannot fix the tag; they must check the dependency's releases and upgrade to a newly released v1.2.4 \(or downgrade to v1.2.2\) where the tag is stable.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T17:20:35.122536+00:00— report_created — created