You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @JLofgren and thanks for the very well written bug report.
I can reproduce the error and this doesn't look right. The reason for this is very likely some (b)ash quoting thing. I'm very bad at writing or debugging these things 😬
Expected behaviour
Given this basic program that prints its command lines arguments and the length of the argument list:
The program is packaged as a docker container with AshScriptPlugin:
When the program is run with no arguments, the program should print an args length of 0 and an empty list:
And when called with two arguments, the program should print an args length of 2 and a list with the two arguments:
Actual behaviour
The length of the argument list is always 1.
In the case where no arguments are given, the argument list passed to the app is a list of one empty string:
$ docker run sbt-native-packager-ashscriptplugin-bug:0.1.0-SNAPSHOT argsLength=1, args=List('')
In the case of two arguments, the argument list is one string containing a space-separated list of the arguments with a leading space:
$ docker run sbt-native-packager-ashscriptplugin-bug:0.1.0-SNAPSHOT --foo bar argsLength=1, args=List(' --foo bar')
Information
rpm --version
)openjdk:11-jre
Example
This bug is reproduced in: https://github.com/JLofgren/sbt-native-packager-ashscriptplugin-bug
The text was updated successfully, but these errors were encountered: