]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add list -find to find packages but not resolve imports
authorRuss Cox <rsc@golang.org>
Mon, 30 Jul 2018 17:51:35 +0000 (13:51 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 1 Aug 2018 00:35:25 +0000 (00:35 +0000)
commit27e546be86fbe98e0c19ad8a59186582cbbdff53
tree6440c2466cc51ee2da801bf785734ab5976cea10
parentcdac6c22c30cbe75031563ff2859d0314aa8477b
cmd/go: add list -find to find packages but not resolve imports

This is needed by golang.org/x/tools/go/packages
and also gives a way to do a quicker scan for
packages with a given final path element:

go list -find .../template

Change-Id: I092f4ac5ba7af7d727eb8204379fa436667061b9
Reviewed-on: https://go-review.googlesource.com/126716
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/list/list.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/testdata/script/list_find.txt [new file with mode: 0644]