tools/go/packages
Michael Matloob 18b2bbde9d go/packages: fix incorrect x_test graph in fallback
This change fixes a bug that occured in the golist fallback logic when
an x_test package imported its own package under test. For a package
"a", if "a_test" imported "a", we'd populate "a_test"'s import map
with an entry "a [a.test]" pointing to the test variant of the package
with id "a [a.test]". This change fixes the key to be "a", the correct
import path of the package, not "a [a.test], which is the ID".

Change-Id: If798f2675b01aa537c6ccc129dc35d042d967337
Reviewed-on: https://go-review.googlesource.com/133356
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2018-09-04 20:42:50 +00:00
..
gopackages go/packages: rename config.Flags to BuildFlags 2018-08-21 16:42:13 +00:00
doc.go go/packages: smooth API documentation for release 2018-08-17 17:07:05 +00:00
external.go go/packages: rename config.Flags to BuildFlags 2018-08-21 16:42:13 +00:00
golist.go go/packages: rename config.Flags to BuildFlags 2018-08-21 16:42:13 +00:00
golist_fallback.go go/packages: fix incorrect x_test graph in fallback 2018-09-04 20:42:50 +00:00
packages.go go/packages: coerce all errors to a single type 2018-09-04 20:04:35 +00:00
packages110_test.go go/packages: fix incorrect x_test graph in fallback 2018-09-04 20:42:50 +00:00
packages_test.go go/packages: coerce all errors to a single type 2018-09-04 20:04:35 +00:00
stdlib_test.go go/packages: use Package as the raw form 2018-08-10 14:45:52 +00:00