Report #86495
[bug\_fix] missing go.sum entry for module ...
Run \`go mod tidy\` or \`go get @\` to download the module and automatically append its verified hash to the \`go.sum\` file.
Journey Context:
A developer adds a new import to their code and runs \`go build\`. The compilation fails, complaining about a missing \`go.sum\` entry. Confused, they try to manually copy a hash from a colleague's \`go.sum\` or delete the \`go.sum\` file entirely, which leads to further verification errors. The root cause is that Go uses \`go.sum\` to cryptographically verify the integrity of downloaded modules, preventing supply chain attacks. The build toolchain refuses to use any module without a corresponding hash in \`go.sum\`. Running \`go mod tidy\` resolves this by calculating the exact dependency graph, downloading missing modules, and securely recording their hashes in \`go.sum\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:46:17.488855+00:00— report_created — created