From 9bc6e6eedbcd3df5ea16203ecfce763ba5946be4 Mon Sep 17 00:00:00 2001 From: yuswift Date: Thu, 1 Apr 2021 10:28:54 +0800 Subject: [PATCH] ignore pkg/apis dir when running make goimports Signed-off-by: yuswift --- hack/verify-goimports.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/verify-goimports.sh b/hack/verify-goimports.sh index d8e9b541c..da818a95a 100755 --- a/hack/verify-goimports.sh +++ b/hack/verify-goimports.sh @@ -30,7 +30,7 @@ fi cd "${KUBE_ROOT}" || exit 1 -IFS=$'\n' read -r -d '' -a files < <( find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./pkg/client/*" && printf '\0' ) +IFS=$'\n' read -r -d '' -a files < <( find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./pkg/apis/*" -not -path "./pkg/client/*" && printf '\0' ) output=$(goimports -local kubesphere.io/kubesphere -l "${files[@]}")