]> Cypherpunks repositories - gostls13.git/commit
cmd/go: for get -t and list, look up path in vendor directories
authorIan Lance Taylor <iant@golang.org>
Tue, 21 Jul 2015 20:59:35 +0000 (13:59 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 22 Jul 2015 21:16:53 +0000 (21:16 +0000)
commita5caa7c94eda915ee5e5ff82d81a22b8392d84aa
tree5f956ca547928560df0420bce22f58d5ea17e637
parent77d38d9cbe9b4047e7155569e7b9485093807e17
cmd/go: for get -t and list, look up path in vendor directories

This is needed to handle vendor directories correctly.  It was already
done for the regular imports when the package was loaded, but not for
the test-only imports.

It would be nice to do this while loading the package, but that breaks
the code that checks for direct references to vendor packages when
running go test.  This change is relatively contained.

While we're at it, skip "C" test imports in go get.

Fixes #11628.
Fixes #11717.

Change-Id: I9cc308cf45683e3ff905320c2b5cb45db7716846
Reviewed-on: https://go-review.googlesource.com/12488
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/get.go
src/cmd/go/list.go
src/cmd/go/vendor_test.go