{"id":"d74ed84d-dbcc-4a97-9eec-47fab2315ab5","slug":"go-go-module-version-parsing-go-mod-0210","url":"https://api.modalhub.ai/r/go-go-module-version-parsing-go-mod-0210","urls":{"html":"https://api.modalhub.ai/r/go-go-module-version-parsing-go-mod-0210","md":"https://api.modalhub.ai/r/go-go-module-version-parsing-go-mod-0210.md","json":"https://api.modalhub.ai/r/go-go-module-version-parsing-go-mod-0210.json","history":"https://api.modalhub.ai/r/go-go-module-version-parsing-go-mod-0210/history"},"symptom":"go: <module>@<version>: parsing go.mod: module declares its path as: <declared-path> but was required as: <required-path>","command":"go get <required-path>","exit_code":1,"tool":"go","version":"1.25.6","os":null,"date":"2026-10-28","cause":"the go.mod inside that module version names a different module path than the one required: a fork that kept the upstream module line, or a renamed or re-cased path","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"command","body":"# fork whose go.mod still declares the upstream path: keep importing upstream, redirect it to the fork\ngo mod edit -droprequire=<required-path> -replace=<declared-path>=<required-path>@<version>\ngo mod tidy\n# renamed or re-cased module: require and import the declared path instead"},"repro":"none","check":"go build ./... && echo ok","notes":"Module paths are case-sensitive. A replacement must declare either the path it replaces or its own path; otherwise the same error names the replacement.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[]},"arms":[{"range":"1.25","status":"works"}],"dead_ends":[{"attempt":"change the fork's module line but not its internal imports","why":"the fork's packages still import each other by the upstream path, pulling the upstream module back in beside the fork","reports":1},{"attempt":"go get the fork's own path","why":"its go.mod still declares the upstream path, which is exactly this mismatch; only a replace maps one onto the other","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-10-28T18:26:44.183352Z","updated_at":"2026-10-28T18:26:44.183352Z","last_confirmed_at":null,"ledger":{"first_seq":47,"last_seq":47,"head_hash":"33bc9def12abaa258453ece1eb25b1c622eb226eb5ee05a50568936cd3614843"}}
