From 6850b2c08bea10da25ff2cc6012dca09dbf7e614 Mon Sep 17 00:00:00 2001 From: Borja Lorente Date: Thu, 6 Jun 2024 15:54:16 +0100 Subject: [PATCH] fix: Use argfile with bazel zipper (#6470) --- intellij_platform_sdk/build_defs.bzl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/intellij_platform_sdk/build_defs.bzl b/intellij_platform_sdk/build_defs.bzl index 58447694d46..b97d13bb643 100644 --- a/intellij_platform_sdk/build_defs.bzl +++ b/intellij_platform_sdk/build_defs.bzl @@ -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" "$@"