cool-easter-32542
11/26/2024, 1:55 PMpackage-ing an archive target with format="zip" and output_path with no extension.
Other packers and ZIPs with (any) extension seem to work fine.
❯ ls -l
total 24
-rw-r--r-- 1 mitko staff 153 Nov 23 20:12 BUILD
-rw-r--r-- 1 mitko staff 14 Nov 23 20:08 a.txt
-rw-r--r-- 1 mitko staff 36 Nov 23 20:08 pants.toml
❯ cat BUILD
file(
name="file-a",
source="a.txt",
)
archive(
name="zip-of-a",
files=[":file-a"],
format="zip",
output_path="with_no_ext",
)
❯ pants package //:zip-of-a
22:18:10.10 [INFO] Wrote dist/with_no_ext
❯ ls -l dist
total 0
Pants version
`2.23.0`; main
OS
macOS
Additional info
Seems to be caused by the zip-executable "conveniently" appending a .zip extension, when no extension is specified
pantsbuild/pantscool-easter-32542
12/03/2024, 5:06 AM