Skip to content

Commit 8a2f367

Browse files
committed
automatically install goimports when running update-codegen
1 parent 1473aea commit 8a2f367

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hack/update-codegen.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ if [[ "${DBG_CODEGEN}" == 1 ]]; then
4949
kube::log::status "DBG: starting generated_files"
5050
fi
5151

52+
echo "installing goimports from hack/tools"
53+
go -C "${KUBE_ROOT}/hack/tools" install golang.org/x/tools/cmd/goimports
54+
5255
# Generate a list of directories we don't want to play in.
5356
DIRS_TO_AVOID=()
5457
kube::util::read-array DIRS_TO_AVOID < <(

0 commit comments

Comments
 (0)