Skip to content

cmd/go: -json flag for go version -m #69712

@hyangah

Description

@hyangah
$ go version -m -json ~/go/bin/gopls
flag provided but not defined: -json
usage: go version [-m] [-v] [file ...]
Run 'go help version' for details.

VS Code Go (TS/JS) uses go version -m when inspecting the tools versions.
If go version -m can output JSON-encoded runtime/debug.BuildSetting format,
it will help simplifying output parsing a lot.

Metadata

Metadata

Assignees

Labels

FeatureRequestIssues asking for a new feature that does not need a proposal.FixPendingIssues that have a fix which has not yet been reviewed or submitted.GoCommandcmd/goProposalProposal-Accepted

Type

No type

Projects

Status

Accepted

Relationships

None yet

Development

No branches or pull requests

Issue actions