commit | 7ee29554ccb213afdf3ffa0c0965e40b704ca7ed | [log] [tgz] |
---|---|---|
author | Heschi Kreinick <heschi@google.com> | Tue Mar 09 13:09:26 2021 -0500 |
committer | Heschi Kreinick <heschi@google.com> | Tue Mar 09 19:56:34 2021 +0000 |
tree | 2af7ef10419c928e8586e992d3fb12cdfba9758c | |
parent | 1e524e26bec7d5b3a643daa7c8bbe4e12ada28f5 [diff] |
internal/lsp/cache: refactor and improve go get quick fixes Generating go get quick fixes in a single place only made it harder to get them right. Do it during diagnostics generation, as is the new norm. Also improve the user experience. When we fail to import a package because one of its dependencies is missing, it makes more sense to run go get on the package we tried to import, not the one that's missing: that will download all of its missing dependencies if there happen to be more. Change-Id: Ib6a8140bccfafcb9f966d25639799dd4c7347c3d Reviewed-on: https://go-review.googlesource.com/c/tools/+/300072 Trust: Heschi Kreinick <heschi@google.com> Run-TryBot: Heschi Kreinick <heschi@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <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 get
.
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 get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
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.