-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
🏃 Remove vendor #422
🏃 Remove vendor #422
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DirectXMan12 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 |
I wonder if the vendor folder should be preserved until GOPROXY becomes common/stable and Go 1.13 is released (when go mod becomes default on). I saw that prometheus-operator project uses |
yeah, that's what we had in controller-tools before, but I'm not convinced of how useful it is. What's the usecase? |
Vendoring is useful for folks who are behind slow internet connection. This feels a bit rushed. But I have no objection. |
Another usefulness of vendor folder is to see what has changed when go.mod file is updated. The version syntax of go.mod is unreadable for k8s.io repos. So that might be useful at times. But that can be done locally, I guess. |
I am sympathetic to that, but ideally the local shared module cache should help with that (and, not checking in vendor helps keep the overall repo size down). Additionally, the vendor directory won't actually help if you're consuming controller-runtime, just if you're hacking on CR itself, so for users with slow internet, it doesn't matter either way.
Yeah, that part's fairly unfortunate, but there's not really much we can do until k/k gets its act together. |
Modules don't need vendor any more, so it doesn't serve any purpose.
4c32885
to
408db94
Compare
This caches the go mod and go build cache directories, which should speed up test runs.
Modules don't need vendor any more, so it doesn't serve any purpose.