commit | ca43edf915e9a494d684259feab8acdb52632eb9 | [log] [tgz] |
---|---|---|
author | Heschi Kreinick <heschi@google.com> | Wed Jun 03 21:13:43 2020 -0400 |
committer | Heschi Kreinick <heschi@google.com> | Thu Jun 11 22:26:57 2020 +0000 |
tree | 65bd8e422144513caf81555ceeee50f78404088e | |
parent | ecd3fc434862596b912efed530bc0d79b6ab4847 [diff] |
internal/lsp/cache: intermediate test variants aren't workspace packages When you write a test in (say) the fmt package, you get a test variant augmented with the test files. In many cases you also get test variants of the things the fmt package depends on. The primary test variant, (fmt [fmt.test]) is interesting to us, because it contains the tests. But the intermediate variants (testing [fmt.test]) aren't -- the user can only get to them indirectly. We certainly don't need to fully parse them. Treat intermediate test variants as non-workspace packages. This doesn't accomplish much yet but paves the way for later optimizations. Updates golang/go#36943. Change-Id: I1a20abcd2d67767f07132a75a20f098be6f19a76 Reviewed-on: https://go-review.googlesource.com/c/tools/+/236397 Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@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.