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

missing files cause 'java.io.IOException: This archive contains unclosed entries.' #1035

Closed
OlegYch opened this issue Sep 25, 2017 · 3 comments
Assignees
Labels
feature request universal Zip, tar.gz, tgz and bash issues

Comments

@OlegYch
Copy link
Contributor

OlegYch commented Sep 25, 2017

Expected behaviour

dist errors out with 'missing file'

Actual behaviour

dist fails with java.io.IOException: This archive contains unclosed entries., and creates a corrupt zip file

Information

plugins.sbt

addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.2.2")

build.sbt

enablePlugins(JavaAppPackaging)
mappings in Universal in packageBin += file("nothing") -> "nothing"
@muuki88 muuki88 self-assigned this Sep 25, 2017
@muuki88 muuki88 added feature request universal Zip, tar.gz, tgz and bash issues labels Sep 25, 2017
@muuki88
Copy link
Contributor

muuki88 commented Sep 25, 2017

This is also something we should integrate in #1026

I guess at the moment there is no error handling at all.

@retronym
Copy link
Member

Fixed by #1124. Since version 1.3.9 the dist task for the project above fails fast with a better error message:

1] Not found: /Users/jz/code/native-package-test/nothing (mapped to nothing)

@retronym
Copy link
Member

retronym commented Dec 11, 2019

Also improving the underlying exception handling: #1290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request universal Zip, tar.gz, tgz and bash issues
Projects
None yet
Development

No branches or pull requests

3 participants