commit | 164402db9dd6fa703883e516c61a536114a42198 | [log] [tgz] |
---|---|---|
author | Heschi Kreinick <heschi@google.com> | Fri Feb 04 16:50:42 2022 -0500 |
committer | Heschi Kreinick <heschi@google.com> | Mon Feb 07 18:19:30 2022 +0000 |
tree | d7e40823e4e2a90d7aac0f531b1d280daef3db5b | |
parent | 6aaba7740f88a6c6848e859bef1e54ef7a7ed679 [diff] |
internal/lsp/cache: set types.Config.GoVersion Set the language version from the controlling go.mod file's go version, if any. Also verify that we properly surface a diagnostic if the version is invalid. I didn't add any quick fixes. Fixes golang/go#50688. Change-Id: Ic472502d1224a1decb5b989d51110b837020e998 Reviewed-on: https://go-review.googlesource.com/c/tools/+/383394 Trust: Heschi Kreinick <heschi@google.com> Run-TryBot: Heschi Kreinick <heschi@google.com> Reviewed-by: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go install
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go install golang.org/x/tools/...@latest
.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.