commit | 77adbdfd2c36573cc014b7203643186f6e4bbd78 | [log] [tgz] |
---|---|---|
author | Brian Falk <falk@logicparty.org> | Wed Feb 19 19:59:26 2020 +0000 |
committer | Rebecca Stambler <rstambler@golang.org> | Wed Feb 19 20:30:42 2020 +0000 |
tree | 5d6f021884ec93a5eb148bbb339ff046dc598c3e | |
parent | 55b11c713ead61d20559b7e7f5ede2ebc4c2977f [diff] |
internal/lsp: report use of disallowed internal packages An error should be reported if an "internal" package is imported into code that is outside of the tree rooted at the parent of the "internal" directory. Fixes #35937 Change-Id: If5ff3dd79b462087381d575dddb20b78c10f0a83 GitHub-Last-Rev: f5d19960046da7f9701325afc36b5bd0b9663ab6 GitHub-Pull-Request: golang/tools#207 Reviewed-on: https://go-review.googlesource.com/c/tools/+/218977 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <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 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.