Ignore _gopath in verify scripts

The _gopath directory is used in Jenkins to install extra dependencies,
and any files in it should be ignored by the various verification
scripts.
This commit is contained in:
Jeff Grafton
2015-09-25 15:01:59 -07:00
parent 4d18186afd
commit 4cafa3e92d
6 changed files with 9 additions and 3 deletions

View File

@@ -241,11 +241,12 @@ kube::util::gen-analytics() {
else
dir="${path}"
fi
# We don't touch files in Godeps|third_party, and the kubectl
# We don't touch files in Godeps|third_party|_gopath, and the kubectl
# docs are autogenerated by gendocs.
mdfiles=($( find "${dir}" -name "*.md" -type f \
-not -path "${path}/Godeps/*" \
-not -path "${path}/third_party/*" \
-not -path "${path}/_gopath/*" \
-not -path "${path}/_output/*" \
-not -path "${path}/docs/user-guide/kubectl/kubectl*" ))
for f in "${mdfiles[@]}"; do