]> Cypherpunks repositories - gostls13.git/commit
go/build: change the search order for "vendor/" paths based on srcDir
authorBryan C. Mills <bcmills@google.com>
Thu, 28 Feb 2019 21:04:43 +0000 (16:04 -0500)
committerBryan C. Mills <bcmills@google.com>
Fri, 8 Mar 2019 18:03:06 +0000 (18:03 +0000)
commit514c5593f0a76ffb86a44b9a5a839ed806d9c7fe
treea306861302a363bd393afbf7e0bab6db82c6942d
parent10156b678336f7628a7f1fdd84ffe2a28d66969a
go/build: change the search order for "vendor/" paths based on srcDir

If srcDir is within GOROOT, prefer GOROOT.
Otherwise, prefer GOPATH.

The attached tests may seem a bit strange; they will make more sense
in a followup CL.

Updates #16333
Updates #30241
Updates #30228

Change-Id: Ic5f1334cce5e242d7f49080aba083bcf2080dee3
Reviewed-on: https://go-review.googlesource.com/c/go/+/164619
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/testdata/script/gopath_std_vendor.txt [new file with mode: 0644]
src/go/build/build.go