Skip to content

Commit

Permalink
Overwrite unzip output since MacOS reuse sandbox
Browse files Browse the repository at this point in the history
Files not registered are not cleaned up in MacOS and this cause
unzip to prompt for user input and fail.
  • Loading branch information
AkaZn committed Aug 31, 2022
1 parent aaeb865 commit 374c3dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cue/cue.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CUE=$1; shift
PKGZIP=$1; shift
OUT=$1; shift
unzip -q ${PKGZIP}
unzip -qo ${PKGZIP}
${CUE} def -o ${OUT}
""",
inputs = [merged],
Expand Down Expand Up @@ -186,7 +186,7 @@ PKGZIP=$1; shift
SRC=$1; shift
OUT=$1; shift
unzip -q ${PKGZIP}
unzip -qo ${PKGZIP}
${CUE} export -o ${OUT} $@ ${SRC}
""",
inputs = [merged],
Expand Down Expand Up @@ -360,7 +360,7 @@ PKGZIP=$1; shift
SCHEMA=$1; shift
OUT=$1; shift
unzip -q ${PKGZIP}
unzip -qo ${PKGZIP}
${CUE} vet $@ "${SCHEMA}"
touch $OUT
""",
Expand Down

0 comments on commit 374c3dc

Please sign in to comment.