-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Improve generate-* targets in Makefile #1061
Improve generate-* targets in Makefile #1061
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri 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 |
/assign @ncdc |
c6254c8
to
f2a25ba
Compare
Makefile
Outdated
@@ -91,12 +81,18 @@ lint-full: dep-ensure ## Run slower linters to detect possible issues | |||
bazel run //:lint-full $(BAZEL_ARGS) | |||
|
|||
.PHONY: generate | |||
generate: clientset dep-ensure ## Generate code | |||
go generate ./pkg/... ./cmd/... | |||
generate: dep-ensure ## Generate code |
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.
Why do we need a dependency on dep-ensure
here?
hack/verify_clientset.sh
Outdated
@@ -35,7 +35,7 @@ cleanup | |||
mkdir -p "${TMP_DIFFROOT}" | |||
cp -a "${DIFFROOT}"/* "${TMP_DIFFROOT}" | |||
|
|||
make clientset | |||
make generate |
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.
generate-clientset
instead?
I didn't put this on individual lines, but in general, to me, |
f2a25ba
to
d897174
Compare
@ncdc Done |
33761cd
to
471dd74
Compare
471dd74
to
23fe075
Compare
Signed-off-by: Vince Prignano <[email protected]>
23fe075
to
5e9e7ea
Compare
This should be ready to go, I'll rebase the other open PR on it when merged |
/lgtm |
/test pull-cluster-api-test |
Signed-off-by: Vince Prignano [email protected]
What this PR does / why we need it:
This PR attempts to cleanup the Makefile targets specifically around the generation. It reduces build time and the amount of times we call
dep-ensure
andgazelle
.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Related to #945
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
Release note: