make update-codecgen.sh more predictable

This commit is contained in:
deads2k 2015-11-03 10:02:52 -05:00
parent c8fe00b94f
commit c8d8c390cb

View File

@ -19,7 +19,9 @@ set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
cd "${KUBE_ROOT}"
source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::setup_env
generated_files=$(
find . -not \( \
@ -38,6 +40,7 @@ function cleanup {
rm -f "${CODECGEN:-}"
}
trap cleanup EXIT
CODECGEN="${PWD}/codecgen_binary"
godep go build -o "${CODECGEN}" github.com/ugorji/go/codec/codecgen