Go version
latest
Output of go env in your module/workspace:
What did you do?
go tool .... <any number of flags>
What did you see happen?
The command supports on a very minimal set of flags (which are not documented, fwiw #71502). All(?) other commands in the Go toolchain support a large range of flags to customize, troubleshoot, etc.
In particular, go run does, which feels like a very close parallel to go tool. It seems odd I can do -x to debug go run but not go tool, for instance.
What did you expect to see?
All build flags available.
Note: -n is in conflict, though.
Go version
latest
Output of
go envin your module/workspace:What did you do?
go tool .... <any number of flags>What did you see happen?
The command supports on a very minimal set of flags (which are not documented, fwiw #71502). All(?) other commands in the Go toolchain support a large range of flags to customize, troubleshoot, etc.
In particular,
go rundoes, which feels like a very close parallel togo tool. It seems odd I can do-xto debuggo runbut notgo tool, for instance.What did you expect to see?
All build flags available.
Note:
-nis in conflict, though.