mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
make update-codecgen.sh more predictable
This commit is contained in:
parent
c8fe00b94f
commit
c8d8c390cb
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user