Merge pull request #16731 from deads2k/fix-update-codec

make update-codecgen.sh more predictable
This commit is contained in:
Wojciech Tyczynski 2015-11-04 10:46:40 +01:00
commit e565477795

View File

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