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

Add addApp function to align with bash version #1339

Merged
merged 2 commits into from
May 11, 2020
Merged

Add addApp function to align with bash version #1339

merged 2 commits into from
May 11, 2020

Conversation

olsio
Copy link
Contributor

@olsio olsio commented May 8, 2020

Closes #862

@lightbend-cla-validator
Copy link

Hi @olsio,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:

http://www.lightbend.com/contribute/cla

@olsio
Copy link
Contributor Author

olsio commented May 8, 2020

Signed the CLA

@muuki88
Copy link
Contributor

muuki88 commented May 9, 2020

Thanks a lot for adding this feature ♥️

It would be awesome to add one sbt-test to validate that this feature works with future changes.

https://github.com/sbt/sbt-native-packager/tree/master/src/sbt-test/ash/command-line-settings

You can checkout the dev guidelines for pointers on how to run the tests.

@olsio
Copy link
Contributor Author

olsio commented May 9, 2020

Sure will have a look.

@olsio
Copy link
Contributor Author

olsio commented May 11, 2020

I added the test. It wouldn't build on MacOS so I had to find a Ubuntu machine first.

In general it might be a good idea to remove this plug-in all together and just have a single JavaAppPackaging version of the script without relying on bash. But I don't know what the implications of that would be.

@muuki88 muuki88 added docker universal Zip, tar.gz, tgz and bash issues labels May 11, 2020
@muuki88
Copy link
Contributor

muuki88 commented May 11, 2020

Awesome 👍 Thanks for the additional test.

In general it might be a good idea to remove this plug-in all together and just have a single JavaAppPackaging version of the script without relying on bash

From an engineering perspective I would agree to find the smallest common denominator and remove the additional stuff. My bare minimum bash knowledge is afraid of doing such a thing.

But I don't know what the implications of that would be.

Me neither 😂 I have merged like 1-5 pull request each year adding a bit more "bash magic" to make certain use cases work. Bash is really string escaping hell. So at this point I'm okay with maintaining an ash and bash implementation as I have to find someone willing to backport all the weird bash hacks I don't quite understand 😞

So in general yes ❤️ If you want to do it, I'll give you as much support as I can 🤗

@muuki88 muuki88 merged commit 0c62462 into sbt:master May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker universal Zip, tar.gz, tgz and bash issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ash-template doesn't have the addApp function like in bash template
3 participants