Commit c8a87d3a authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #41986 from sttts/sttts-verify-staging-client-go-dirty-tree

Automatic merge from submit-queue hack/verify-staging-client-go.sh: use git-archive to survive dirty working tree We used rsync before and copied over the checkout. If some other script, created or changed files, godep refused to run. Now the script uses git-archive against HEAD instead.
parents b799bbf0 e8a67bcd
...@@ -57,8 +57,9 @@ fi ...@@ -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 *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment