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: go list -json should provide an option to set the context to UseAllFiles=true #30504
Comments
If you want to list all Go files, you should load all Go files within certain directories, not load entire packages. A package doesn't necessarily include all Go files in a directory, by its own definition. |
Can't you use the |
I think I haven't tried it yet because Also But if you tell me that's the exact same end-result, sure, I will do it that way. |
I think I don't think |
Ok, thanks for the clarification. I'll try this. Hopefully, it won't hit a corner case no one though of yet. |
go version go1.12 linux/amd64
When preparing a codebase for use on different architectures, for reuse in projects that will set (or not) specific build constrains, you do not want
go list
to filter its output based on the system the preparation steps occurs on.go list
should have a mode that is independent of the system it runs on (at most, perhaps, restricting the output to a specific OS).The text was updated successfully, but these errors were encountered: