-
Notifications
You must be signed in to change notification settings - Fork 446
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
Execute flag missing from bin/prog with sbt task universal:packageBin when zipped and unzipped in OS X #334
Comments
Seems Ubuntu 14.04 LTS unzips the package nice, with execution flag on. So to narrow down the bug: unzipping on OS X 10.9.4 leaves the |
Thanks for tracking this! @kardapoltsev can you reproduce on one of your linux systems (centos, gentoo,..)? If not, this is clearly a problem on Mac :( |
I've tried this on Gentoo and Centos:
Also, I've copied this zip file to MacOS, unzip and found that executable flag is on. |
@akauppi have you found a workaround? I couldn't get my hands on a mac to reproduce this. Can you try to customize your build using packagerSettings // I think using an archetype here is fine, too
useNativeZip |
Thanks, @muuki88 . I'll have a look tomorrow, but since we are not targeting OS X primarily, this is a low priority issue for us. |
Yes, adding the
$ rm -rf target/universal There is an 'x' next for owner of
... As you can see, it's not only the missing of the execution right, but missing of reading right from anyone but the owner. |
Also there in 0.8.0-M1 |
Thanks for reporting back. I have to apologize to @jsuereth not reading his docs, which state:
So at the moment I recommend to use |
Sounds good to me. I'm also in the clear by the interim solution. Up to you if you wish to close this issue or keep it as a reminder. |
We'll keep this as a reminder :-) |
Bad news. NIO doesn't fix this either :( |
Hi,
thanks a Million for sbt-native-packager. Have found one minor bug I'd like to report - unfortunately don't have time to do more on this. Occurs on both 0.7.1 and 0.7.5-RC1.
If I do
sbt stage
task, thebin/myapp
file has execution attribute, as expected.If I do
universal:packageBin
(i.e. allowing sbt to zip the package for me), it doesn't.I'm using OS X 10.9.4 and Java 1.8.0_11-b12 if that matters (though I'm not 100% sure which JDK gets kicked in for the zipping).
The text was updated successfully, but these errors were encountered: