From 8a2f367ec3e728bb3e54d55c78691953d465af96 Mon Sep 17 00:00:00 2001 From: Benjamin Elder Date: Thu, 24 Apr 2025 20:58:33 -0700 Subject: [PATCH] automatically install goimports when running update-codegen --- hack/update-codegen.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index a08ae650755..4eefcb7a34e 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -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 < <(