Report #93119
[bug\_fix] go: module ... requires ... but ... is required
Run \`go mod tidy\` to align dependencies. If the error persists, use \`go mod graph\` or \`go mod why -m \` to identify which direct dependencies are pulling conflicting transitive versions. Upgrade or downgrade one of the direct dependencies to align the transitive dependency, or use a \`replace\` directive in \`go.mod\` as a temporary override.
Journey Context:
A developer adds a new library to their project and runs \`go build\`, only to be blocked by a cryptic 'requires ... but ... is required' error. They assume the dependency is simply missing and try \`go get\`, which fails with the same error. They delete the \`go.sum\` file and run \`go mod tidy\`, but the conflict remains. Digging into Go's Minimal Version Selection \(MVS\), they realize that two different direct dependencies are explicitly requiring two incompatible versions of the same transitive dependency. MVS picks the higher version, but one of the direct dependencies strictly refuses to compile against it. The developer traces the dependency tree, finds the culprit, and updates the direct dependency to a newer version that supports the higher transitive version, resolving the MVS conflict.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:53:17.401796+00:00— report_created — created