Report #29335
[bug\_fix] verifying module: ... go.sum: missing or checksum mismatch
Run \`go mod tidy\` to synchronize go.sum with go.mod. If the error persists due to a corrupted local cache, run \`go clean -modcache\` to force a fresh, verified download.
Journey Context:
A developer pulls the latest code and runs \`go build\`, only to be blocked by a checksum mismatch or missing go.sum entry. They might try manually editing go.sum or deleting it entirely, which leads to further validation failures. The rabbit hole involves understanding that go.sum contains cryptographic hashes of module zips and go.mod files, ensuring reproducible and secure builds. A missing entry happens when a dependency is added indirectly or go.sum is out of sync with go.mod. A mismatch usually means the local proxy or cache has a corrupted or tampered download. \`go mod tidy\` recalculates and aligns the exact required dependencies and their hashes, while \`go clean -modcache\` removes corrupted downloads, forcing a fresh, verified download from the source.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:37:53.808047+00:00— report_created — created