commit | 0fdf0c73855bae8482c5d3907a9e06f33ff70a10 | [log] [tgz] |
---|---|---|
author | kazyshr <kazyshr0301@gmail.com> | Sun Mar 31 21:03:24 2019 +0900 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Sun Apr 07 03:08:57 2019 +0000 |
tree | 3aabb735e74b1a65529c9154edb809ae847c404e | |
parent | a81264a82310305db9c186558cb6466c4057c97d [diff] |
imports: fix circular imports goimports will add an import for the package of target source file accidentally, so check if package path is different from target source file when finding import candidates. Fixes golang/go#30663 Change-Id: I77c29bc74bef6c888e63ccb501b013a5fbc30b5c Reviewed-on: https://go-review.googlesource.com/c/tools/+/170238 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@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.