tools/go/packages
Michael Matloob ff0519d4cf go/packages: change driver communication mechanism
Pass in parameters to the driver in stdin rather than through argv.
This allows us to more easily route parameters to the driver and add
more parameters without breaking users. The driver doesn't need to
have the same interface as go list, because it's unlikely the driver interface
will converge with the go list interface.

We still pass in the query "words" to the driver in the argv, because
that's as good a place as any, but there's no "list" command.

Question: should we add a "command" option to the driverRequest struct?

Change-Id: Ifdbb3f84b6bfd04259f5ab63e756341d7f69de9b
Reviewed-on: https://go-review.googlesource.com/c/150337
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2018-11-21 18:20:56 +00:00
..
gopackages go/packages: remove the Config.Error hook 2018-09-04 20:52:37 +00:00
packagestest internal/lsp: add more testdata for completion and diagnostics 2018-11-20 06:06:34 +00:00
testdata go/packages: add name= query 2018-10-16 20:20:09 +00:00
doc.go go/packages: remove scary warning on documentation 2018-10-15 17:50:52 +00:00
example_test.go go/packages: remove the Config.Error hook 2018-09-04 20:52:37 +00:00
external.go go/packages: change driver communication mechanism 2018-11-21 18:20:56 +00:00
golist.go go/packages: remove .s files from go list's CompiledGoFiles 2018-11-13 00:58:03 +00:00
golist_fallback.go go/packages: fix flaky TestJSON and reenable it on Go 1.10 2018-11-12 16:24:42 +00:00
golist_fallback_testmain.go go/packages: add missing test variants to fallback loader 2018-09-25 16:56:39 +00:00
packages.go go/packages: fix minor godoc typo 2018-11-09 17:23:37 +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: fix flaky TestJSON and reenable it on Go 1.10 2018-11-12 16:24:42 +00:00
packagescgo_test.go go/packages: skip TestLoadImportsC when Go has been built without cgo 2018-10-05 20:28:39 +00:00
stdlib_test.go go/packages: remove .s files from go list's CompiledGoFiles 2018-11-13 00:58:03 +00:00
visit.go go/packages: make visit order stable 2018-11-02 02:37:01 +00:00