Unify godep code in hack/*-godep*.sh

This commit is contained in:
Dr. Stefan Schimanski
2017-03-08 13:36:42 +01:00
parent cf732613e3
commit 798d9c2ed3
3 changed files with 21 additions and 10 deletions

View File

@@ -20,9 +20,10 @@ set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/hack/lib/init.sh"
export GOPATH=${GOPATH}:${KUBE_ROOT}/staging
GODEP="${GODEP:-godep}"
source "${KUBE_ROOT}/hack/lib/util.sh"
kube::util::ensure_godep_version v74
echo "Starting to download all kubernetes godeps. This takes a while"
"${GODEP}" restore "$@"
GOPATH=${GOPATH}:${KUBE_ROOT}/staging godep restore "$@"
echo "Download finished"