Skip to content

Commit

Permalink
fix: Use argfile with bazel zipper (#6470)
Browse files Browse the repository at this point in the history
  • Loading branch information
blorente authored Jun 6, 2024
1 parent ff5d037 commit 6850b2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions intellij_platform_sdk/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,8 @@ def no_mockito_extensions(name, jars, **kwargs):
# We store the results from `find` in a file to deal with filenames with spaces
files_to_tar_file=$$(mktemp)
find . -type f | sed 's:^./::' > "$${files_to_tar_file}"
IFS="\n" read -r -d "" -a files_to_tar < "$${files_to_tar_file}" || true
"$$zipper" cC "../out.jar" "$${files_to_tar[@]}"
"$$zipper" cC "../out.jar" "@$${files_to_tar_file}"
popd
cp "$$tmpdir/out.jar" "$@"
Expand Down

0 comments on commit 6850b2c

Please sign in to comment.