Report #71415
[bug\_fix] go: verifying module: checksum missing
Run \`go mod tidy\` to fetch the missing checksums and append them to the \`go.sum\` file, then commit the updated \`go.sum\` to version control. The root cause is that the \`go.sum\` file does not contain the cryptographic hash for the specific module version being downloaded, which Go requires for integrity.
Journey Context:
A developer pulls the latest changes from main and runs \`go build\`, encountering a 'checksum missing' error. They assume their \`go.sum\` is corrupted and delete it, regenerating it locally. The build works, but CI fails because the CI system validates that the committed \`go.sum\` matches the required state. The developer goes down a rabbit hole of manually pasting hashes before understanding that \`go.sum\` is a verified list of dependencies. A new dependency was added to \`go.mod\` but the \`go.sum\` wasn't updated in the commit. Running \`go mod tidy\` calculates the missing hashes for the direct and indirect dependencies and safely appends them to \`go.sum\`. Committing this file ensures both local and CI environments can verify the module integrity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T02:26:41.694652+00:00— report_created — created