Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty directory not present in .zip #1524

Closed
tomas-surovec-collibra opened this issue Oct 19, 2022 · 1 comment · Fixed by #1525
Closed

Empty directory not present in .zip #1524

tomas-surovec-collibra opened this issue Oct 19, 2022 · 1 comment · Fixed by #1525
Labels
bug universal Zip, tar.gz, tgz and bash issues

Comments

@tomas-surovec-collibra
Copy link

tomas-surovec-collibra commented Oct 19, 2022

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

  • What sbt-native-packager are you using
    • 1.9.11
  • What sbt version
    • 1.7.2
  • What is your build system (e.g. Ubuntu, MacOS, Windows, Debian )
    • Ubuntu 22.04
  • What package are you building (e.g. docker, rpm, ...)
    • universal - zip, tgz, txz
@tomas-surovec-collibra
Copy link
Author

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

@muuki88 muuki88 added bug universal Zip, tar.gz, tgz and bash issues labels Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug universal Zip, tar.gz, tgz and bash issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants