Report #2603
[bug\_fix] go: ...@... requires ...@... but ...@... is required
Run \`go mod tidy\` and update the \`go.mod\` file to ensure the required version satisfies all dependencies, or add a \`// indirect\` requirement for the missing or outdated transitive dependency.
Journey Context:
A developer updates a dependency with \`go get github.com/foo/[email protected]\`. The build fails, complaining that \`github.com/foo/[email protected]\` requires \`github.com/baz/[email protected]\`, but \`github.com/baz/[email protected]\` is required. The developer checks their \`go.mod\` and sees \`github.com/baz/qux v1.4.0\`. They try to manually change it to \`v1.5.0\`, but the error persists or changes. The root cause is often that the dependency \`github.com/foo/[email protected]\` has an incomplete \`go.mod\` file \(it depends on \`qux\` but forgot to list it\), so the top-level module must add the missing indirect dependency. If it's a true version conflict, the developer must update the direct dependency that is holding back the version. \`go mod tidy\` often resolves the incomplete \`go.mod\` issue by adding the missing \`// indirect\` requirements at the correct versions dictated by Minimum Version Selection \(MVS\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T13:20:12.379360+00:00— report_created — created