mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Fix scripts to avoid testdata
This commit is contained in:
parent
514dd0e1f6
commit
db590ecd89
@ -152,6 +152,7 @@ skipped_names = [
|
||||
".git",
|
||||
"cluster/env.sh",
|
||||
"vendor",
|
||||
"testdata",
|
||||
"test/e2e/generated/bindata.go",
|
||||
"hack/boilerplate/test",
|
||||
"staging/src/k8s.io/kubectl/pkg/generated/bindata.go",
|
||||
|
@ -36,6 +36,7 @@ function git_find() {
|
||||
':!:*/vendor/*' `# catches any subdir/vendor/...` \
|
||||
':!:third_party/*' `# catches third_party/...` \
|
||||
':!:*/third_party/*' `# catches third_party/...` \
|
||||
':!:*/testdata/*' `# catches any subdir/testdata/...` \
|
||||
':(glob)**/*.go' \
|
||||
"$@"
|
||||
}
|
||||
|
@ -53,7 +53,8 @@ function git_find() {
|
||||
':!:vendor/*' `# catches vendor/...` \
|
||||
':!:*/vendor/*' `# catches any subdir/vendor/...` \
|
||||
':!:third_party/*' `# catches third_party/...` \
|
||||
':!:*/third_party/*' `# catches third_party/...` \
|
||||
':!:*/third_party/*' `# catches any subdir/third_party/...` \
|
||||
':!:*/testdata/*' `# catches any subdir/testdata/...` \
|
||||
':(glob)**/*.go' \
|
||||
"$@"
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ find_files() {
|
||||
-o -wholename './target' \
|
||||
-o -wholename '*/third_party/*' \
|
||||
-o -wholename '*/vendor/*' \
|
||||
-o -wholename './staging/src/k8s.io/client-go/*vendor/*' \
|
||||
-o -wholename '*/testdata/*' \
|
||||
-o -wholename '*/bindata.go' \
|
||||
\) -prune \
|
||||
\) -name '*.go'
|
||||
|
@ -36,6 +36,7 @@ function find_files_to_check() {
|
||||
git ls-files -cmo --exclude-standard \
|
||||
':!:vendor/*' `# catches vendor/...` \
|
||||
':!:*/vendor/*' `# catches any subdir/vendor/...` \
|
||||
':!:*/testdata/*' `# catches any subdir/testdata/...` \
|
||||
':!:third_party/*' `# catches third_party/...` \
|
||||
':!:*/third_party/*' `# catches third_party/...` \
|
||||
':!:hack/*' `# catches hack/...` \
|
||||
|
Loading…
Reference in New Issue
Block a user