tools/go/loader
Kirill Smelkov c2d03f470b go/loader: Fix thinko in FindPackage hook signature
(*build.Context).Import has signature of

	(ctx, importPath, fromDir, mode)

not

	(ctx, fromDir, importPath, mode)

and the loader actually uses the first version.

The thinko was introduced in d6e83e53 (go/loader: changes for vendor
support; CL 18053) and was possible because importPath and fromDir both
have the same type string.

Fix it.

Change-Id: I52deaec6d141846b8a495835b121c1bdc2864215
Reviewed-on: https://go-review.googlesource.com/47343
Reviewed-by: Alan Donovan <adonovan@google.com>
2017-07-05 16:38:48 +00:00
..
testdata go/loader: improve robustness in face of input errors 2015-02-02 20:01:59 +00:00
cgo.go tools: updates for minimum Go version 1.6 2017-02-07 21:06:19 +00:00
cgo_pkgconfig.go go/loader: don't pass ldflags to cgo 2016-03-29 18:37:41 +00:00
doc.go go/loader: update comment 2016-02-22 20:28:10 +00:00
example_test.go go/loader: only run examples on 1.8 2017-02-17 19:31:53 +00:00
loader.go go/loader: Fix thinko in FindPackage hook signature 2017-07-05 16:38:48 +00:00
loader_test.go go/loader: fix a data race 2017-06-19 17:45:44 +00:00
stdlib_test.go tools: updates for minimum Go version 1.6 2017-02-07 21:06:19 +00:00
util.go go/loader: don't treat unsafe specially wrt vendoring 2016-01-08 20:29:04 +00:00