Report #10157
[bug\_fix] go: verifying go.sum: missing go.sum entry for module ...
Run \`go mod tidy\` to download the missing modules, calculate their cryptographic hashes, and append them to the \`go.sum\` file. The root cause is that \`go.sum\` acts as a lockfile of hashes, and a dependency was added or changed in \`go.mod\` without updating \`go.sum\`.
Journey Context:
A developer is setting up a fresh CI pipeline. They check out the code and run \`go build\`. The pipeline fails with \`verifying go.sum: missing go.sum entry\`. The developer is confused because the build works on their local machine. They dig into the CI logs and notice that a colleague recently bumped a dependency in \`go.mod\` via the GitHub UI but forgot to commit the corresponding \`go.sum\` changes. The developer's local build worked because they had the module cached, but the clean CI environment tried to verify the missing hashes and failed. They try running \`go build ./...\` locally, which doesn't fix the missing entry. They then run \`go mod tidy\`, which resolves all imports, downloads the missing module, computes its SHA256 hash, and writes it to \`go.sum\`. They commit the updated \`go.sum\` file, and the CI pipeline passes because the toolchain can now verify the integrity of the dependency against the committed hashes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T09:55:11.569442+00:00— report_created — created