kube::log::status "Updating godeps for k8s.io/${repo}"
rm-rf Godeps # remove the current Godeps.json so we always rebuild it
GOPATH="${TMP_GOPATH}:${GOPATH}:${GOPATH}/src/k8s.io/kubernetes/staging" godep save ${GODEP_OPTS} ./... 2>&1 | sed's/^/ /'
# Rewriting Godeps.json to remove commits that don't really exist because we haven't pushed the prereqs yet
go run "${KUBE_ROOT}/staging/godeps-json-updater.go"--godeps-file="${TMP_GOPATH}/src/k8s.io/${repo}/Godeps/Godeps.json"--override-import-path="k8s.io/${repo}"
# commit so that following repos do not see this repo as dirty
echo-e'\nExecute script 'hack/godep-restore.sh' to download dependencies.' 1>&2
exit 1
fi
kube::util::ensure-temp-dir
kube::util::ensure_single_dir_gopath
kube::util::ensure_godep_version v79
kube::util::ensure_no_staging_repos_in_gopath
TMP_GOPATH="${KUBE_TEMP}/go"
function updateGodepManifest(){
local repo="${1}"
pushd"${TMP_GOPATH}/src/k8s.io/${repo}">/dev/null
echo"Updating godeps for k8s.io/${repo}"
rm-rf Godeps # remove the current Godeps.json so we always rebuild it
GOPATH="${TMP_GOPATH}:${GOPATH}:${KUBE_ROOT}/staging" godep save ${V} ./... 2>&1 | sed's/^/ /'
echo"Rewriting Godeps.json to remove commits that don't really exist because we haven't pushed the prereqs yet"
go run "${KUBE_ROOT}/staging/godeps-json-updater.go"--godeps-file="${TMP_GOPATH}/src/k8s.io/${repo}/Godeps/Godeps.json"--override-import-path="k8s.io/${repo}"
# commit so that following repos do not see this repo as dirty
git add vendor >/dev/null
git commit -a-m"Updated Godeps.json">/dev/null
popd>/dev/null
}
# move into staging and save the dependencies for everything in order
mkdir-p"${TMP_GOPATH}/src/k8s.io"
for repo in$(ls${KUBE_ROOT}/staging/src/k8s.io);do