commit | 91f80e683c10fea00e7f965a1a7cac482ce52541 | [log] [tgz] |
---|---|---|
author | Michael Matloob <matloob@golang.org> | Wed Nov 07 16:22:34 2018 -0500 |
committer | Michael Matloob <matloob@golang.org> | Wed Nov 21 19:39:51 2018 +0000 |
tree | 14721902c5ee1589cc7ac75fd7c51d7bd1902b97 | |
parent | 72292f0c83ea51e7c11dd4c00018b4c599ec865c [diff] |
go/packages: use absolute path of dir in call to go list for file= query When running go list for a file= query, the go/packages code previously ran "go list ." command in the directory of the provided file. This was necessary for compatibility with the fallback, but caused problems when running file= queries for files in the module cache. We now use absolute directory paths (supported in Go >=1.11) in the non-fallback case and retain the previous behavior in the fallback case. Change-Id: I3a9feaaeda12e068ec3d510b5f78437482c65b4c Reviewed-on: https://go-review.googlesource.com/c/148199 Run-TryBot: Michael Matloob <matloob@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@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.