mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Special case godep installation in verify-codecgen for travis
This commit is contained in:
parent
775369a8f1
commit
c5765fbfef
@ -83,18 +83,8 @@ for (( i=0; i<number; i++ )); do
|
|||||||
done
|
done
|
||||||
index=(${result})
|
index=(${result})
|
||||||
|
|
||||||
# Build codecgen from Godeps.
|
|
||||||
# However, we need to install godep first.
|
|
||||||
# We make some tricks with GOPATH variable to make it work with Travis.
|
|
||||||
_gopath=${GOPATH}
|
|
||||||
export GOPATH="${_tmpdir}"
|
|
||||||
go get -u github.com/tools/godep 2>/dev/null
|
|
||||||
go install github.com/tools/godep 2>/dev/null
|
|
||||||
GODEP="${_tmpdir}/bin/godep"
|
|
||||||
export GOPATH=${_gopath}
|
|
||||||
|
|
||||||
CODECGEN="${_tmpdir}/codecgen_binary"
|
CODECGEN="${_tmpdir}/codecgen_binary"
|
||||||
${GODEP} go build -o "${CODECGEN}" github.com/ugorji/go/codec/codecgen
|
godep go build -o "${CODECGEN}" github.com/ugorji/go/codec/codecgen
|
||||||
|
|
||||||
# Generate files in the dependency order.
|
# Generate files in the dependency order.
|
||||||
for current in ${index[@]}; do
|
for current in ${index[@]}; do
|
||||||
|
Loading…
Reference in New Issue
Block a user