mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Let verify-vendor operate on a dirty repo
Several hours of wasted debug because of this.
This commit is contained in:
parent
7cbef7b26f
commit
b450001983
@ -48,11 +48,9 @@ function cleanup {
|
|||||||
kube::util::trap_add cleanup EXIT
|
kube::util::trap_add cleanup EXIT
|
||||||
|
|
||||||
# Copy the contents of the kube directory into the nice clean place (which is NOT shaped like a GOPATH)
|
# Copy the contents of the kube directory into the nice clean place (which is NOT shaped like a GOPATH)
|
||||||
_kubetmp="${_tmpdir}"
|
_kubetmp="${_tmpdir}/kubernetes"
|
||||||
mkdir -p "${_kubetmp}"
|
mkdir -p "${_kubetmp}"
|
||||||
# should create ${_kubectmp}/kubernetes
|
tar --exclude=.git --exclude="./_*" -c . | (cd "${_kubetmp}" && tar xf -)
|
||||||
git archive --format=tar --prefix=kubernetes/ "$(git write-tree)" | (cd "${_kubetmp}" && tar xf -)
|
|
||||||
_kubetmp="${_kubetmp}/kubernetes"
|
|
||||||
|
|
||||||
# Do all our work in module mode
|
# Do all our work in module mode
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
|
Loading…
Reference in New Issue
Block a user