mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-02 19:28:16 +00:00 
			
		
		
		
	Special case godep installation in verify-codecgen for travis
This commit is contained in:
		@@ -83,18 +83,8 @@ for (( i=0; i<number; i++ )); do
 | 
			
		||||
done
 | 
			
		||||
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"
 | 
			
		||||
${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.
 | 
			
		||||
for current in ${index[@]}; do
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user