sbt / sbt-native-packager

sbt Native Packager
https://sbt-native-packager.readthedocs.io/en/stable/
BSD 2-Clause "Simplified" License
1.59k stars 437 forks source link

Empty directory not present in .zip #1524

Closed tomas-surovec-collibra closed 1 year ago

tomas-surovec-collibra commented 1 year ago

Expected behaviour

A mapped empty directory should be present in target .zip file.

Actual behaviour

A mapped empty directory is present in .tgz, .txz and .dmg but not .zip. See attached example. When run with sbt universal:package{Bin,ZipTarball,XzTarball}, the target target/universal/packaging-demo-0.0.tgz and target/universal/packaging-demo-0.0.txz have folder emptydir inside them but target/universal/packaging-demo-0.0.zip doesn't.

Information

Demo: sbt-native-packager_inconsistency.zip

tomas-surovec-collibra commented 1 year ago

Workaround - the empty directories are present in zip when useNativeZip is used.