diff --git a/staging/copy.sh b/staging/copy.sh index 91ef7d238a6..9a317e8994c 100755 --- a/staging/copy.sh +++ b/staging/copy.sh @@ -206,7 +206,6 @@ find "${CLIENT_REPO_TEMP}" -type f -name "*.go" -print0 | xargs -0 gofmt -w echo "remove black listed files" find "${CLIENT_REPO_TEMP}" -type f \( \ - -name "*BUILD" -o \ -name "*.json" -not -name "Godeps.json" -o \ -name "*.yaml" -o \ -name "*.yml" -o \ @@ -217,7 +216,8 @@ if [ "${FAIL_ON_CHANGES}" = true ]; then echo "running FAIL_ON_CHANGES" # ignore base.go in diff cp "${CLIENT_REPO}/pkg/version/base.go" "${CLIENT_REPO_TEMP}/pkg/version/" - if diff -NauprB -I '^\s*\"Comment\"' -I "GoVersion.*\|GodepVersion.*" "${CLIENT_REPO}" "${CLIENT_REPO_TEMP}"; then + # TODO(mikedanese): figure out what to do with BUILD files here + if diff -NauprB -x '*BUILD' -I '^\s*\"Comment\"' -I "GoVersion.*\|GodepVersion.*" "${CLIENT_REPO}" "${CLIENT_REPO_TEMP}"; then echo "${CLIENT_REPO} up to date." exit 0 else