-
Notifications
You must be signed in to change notification settings - Fork 443
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
AshScriptPlugin generates unnecessary warnings for undefined environment variables #978
Comments
Thanks for your report @AesaKamar I wonder where these variables are being referenced. The ash-template doesn't use them. Can you post the content of |
@AesaKamar I updated the To test with my setup do the following
I don't see any warnings. I'm building the image on |
I'm on the same project as Aesa but I'm also not seeing these functions referenced in the ash template https://github.com/sbt/sbt-native-packager/blob/master/src/main/resources/com/typesafe/sbt/packager/archetypes/scripts/ash-template some extra info, we're using these plugins https://github.com/cakesolutions/sbt-cake/tree/v1.0.4/src/main/scala/net/cakesolutions of most relevance are |
oh, hold on, but not in v1.1.6... hmm https://github.com/sbt/sbt-native-packager/blob/v1.1.6/src/main/resources/com/typesafe/sbt/packager/archetypes/ash-template |
upgrading to 1.2.0 we no longer see the
|
which is weird, because line 56 is https://github.com/sbt/sbt-native-packager/blob/v1.2.0/src/main/resources/com/typesafe/sbt/packager/archetypes/scripts/ash-template#L56
|
aaah, but the generated file, line 56 looks like this
which looks like it is coming from |
|
my workaround is to set this in bashScriptExtraDefines := List(
"""addJava "-Duser.dir=$(realpath "$(cd "${app_home}/.."; pwd -P)")""""
) or defining |
Thanks for the digging @fommil ❤️ Where does this line come from?
I couldn't find this in native-packer nor in the sbt-cake code base yet. I have searched von |
Hmm, I had assumed native-packager was adding it. Is it generated somewhere? We're not adding it. Spooky. |
Very spooky. I tried to find the |
I wonder if another plugin is adding it with reflection magic. |
well I'm not sure but |
@schmitch it actually does. We reused this setting. The distinction is currently between "Unix" and "windows" start scripts not between various shell implementations. |
Hi, As @fommil said:
Would be a solution for the issue or the |
Thanks for taking an initiative again on this one @glammers1 🤗 . I have no experience with |
Hi, I have some questions about the possible solutions. The problem is not just adding the The two possible solutions I have thought of are: 1 - ash-template is not designed to use with cygwin (docs should be updated). The solution would be add the following:
2 - ash-template is adapted to use with cygwin. It involves adding everything related to cygwin from bash-template to ash-template. TBH, I don't know which solution would be the right one or if there are others that I have not thought. |
I'll heavily favor solution 1. Even I have neither used cygwin nor ash from my understanding
|
@muuki88 5 years later... I agree probably just adding a |
Go for it ❤️❤️ |
@muuki88 See if you could take a look this would be nice. |
Thanks for merging @muuki88, this issue is now resolved and can be closed. |
Expected behaviour
When building packages using the AshScriptPlugin and the DockerPlugin
Running
docker-compose up
Should generate no warnings or errors from the shell
Actual behaviour
Running `docker-compose up'
Actually generates
Information
1.1.6
0.13.15
macOS 10.12.4
docker
rpm --version
) :Docker version 17.03.1-ce, build c6d412e
Alpine Linux on docker
The text was updated successfully, but these errors were encountered: