Report #2598
[bug\_fix] go: missing go.sum entry for module providing package ...
Run \`go mod tidy\` to reconcile the \`go.mod\` and \`go.sum\` files with the actual imports in the codebase.
Journey Context:
A developer adds a new import to their code, e.g., \`import "github.com/foo/bar"\`, and immediately runs \`go build\` or \`go test\`. The build fails with a missing \`go.sum\` entry. The developer might try \`go get github.com/foo/bar\`, which adds it to \`go.sum\`, but then another transitive dependency is missing. They might attempt to manually edit \`go.sum\`, which is a nightmare of cryptographic hashes. The root cause is that Go requires cryptographic checksums for all direct and indirect dependencies in \`go.sum\` before building, to ensure supply chain security and reproducible builds. \`go mod tidy\` analyzes the entire import graph, adds missing entries for all transitive dependencies, and removes unused ones, aligning the state perfectly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T13:19:12.434982+00:00— report_created — created