]> Cypherpunks repositories - gostls13.git/commit
cmd/go: list test packages even when the main package has an error
authorMichael Matloob <matloob@golang.org>
Mon, 23 Mar 2020 17:52:37 +0000 (13:52 -0400)
committerMichael Matloob <matloob@golang.org>
Tue, 24 Mar 2020 00:04:19 +0000 (00:04 +0000)
commit6a9d850b82172225b55bd65e830b1e325b17a724
treea67527f9ddb787971ea03b9a3e6e15a1ba03487f
parentfb2a6343defa5259df3032fef771057843e799ce
cmd/go: list test packages even when the main package has an error

List test packages (when list is run with -e) even when the main package
has an error. This is useful to get complete data for go/packages.

Fixes #37971

Change-Id: If6ba0270a319ea5e003d1ed8b1ad39e479e95509
Reviewed-on: https://go-review.googlesource.com/c/go/+/224944
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/list/list.go
src/cmd/go/testdata/script/load_test_pkg_err.txt [new file with mode: 0644]