commit | 5a5cfefe1f00d344e335c86780cde23407b81251 | [log] [tgz] |
---|---|---|
author | Jay Conrod <jayconrod@google.com> | Tue Jul 30 19:43:22 2019 -0400 |
committer | Jay Conrod <jayconrod@google.com> | Wed Jul 31 21:28:42 2019 +0000 |
tree | 5c86a6b31918616a8e4eff22dd94c01855097f0e | |
parent | c001e47e7f00e86e2589be2312a5f197de244238 [diff] |
x/tools/internal/imports: don't load package names for empty list goimports should not attempt to load package names for an empty list of packages. 'go list' interprets an empty argument list as '.', which may or may not be a package. Fixes golang/go#33175 Change-Id: Id8df148432437295905c52f2d5fb73d890277569 Reviewed-on: https://go-review.googlesource.com/c/tools/+/188379 Run-TryBot: Jay Conrod <jayconrod@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com>
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.