commit | 19ff4fff8850daad8ce6b52f7a6aad790cf87b3f | [log] [tgz] |
---|---|---|
author | Michael Matloob <matloob@golang.org> | Wed Jun 12 11:27:36 2019 -0400 |
committer | Michael Matloob <matloob@golang.org> | Thu Jun 27 20:39:33 2019 +0000 |
tree | b739180c289d052c18c0ec50c139f490e50d6955 | |
parent | aac0b97cf93b20107ae688cd90e54cdc211fd043 [diff] |
go/packages: avoid loading some packages in when computing overlays In some cases, it's safe to avoid loading additional packages when computing overlays. However it's not always safe to do so. Avoid some unnecessary loads when it's completely safe to do so. Updates golang/go#32538 Change-Id: Ie12204735940a540c9b3f29742f8479bcab5f077 Reviewed-on: https://go-review.googlesource.com/c/tools/+/181917 Run-TryBot: Michael Matloob <matloob@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 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.