Report #88315
[bug\_fix] go: @ requires @: missing go.sum entry; to add it: go mod tidy
Run \`go mod tidy\` to synchronize the go.sum file with the actual dependencies required by the code.
Journey Context:
A developer adds a new import to their code or merges a branch that includes new dependencies. They run \`go build\` and get an error about a missing go.sum entry for a transitive dependency. They try \`go mod download\` or manually editing go.sum, which doesn't resolve the missing entry. The root cause is that go.mod tracks direct dependencies, but go.sum tracks the exact cryptographic hashes of all direct and transitive dependencies. When code changes introduce new imports, the go.sum file becomes out of sync. \`go mod tidy\` analyzes the actual imports in the codebase, adds missing entries to both go.mod and go.sum, and removes unused ones, ensuring the module's dependency graph is complete and reproducible.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:49:14.141725+00:00— report_created — created