-
Notifications
You must be signed in to change notification settings - Fork 38.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
conversion-gen: make staging dirs independent of living in vendor/ #52790
conversion-gen: make staging dirs independent of living in vendor/ #52790
Conversation
// in the output directory. | ||
// TODO: build a more fundamental concept in gengo for dealing with modifications | ||
// to vendored packages. | ||
if strings.HasPrefix(pkg.SourcePath, arguments.OutputBase) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code is what we use elsewhere, e.g. in deepcopy-gen. The TODO is still valid, but at least this PR unifies different ugly hacks into one.
ff58fa5
to
f545112
Compare
/lgtm |
@DirectXMan12 can you approve the metrics change? |
/approve |
@mikedanese @ixdy can you approve the |
/retest |
/lgtm This is moving in the right direction. |
/retest |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DirectXMan12, deads2k, ixdy, smarterclayton, sttts Associated issue requirement bypassed by: smarterclayton The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 52477, 52790, 52798). If you want to cherry-pick this change to another branch, please follow the instructions here.. |
The
+k8s:conversion-gen
tags included the package directory inside of kube's vendor dir. Thismakes them invalid when we publish staging repos.
Without this PR our sample-apiserver example code-generation is broken once published.