tools/go/packages
Michael Matloob 75312fb067 go/packages: support new main packages in overlays
Refactor the overlay code to create package structs for
new packages that don't already exist. This requires
calling out to the go command to determine module
roots to figure out which module a package belongs to.
The extra go list call is done in sequence in this CL
but can easily be done in parallel with other go list
calls in the future.

Change-Id: Ia0f7812fba250d154033038cb1e2afa7dedf0e16
Reviewed-on: https://go-review.googlesource.com/c/tools/+/179600
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-05-30 21:55:28 +00:00
..
gopackages go/package/gopackages: update gopackages to use the new tool library for its main function 2019-01-08 19:17:02 +00:00
packagestest all: GOSUMDB=off for tests that use fake modules 2019-05-24 18:48:02 +00:00
testdata go/packages/testdata: add go directives to fake module files 2019-03-22 20:32:07 +00:00
doc.go go/packages: rename name= query and "disable" it 2019-01-29 21:16:23 +00:00
example_test.go go/packages: officially deprecate LoadX values in favor of NeedX values 2019-05-29 17:04:56 +00:00
external.go go/packages: fix json struct tag on driverRequest.Command 2019-04-02 20:06:28 +00:00
golist.go go/packages: handle potential nil pointer error 2019-05-29 17:05:31 +00:00
golist_overlay.go go/packages: support new main packages in overlays 2019-05-30 21:55:28 +00:00
packages.go go/packages: officially deprecate LoadX values in favor of NeedX values 2019-05-29 17:04:56 +00:00
packages110_test.go go/packages: generate test main files from the golist fallback 2018-09-17 22:19:12 +00:00
packages_test.go go/packages: support new main packages in overlays 2019-05-30 21:55:28 +00:00
packagescgo_test.go go/...: use recommended issue tracker URLs 2018-12-05 01:41:16 +00:00
stdlib_test.go go/...: use recommended issue tracker URLs 2018-12-05 01:41:16 +00:00
visit.go go/packages: make visit order stable 2018-11-02 02:37:01 +00:00