]> Cypherpunks repositories - gostls13.git/commit
go/importer: use correct path for path->package map
authorRobert Griesemer <gri@golang.org>
Sat, 9 Jan 2016 01:56:50 +0000 (17:56 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 11 Jan 2016 18:54:56 +0000 (18:54 +0000)
commit918edf433b363d26d176d4cd6bc4c3928cc2520e
tree811d0887c48bb7208257f991d2c738daeef4882b
parentc02aa463db0c5867a4ae1adfc2f98c436cb751b0
go/importer: use correct path for path->package map

In the presence of vendored packages, the path found in a package
declaration may not be the path at which the package imported from
srcDir was found. Use the correct package path.

Change-Id: I74496c3cdf82a5dbd6a5bd189bb3cd0ca103fd52
Reviewed-on: https://go-review.googlesource.com/18460
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/internal/gcimporter/gcimporter.go