• Ian Lance Taylor's avatar
    cmd/go: for get -t and list, look up path in vendor directories · a5caa7c9
    Ian Lance Taylor authored
    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: 's avatarRuss Cox <rsc@golang.org>
    a5caa7c9
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...