Skip to content

cmd/go: allow all build flags for tool #71503

Description

@howardjohn

Go version

latest

Output of go env in your module/workspace:

N/A

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GoCommandcmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolProposalIssues describing a requested change to a Go tool or command-line program.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions