]> Cypherpunks repositories - gostls13.git/commit
cmd/go: set DepOnly on package when calling go list -deps
authorPaul Jolly <paul@myitcv.io>
Fri, 11 May 2018 14:02:45 +0000 (15:02 +0100)
committerPaul Jolly <paul@myitcv.org.uk>
Mon, 11 Jun 2018 18:46:47 +0000 (18:46 +0000)
commit131d7e0d0ee4471dc97f24d223aeef47ba6809d5
treeecf8992f771d04cf4d2d82f426b91768e6fd3f23
parentb111f3cc679f44961dc8a78b24a502fb12d6dde2
cmd/go: set DepOnly on package when calling go list -deps

Currently .DepOnly is set when go list -test is invoked to help
distinguish those packages that matched the command line spec from those
which are dependencies (of test packages). This is also useful when
calling go list -deps for the same reason.

Change-Id: Ifc0e68dad0fd01355928793ef803691dee5f4f29
Reviewed-on: https://go-review.googlesource.com/112755
Run-TryBot: Paul Jolly <paul@myitcv.org.uk>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/list/list.go