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> |
||
---|---|---|
.. | ||
gopackages | ||
doc.go | ||
external.go | ||
golist.go | ||
golist_fallback.go | ||
packages.go | ||
packages110_test.go | ||
packages_test.go | ||
stdlib_test.go |