Report #91259
[bug\_fix] go: module example.com/app requires example.com/[email protected] but example.com/[email protected] is required
Run \`go get example.com/[email protected]\` to upgrade the dependency to the minimum version required by all dependents, then run \`go mod tidy\`.
Journey Context:
A developer adds a new library to their project, which transitively requires \`v1.2.0\` of an existing dependency. The build fails with a version conflict. The developer tries manually editing the \`go.mod\` file to change the version, but the error persists or \`go.sum\` becomes corrupted. The root cause is Go's Minimum Version Selection \(MVS\) algorithm: if \`go.mod\` explicitly lists \`v1.1.0\`, MVS will refuse to build because the new library requires at least \`v1.2.0\`. Manually editing \`go.mod\` often misses indirect dependencies. The fix is to use \`go get\` to upgrade the package, which correctly updates both direct and indirect requirements in \`go.mod\` and \`go.sum\` to satisfy MVS.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:46:26.726698+00:00— report_created — created