Skip to content
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

Makefile: Remove generated files before regenerating #1181

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sharnoff
Copy link
Member

Spawned out of conversation with @edude03 for #1158 — basically, it's hard to be sure that updates to controller-gen are working correctly, so making sure that all old files are removed before re-generating can help provide assurances that all files continue to be generated after a change.

Spawned out of conversation with @edude03 -- basically, it's hard to be
sure that updates to controller-gen are working correctly, so making
sure that all old files are removed before re-generating can help
provide assurances that all of the new files *are* generated by it.
@sharnoff sharnoff requested review from edude03, a team and petuhovskiy and removed request for a team December 17, 2024 23:30
@sharnoff sharnoff changed the title make generate: Remove generated files beforehand Makefile: Remove generated files before regenerating Dec 17, 2024
@@ -83,6 +83,7 @@ help: ## Display this help.
generate: ## Generate boilerplate DeepCopy methods, manifests, and Go client
# Use uid and gid of current user to avoid mismatched permissions
set -e ; \
rm -rf neonvm/client neonvm/apis/neonvm/v1/zz_generated.deepcopy.go
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: would be nice in general have a traditional "make clean" target that drops generated and compiled things, because we already do clean ups here and there (kernel, generated files).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants