cmd/go: allow all build flags for tool #71503
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
ToolProposal
Issues describing a requested change to a Go tool or command-line program.
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 togo tool
. It seems odd I can do-x
to debuggo run
but notgo tool
, for instance.What did you expect to see?
All build flags available.
Note:
-n
is in conflict, though.The text was updated successfully, but these errors were encountered: