Skip to content

Commit b450001

Browse files
committed
Let verify-vendor operate on a dirty repo
Several hours of wasted debug because of this.
1 parent 7cbef7b commit b450001

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

hack/verify-vendor.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@ function cleanup {
4848
kube::util::trap_add cleanup EXIT
4949

5050
# Copy the contents of the kube directory into the nice clean place (which is NOT shaped like a GOPATH)
51-
_kubetmp="${_tmpdir}"
51+
_kubetmp="${_tmpdir}/kubernetes"
5252
mkdir -p "${_kubetmp}"
53-
# should create ${_kubectmp}/kubernetes
54-
git archive --format=tar --prefix=kubernetes/ "$(git write-tree)" | (cd "${_kubetmp}" && tar xf -)
55-
_kubetmp="${_kubetmp}/kubernetes"
53+
tar --exclude=.git --exclude="./_*" -c . | (cd "${_kubetmp}" && tar xf -)
5654

5755
# Do all our work in module mode
5856
export GO111MODULE=on

0 commit comments

Comments
 (0)