-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Use -mod=vendor for most go commands #9396
Conversation
Without this set, go 1.13 was redownloading all dependencies into the module cache, effectively ignoring the vendor directory. This instructs go 1.13 to always use (and verify the contents of) the vendor directory. See an example prow job here: https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/kops/9389/pull-kops-verify-govet/1273460433402990595 All of the `go: downloading` and `go: extracting` lines indicate its downloading those dependencies rather than using the vendor directory.
Skipping CI for Draft Pull Request. |
/test all |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rifelpet The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unassign @justinsb while i work out some issues |
/test all |
though it would probably be best to vendor this?
/lgtm |
Without this set, go 1.13 was redownloading all dependencies into the module cache, effectively ignoring the vendor directory.
This instructs go 1.13 to always use (and verify the contents of) the vendor directory.
See an example prow job here. All of the
go: downloading
andgo: extracting
lines indicate its downloading those dependencies rather than using the vendor directory.Unsetting it for when we actually update the vendor directory with
make gomod
.I'm not sure if/how this affects bazel
Ref: #9389 (comment)
/assign @justinsb