Skip to content

Commit

Permalink
make generate: Remove generated files beforehand
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sharnoff committed Dec 17, 2024
1 parent 17a07a9 commit 541af30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
iidfile=$$(mktemp /tmp/iid-XXXXXX) ; \
docker build \
--build-arg USER_ID=$(shell id -u $(USER)) \
Expand Down

0 comments on commit 541af30

Please sign in to comment.