Report #48214
[bug\_fix] go: ... is used for two different module paths
Remove the duplicate \`replace\` directive or ensure that the module is only required under a single canonical path. If a module was renamed, update all imports to the new path and remove the old path from \`go.mod\` entirely.
Journey Context:
A developer tries to update a package using \`go get\`. The command fails, stating a module is used for two different module paths. They look at \`go.mod\` and see they have both \`require github.com/old/pkg\` and \`replace github.com/new/pkg => github.com/old/pkg v1.2.3\`. Go's module system strictly enforces that a given module path \(the one in the \`go.mod\` of the dependency\) can only be associated with one canonical import path. The developer removes the old \`require\` and \`replace\` directives, updates their source code imports to use \`github.com/new/pkg\`, and runs \`go mod tidy\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:24:50.006484+00:00— report_created — created