Create a script to update godeps

Since its hard for an individual to remember that we need codecgen and
ginkgo in godeps but don't actually have that dependancy listed in a way
that godep can automatically find.
This commit is contained in:
Eric Paris
2016-03-10 13:45:36 -05:00
parent 4dc0b8780c
commit 5543e2e3fd
2 changed files with 35 additions and 2 deletions

View File

@@ -88,8 +88,7 @@ rm -rf ./Godeps ./vendor
git init > /dev/null 2>&1
# Recreate the Godeps using the nice clean set we just downloaded
# TODO(thockin, eparis): Move this in to a common script with hack/godep-save.sh
"${GODEP}" save github.com/ugorji/go/codec/codecgen github.com/onsi/ginkgo/ginkgo ./...
hack/godep-save.sh
# Test for diffs
if ! _out="$(diff -Naupr --ignore-matching-lines='^\s*\"GoVersion\":' --ignore-matching-lines='^\s*\"Comment\":' ${KUBE_ROOT}/Godeps/Godeps.json ${_kubetmp}/Godeps/Godeps.json)"; then