Merge pull request #48685 from sttts/sttts-godep-symlink-workaround

Automatic merge from submit-queue

godep-save.sh: add workaround and more instructions

Fixes https://github.com/kubernetes/kubernetes/issues/48593, hit again in https://github.com/kubernetes/kubernetes/pull/47232#issuecomment-314025645.
pull/6/head
Kubernetes Submit Queue 2017-07-11 15:37:09 -07:00 committed by GitHub
commit 112d7413f9
1 changed files with 8 additions and 1 deletions

View File

@ -52,6 +52,7 @@ pushd "${KUBE_ROOT}" > /dev/null
exit 1
fi
echo "Running godep save. This will take around 15 minutes."
GOPATH=${GOPATH}:${KUBE_ROOT}/staging godep save "${REQUIRED_BINS[@]}"
# create a symlink in vendor directory pointing to the staging client. This
@ -63,4 +64,10 @@ pushd "${KUBE_ROOT}" > /dev/null
done
popd > /dev/null
echo "Don't forget to run hack/update-godep-licenses.sh if you added or removed a dependency!"
# Workaround broken symlink in docker repo because godep copies the link, but not the target
rm -rf ${KUBE_ROOT}/vendor/github.com/docker/docker/project/
echo
echo "Don't forget to run:"
echo "- hack/update-bazel.sh to recreate the BUILD files"
echo "- hack/update-godep-licenses.sh if you added or removed a dependency!"