tools/go/packages
Heschi Kreinick 757ca719ca imports: rename to internal/imports
For various reasons we need an internal-facing imports API. Move imports
to internal/imports, leaving behind a small wrapper package. The wrapper
package captures the globals at time of call into the options struct.

Also converts the last goimports tests to use the test helpers, and
fixes go/packages in module mode to work with empty modules, which was
necessary to get those last tests converted.

Change-Id: Ib1212c67908741a1800b992ef1935d563c6ade32
Reviewed-on: https://go-review.googlesource.com/c/tools/+/175437
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-05-20 21:49:35 +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 imports: rename to internal/imports 2019-05-20 21:49:35 +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: remove the Config.Error hook 2018-09-04 20:52:37 +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: add support for entire packages defined in overlays 2019-04-17 17:55:51 +00:00
golist_overlay.go go/packages: add some documentation for extractPackage 2019-04-24 02:43:44 +00:00
packages.go go/packages: deduplicate file parsing 2019-04-24 03:11:03 +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: add support for entire packages defined in overlays 2019-04-17 17:55:51 +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