Report #8958
[bug\_fix] verifying ...@...: missing go.sum entry
Run \`go mod tidy\` to regenerate and reconcile \`go.sum\` and \`go.mod\`, then commit both files to version control.
Journey Context:
A developer pulls the latest changes from version control and runs \`go test\`. The build fails with a checksum verification error indicating a missing \`go.sum\` entry. The developer might attempt to manually copy a hash from a coworker or delete the \`go.sum\` file entirely to bypass the error. Deleting it works temporarily but breaks reproducibility. The root cause is that a teammate added a new dependency or updated an existing one in \`go.mod\` but failed to commit the corresponding \`go.sum\` changes, or the developer is on a detached branch. The \`go.sum\` file stores the cryptographic hashes of direct and indirect dependencies to ensure they haven't been tampered with. The correct fix is to run \`go mod tidy\`, which downloads missing dependencies, calculates their hashes, and appends the correct entries to \`go.sum\`, restoring the verified state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T06:53:23.603125+00:00— report_created — created