mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #106559 from thockin/kfind-no-testdata
testdata dirs are not useful go code
This commit is contained in:
commit
1d44a54505
@ -38,8 +38,8 @@ trap 'rm -f "${CACHE}"' HUP INT TERM ERR
|
|||||||
function kfind() {
|
function kfind() {
|
||||||
# We want to include the "special" vendor directories which are actually
|
# We want to include the "special" vendor directories which are actually
|
||||||
# part of the Kubernetes source tree (./staging/*) but we need them to be
|
# part of the Kubernetes source tree (./staging/*) but we need them to be
|
||||||
# named as their ./vendor/* equivalents. Also, we do not want all of
|
# named as their ./vendor/* equivalents. Also, we do not want all of
|
||||||
# ./vendor , ./hack/tools/vendor or even all of ./vendor/k8s.io.
|
# ./vendor nor ./hack/tools/vendor nor even all of ./vendor/k8s.io.
|
||||||
find -H . \
|
find -H . \
|
||||||
\( \
|
\( \
|
||||||
-not \( \
|
-not \( \
|
||||||
@ -49,6 +49,10 @@ function kfind() {
|
|||||||
\( \
|
\( \
|
||||||
-name 'vendor' \
|
-name 'vendor' \
|
||||||
-type d \
|
-type d \
|
||||||
|
\) -o \
|
||||||
|
\( \
|
||||||
|
-name 'testdata' \
|
||||||
|
-type d \
|
||||||
\) \
|
\) \
|
||||||
\) -prune \
|
\) -prune \
|
||||||
\) \
|
\) \
|
||||||
|
Loading…
Reference in New Issue
Block a user