mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Codegen: rm openapi files before regen
This commit is contained in:
parent
7f87ecfb9a
commit
6aea6fe86b
@ -501,6 +501,8 @@ function codegen::openapi() {
|
|||||||
"${apimachinery_dirs[@]}"
|
"${apimachinery_dirs[@]}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
git_find -z ':(glob)**'/"${output_base}.go" | xargs -0 rm -f
|
||||||
|
|
||||||
for prefix in "${targets[@]}"; do
|
for prefix in "${targets[@]}"; do
|
||||||
local report_file="${OUT_DIR}/${prefix}_violations.report"
|
local report_file="${OUT_DIR}/${prefix}_violations.report"
|
||||||
# When UPDATE_API_KNOWN_VIOLATIONS is set to be true, let the generator to write
|
# When UPDATE_API_KNOWN_VIOLATIONS is set to be true, let the generator to write
|
||||||
|
Loading…
Reference in New Issue
Block a user