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

1.5.0 regression in JLinkPLugin error handling #1284

Closed
412b opened this issue Nov 21, 2019 · 2 comments · Fixed by #1285
Closed

1.5.0 regression in JLinkPLugin error handling #1284

412b opened this issue Nov 21, 2019 · 2 comments · Fixed by #1285

Comments

@412b
Copy link
Contributor

412b commented Nov 21, 2019

Expected behaviour

jdeps/jlink errors are propagated to sbt

Actual behaviour

errors are neither outputed nor propogated to sbt

Information

  • What sbt-native-packager are you using 1.5.0
  • What sbt version 1.3.3
  • What is your build system (e.g. Ubuntu, MacOS, Windows, Debian ) Ubuntu
  • What package are you building (e.g. docker, rpm, ...) jlink + docker
  • What version has your build tool (find out with e.g. rpm --version)
  • What is your target system (e.g. Ubuntu 16.04, CentOS 7) Ubuntu

commit d2a2cdc broke error handling due to ignoring the exit code completely.

@412b 412b changed the title 1,5,0 regression in JLinkPLugin error handling 1.5.0 regression in JLinkPLugin error handling Nov 21, 2019
@412b
Copy link
Contributor Author

412b commented Nov 22, 2019

the problem there is in the introduced java-tool-launcher, which doesn't handle properly errors.
I can make some PRs here and there to actually fix the things, if needed, but generally it's frustrating practice of introducing new/unstable/buggy tools without tests and stuff.

@nigredo-tori
Copy link
Collaborator

@412b, good catch.

generally it's frustrating practice of introducing new/unstable/buggy tools without tests and stuff.

That's a fair point. However, java-tool-launcher was introduced to solve a specific problem (command line limit overflow), and I found no stable (or even unstable) existing tool for that. There are some tests in java-tool-launcher, but I didn't check that the return code is properly handled. I'll try and fix this soon.

nigredo-tori added a commit to nigredo-tori/sbt-native-packager that referenced this issue Nov 22, 2019
muuki88 pushed a commit that referenced this issue Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants