Skip to content

Commit

Permalink
mkdir before calling unzip
Browse files Browse the repository at this point in the history
Busybox's unzip implementation doesn't create directories passed with `-d`, and instead assumes they exist and errors if they don't.

Closes bazelbuild#19461.

PiperOrigin-RevId: 563833721
Change-Id: I5b67dcf8ef17d7b1fd080a54949b0a4001860330
  • Loading branch information
illicitonion authored and copybara-github committed Sep 8, 2023
1 parent 136dae1 commit 5be6e55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/package-bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ cp $* ${PACKAGE_DIR}
if [[ $DEV_BUILD -eq 0 ]]; then
# Unpack the deploy jar for postprocessing and for "re-compressing" to save
# ~10% of final binary size.
mkdir -p $RECOMP
unzip -q -d $RECOMP ${DEPLOY_JAR}
cd $RECOMP

Expand Down

0 comments on commit 5be6e55

Please sign in to comment.