mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +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
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user