Codegen: rm openapi files before regen

This commit is contained in:
Tim Hockin 2023-01-04 16:03:42 -08:00
parent 7f87ecfb9a
commit 6aea6fe86b
No known key found for this signature in database

View File

@ -501,6 +501,8 @@ function codegen::openapi() {
"${apimachinery_dirs[@]}"
)
git_find -z ':(glob)**'/"${output_base}.go" | xargs -0 rm -f
for prefix in "${targets[@]}"; do
local report_file="${OUT_DIR}/${prefix}_violations.report"
# When UPDATE_API_KNOWN_VIOLATIONS is set to be true, let the generator to write