From e149f79d4eee68f7b8456868d12686a503280924 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Wed, 4 Jan 2023 16:00:36 -0800 Subject: [PATCH] Codegen: rm defaults files before regen --- hack/update-codegen.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 29cc94d3db0..4b0a0f01df7 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -254,6 +254,8 @@ function codegen::defaults() { done fi + git_find -z ':(glob)**'/"${output_base}.go" | xargs -0 rm -f + ./hack/run-in-gopath.sh "${gen_defaulter_bin}" \ --v "${KUBE_VERBOSE}" \ --logtostderr \