Report #104380
[bug\_fix] cannot use \(type\) as \(type\) in assignment \(due to incompatible dependency versions\)
Adjust the required dependencies in go.mod so that conflicting modules use the same major version, or use a \`replace\` directive to force a compatible version. Run \`go mod tidy\` to clean up.
Journey Context:
A project depended on \`github.com/foo/bar v1.2.0\` indirectly through two different direct dependencies. One required \`bar v1.2.0\` and the other required \`bar v1.3.0\`. Go’s minimal version selection chose \`v1.3.0\`, but the API changed: a struct field was renamed. The build failed with type mismatch. The developer inspected \`go mod graph\`, identified the conflict, and updated the offending direct dependency to require \`bar v1.2.0\` via a \`replace\` directive in go.mod, then ran \`go mod tidy\` to synchronize.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-08-09T20:05:10.964072+00:00— report_created — created