mirror of
https://github.com/kubesphere/kubesphere.git
synced 2026-10-17 05:12:05 +08:00
ignore pkg/apis dir when running make goimports
Signed-off-by: yuswift <yuswiftli@yunify.com>
This commit is contained in:
@@ -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[@]}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user