automatically install goimports when running update-codegen

This commit is contained in:
Benjamin Elder
2025-04-24 20:58:33 -07:00
parent 1473aeaac4
commit 8a2f367ec3

View File

@@ -49,6 +49,9 @@ if [[ "${DBG_CODEGEN}" == 1 ]]; then
kube::log::status "DBG: starting generated_files"
fi
echo "installing goimports from hack/tools"
go -C "${KUBE_ROOT}/hack/tools" install golang.org/x/tools/cmd/goimports
# Generate a list of directories we don't want to play in.
DIRS_TO_AVOID=()
kube::util::read-array DIRS_TO_AVOID < <(