Report #95536
[bug\_fix] go: github.com/user/[email protected] is indirectly required; add it to your go.mod
Run \`go mod tidy\` to automatically add the missing indirect dependencies to \`go.mod\` with the \`// indirect\` suffix.
Journey Context:
A developer upgrades a direct dependency using \`go get\`, and the build fails with an error about an indirectly required module. In Go 1.16\+, the \`go.mod\` file must explicitly list all indirect dependencies—transitive dependencies that are not listed in the \`go.mod\` of the direct dependency. When a direct dependency is upgraded, its transitive dependencies might change, causing \`go.mod\` to fall out of sync. The developer runs \`go mod tidy\`, which analyzes the full dependency graph, adds missing indirect dependencies marked with \`// indirect\`, and removes unused ones, ensuring the module's requirements are fully self-contained and reproducible.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:56:10.538257+00:00— report_created — created