-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: When go list -m -json -versions
returns no versions, it does not include an Origin
#66077
Comments
the issue title says subdirectory, but the report doesn't mention anything about directories? |
|
cc @bcmills |
Normally, asking about a path that does not refer to a valid module results in an error, but in this case the error is suppressed by the |
go list -m -json -versions
is run in a subdirectory, the Origin field is not output.go list -m -json -versions
returns no versions, it does not include an Origin
Hmm, there might be an issue here, but it's subtle. To give a bit more detail, https://go.dev/cl/543216 and https://go.dev/cl/543155 fixed some bugs in which
In this case, the mixed origin consists of:
In theory, the
|
The reason I need this feature is related to #65350. Find the root directory by trimming If |
Go version
go version go1.22.0 windows/amd64
Output of
go env
in your module/workspace:What did you do?
Execute
go list -m -json -versions fyne.io/fyne/v2/cmd/fyne
on go version 1.22.0 and 1.21.7.What did you see happen?
Execute
go list -m -json -versions fyne.io/fyne/v2/cmd/fyne
.Output:
Origin field is not output.
Execute with go version 1.21.7.
Origin field is output.
What did you expect to see?
I would like to get the output of the Origin field in go version 1.22.0 as well.
The text was updated successfully, but these errors were encountered: