-
Notifications
You must be signed in to change notification settings - Fork 1.5k
hack/build: Drop GOPATH stuffing #396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@wking this also needs to include a note in the instructions that we need to |
|
/hold |
511d733 to
6194b9c
Compare
I'd added this in f230c3e (hack/build: Add the local vendor directory for generate, 2018-09-26, openshift#340), citing [1]. But: * vendor/ is not a useful GOPATH addition, because it lacks the src/ that Go requires. Go might look in vendor/src/github.com/... with our GOPATH stuffing, but that won't help it find our vendored libraries. * All that really seems to matter is whether the repository as a whole is checked out into your GOPATH. I'm really looking forward to Go 1.11's modules killing the GOPATH idea. [1]: golang/go#20406 Reported-by: Stephen Augustus <[email protected]>
6194b9c to
6d8dcb4
Compare
|
e2e: /retest |
|
e2e: /retest |
|
Oops, yeah. |
I'd added this in f230c3e (#340), citing golang/go#20406. But:
vendor/is not a usefulGOPATHaddition, because it lacks thesrc/that Go requires. Go might look invendor/src/github.com/...with ourGOPATHstuffing, but that won't help it find our vendoredlibraries.
All that really seems to matter is whether the repository as a whole is checked out into your
GOPATH. I'm not sure how to square that with vendor folder ignore on run golang/go#20406.I'm really looking forward to Go 1.11's modules killing the
GOPATHidea.Reported by @justaugustus.