Skip to content

Commit

Permalink
Merge pull request kubernetes#16415 from wojtek-t/fix_update_codecgen…
Browse files Browse the repository at this point in the history
…_script

Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Oct 29, 2015
2 parents 325c3b3 + adb9685 commit eda8e8b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hack/update-codecgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit eda8e8b

Please sign in to comment.