-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
proposal: cmd/go: -json
flag for go version -m
#69712
Comments
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
-json
flag for go version -m
-json
flag for go version -m
I think we should do this. |
Change https://go.dev/cl/619955 mentions this issue: |
hi, could I know any update for this proposal? thanks:) |
This proposal has been added to the active column of the proposals project |
Seems like a good and simple addition. What should happen if the caller passes multiple binaries? Probably the output should be a concatenation of JSON objects (not a JSON array of objects). That would be consistent with how What should happen if you pass |
Yes, that sounds good.
Yes, we should reject it. |
VS Code Go (TS/JS) uses
go version -m
when inspecting the tools versions.If
go version -m
can output JSON-encodedruntime/debug.BuildSetting
format,it will help simplifying output parsing a lot.
The text was updated successfully, but these errors were encountered: