commit | 597f57769402f90a9c238d64701717ff5fe472d6 | [log] [tgz] |
---|---|---|
author | Dominik Honnef <dominik@honnef.co> | Tue Aug 13 14:16:51 2019 +0200 |
committer | Dominik Honnef <dominik@honnef.co> | Wed Aug 14 16:41:31 2019 +0000 |
tree | 41116682d8813556a4b20d2fa0559662d7f8c2d6 | |
parent | 60bb3025ec9a8bf33d1fe3ef47aadf127f2a9885 [diff] |
go/packages: handle more errors that 'go list' prints to stderr This change adds special handling for two more errors that 'go list' prints to stderr: 1. when trying to construct an ad-hoc package from files in multiple directories 2. the "unexpected directory layout" error (#24854) Change-Id: Icbd14bcc02c2ca9676dc0449e155ff817da038cb Reviewed-on: https://go-review.googlesource.com/c/tools/+/190077 Run-TryBot: Dominik Honnef <dominik@honnef.co> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com> Reviewed-by: Michael Matloob <matloob@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.