ignore pkg/apis dir when running make goimports

Signed-off-by: yuswift <yuswiftli@yunify.com>
This commit is contained in:
yuswift
2021-04-01 10:28:54 +08:00
parent 6cdbf33635
commit 9bc6e6eedb

View File

@@ -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[@]}")