Report #61652
[bug\_fix] module ... requires ... but ... is required
Update the outdated dependency using \`go get dependency@version\` to satisfy the minimum version required by other modules.
Journey Context:
A developer adds a new library to their project and runs \`go build\`. They are hit with an error stating \`module A requires golang.org/x/[email protected] but v0.3.7 is required\`. They check \`go.mod\` and see \`golang.org/x/text v0.3.7 // indirect\`. They wonder why Go doesn't just use v0.3.8. The issue stems from Go's Minimal Version Selection \(MVS\). MVS picks the maximum of the minimum versions required. If \`go.mod\` explicitly lists \`v0.3.7\` \(perhaps from an older \`go get\`\), MVS will honor it, even if a newer dependency needs \`v0.3.8\`. The developer runs \`go get golang.org/x/[email protected]\` to explicitly upgrade the indirect dependency in \`go.mod\`. This satisfies the new library's requirement, and the build succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:58:11.509471+00:00— report_created — created