mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Fix hack/update-codecgen.sh script
This commit is contained in:
		@@ -41,6 +41,14 @@ trap cleanup EXIT
 | 
			
		||||
CODECGEN="${PWD}/codecgen_binary"
 | 
			
		||||
godep go build -o "${CODECGEN}" github.com/ugorji/go/codec/codecgen
 | 
			
		||||
 | 
			
		||||
# Running codecgen fails if some of the files doesn't compile.
 | 
			
		||||
# Thus (since all the files are completely auto-generated and
 | 
			
		||||
# not required for the code to be compilable, we first remove
 | 
			
		||||
# them and the regenerate them.
 | 
			
		||||
for generated_file in ${generated_files}; do
 | 
			
		||||
	rm -f "${generated_file}"
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
for generated_file in ${generated_files}; do
 | 
			
		||||
  initial_dir=${PWD}
 | 
			
		||||
  file=${generated_file//\.generated\.go/.go}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user