Merge pull request #16415 from wojtek-t/fix_update_codecgen_script

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2015-10-29 00:51:07 -07:00
commit eda8e8b55f

View File

@ -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}