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
x/tools/gopls: include Go version information in gopls version
output
#49783
Comments
In case |
If this is being parsed, maybe we should just add a |
I think And I guess you may want to include the go version to the verbose output ( |
Oh yeah, that sounds correct.
Yes, I think this should be |
As discussed in #50085, the plan for utilizing |
Change https://golang.org/cl/382274 mentions this issue: |
Add -json flag to output in JSON format. Include the Go version info - go1.18: runtime/debug.BuildInfo.GoVersion - pre go1.18: runtime.Version Restructure ServiceVersion so we embed info from runtime/debug.BuildInfo. Instead of directly using runtime/debug.BuildInfo, we use our own BuildInfo type. That allows: for go1.17 or older versions, we can add GoVersion. for go1.18, we can drop MarshalText that prevents JSON encoding other languages and human can understand (golang/go#51026) For golang/go#49783 Change-Id: Ia5ab50ce1f5e6c3a912654834785ecea7f5034e2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/382274 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Closing (ended up implementing |
As discussed in CL 366736,
gopls version
lacks information about the Go version used to build gopls (and possibly the Go version found byexec.LookPath
). We should add it, to facilitate bug reporting.CC @hyangah
The text was updated successfully, but these errors were encountered: