mirror of https://github.com/k3s-io/k3s
hack/verify-staging-client-go.sh: use git-archive to survive dirty checkouts
parent
f1182ddc27
commit
e8a67bcd4f
|
@ -57,8 +57,9 @@ fi
|
||||||
for PACKAGE in apimachinery client-go; do
|
for PACKAGE in apimachinery client-go; do
|
||||||
PACKAGE_PATH="${TEMP_STAGING_GOPATH}/src/k8s.io/${PACKAGE}"
|
PACKAGE_PATH="${TEMP_STAGING_GOPATH}/src/k8s.io/${PACKAGE}"
|
||||||
echo "Creating a temporary ${PACKAGE} repo with a snapshot of HEAD"
|
echo "Creating a temporary ${PACKAGE} repo with a snapshot of HEAD"
|
||||||
|
rm -rf "${PACKAGE_PATH}"
|
||||||
mkdir -p "${PACKAGE_PATH}"
|
mkdir -p "${PACKAGE_PATH}"
|
||||||
rsync -ax --delete staging/src/k8s.io/${PACKAGE}/ "${PACKAGE_PATH}/"
|
git archive --format=tar "HEAD:staging/src/k8s.io/${PACKAGE}" | tar -xf - -C "${PACKAGE_PATH}"
|
||||||
pushd "${PACKAGE_PATH}" >/dev/null
|
pushd "${PACKAGE_PATH}" >/dev/null
|
||||||
git init >/dev/null
|
git init >/dev/null
|
||||||
git add *
|
git add *
|
||||||
|
|
Loading…
Reference in New Issue