If go/packages.Load tries to load a package with a missing dependency, it should not return an error, but a package with an error set on it. This is a workaround for go list -e -compiled (or even just go list -e) returning a non-zero exit status for packages with missing dependencies. Change-Id: I2d7d848ae5133235f595baf7b30296077e891ee3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/170891 Run-TryBot: Michael Matloob <matloob@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com> |
||
|---|---|---|
| .. | ||
| gopackages | ||
| packagestest | ||
| testdata | ||
| doc.go | ||
| example_test.go | ||
| external.go | ||
| golist.go | ||
| golist_overlay.go | ||
| packages.go | ||
| packages110_test.go | ||
| packages_test.go | ||
| packagescgo_test.go | ||
| stdlib_test.go | ||
| visit.go | ||