<#21693 `archive` target is unable to produce a ZI...
# github-notifications
c
#21693 `archive` target is unable to produce a ZIP file with no extension Issue created by lowvoltage Describe the bug No ZIP-file is produced when
package
-ing an
archive
target with
format="zip"
and
output_path
with no extension. Other packers and ZIPs with (any) extension seem to work fine.
Copy code
❯ 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/pants