-
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
Store executable permission of files not in /bin/
for universal-plugin
#695
Comments
What OS are you using to build your package? MacOS has some issue preserving the executable bit. |
I'm using Linux. I was also wondering why the first copying into the staging area keeps the permissions, but the second copy operation does not. I suspected the reason being that tmpfs was involved or that the copy operation crosses file system boundaries. So I started sbt with |
I looked into this again, and I must have been blind... Of course, the permissions are not copied over to the tmp folder because So, how about changing to https://github.com/sbt/sbt-native-packager/blob/master/src/main/scala/com/typesafe/sbt/packager/universal/Archives.scala#L234 to something like: for (f, t <- m2 if f.isDirectory || f.canExecute) {
t.setExecutable(true, false)
} |
I think we need to keep the other logic as well However if this is not the case, then your solution would be a way better as it is clear what happens. We could also try using Java7 NIO for this? |
any updates? will this be fixed in version 1.2.0? |
If you provide a pull request :) |
We're using
sbt universal:packageZipTarball
to create a tgz from our Play project. (using sbt-native-packager 1.0.1)There's a file which is not in a "bin" folder but has executable permissions set.
When copied to target/universal/stage the permissions remain.
But, when copied to
/tmp/sbt_XXXXX/...
the executable bits have vanished, the permissions are set to 0644.The text was updated successfully, but these errors were encountered: