mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
hack/verify-staging-client-go.sh: use git-archive to survive dirty checkouts
This commit is contained in:
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
Block a user