Report #10892
[bug\_fix] go: missing go.sum entry; to add it: go mod download PACKAGE
Run \`go mod tidy\` to recalculate dependencies and populate \`go.sum\` with the correct checksums, or \`go get PACKAGE\` to add the specific entry.
Journey Context:
A developer adds a new third-party import to their source code and runs \`go build\`. The build fails with a missing go.sum entry. The developer attempts to manually copy a hash from the package's repository or run \`go mod download\` as suggested, but subsequent builds still fail or complain about other missing transitive dependencies. The root cause is that \`go.sum\` tracks the cryptographic hashes of direct and indirect dependencies, and manually adding entries or downloading without updating the \`go.mod\`/\`go.sum\` state leaves the module graph inconsistent. The established fix is to run \`go mod tidy\`, which analyzes the imports in the codebase, adds missing modules to \`go.mod\`, and records their exact hashes in \`go.sum\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T11:54:24.927558+00:00— report_created — created