cmd/go: go list -m reports command-line-arguments when called outside a module #36793
Comments
Per https://tip.golang.org/cmd/go/#hdr-Package_lists_and_patterns:
Running a small The effective package path for a list of I think @jayconrod recently suggested that we consider also making (CC @matloob) |
Sorry, I forgot to report that there are no files in the current working directory. In my case, there is no
But there is no package, in my case. |
https://github.com/golang/go/blob/master/doc/modules.md#resolving-a-package-to-a-module says that:
And
|
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
In a directory with no reachable
go.mod
:What did you expect to see?
go list
should report an error, since there is no module.What did you see instead?
This really feels wrong for me.
The text was updated successfully, but these errors were encountered: