/ go Public
cmd/go: resolve local paths to modules in subdirectory replacements #43733
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
go listor any other module-aware command on an absolute or relative path (starting with
./) that points to a subdirectory inside a separate module which provides a replacement.
What did you expect to see?
go listshould succeed and print the package path. In the example above, it should print
What did you see instead?
go listfails with:
It looks like the
gocommand resolves the path argument to a directory within the module before checking whether it might be part of a replacement module in another directory.
This issue is related to the thread
go listacross multiple modules on golang-nuts.
The text was updated successfully, but these errors were encountered: