-
Notifications
You must be signed in to change notification settings - Fork 76
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
Bunled scripts file mode not preserved #135
Comments
For bin folder files, sbt-pack adds +x, but for the other resource files, I think sbt-pack should preserve the file permission. Which version of sbt are you using? sbt 0.13 or 1.1? |
If this might be related sbt/io#76, using sbt 1.1 will resolve the problem. |
I was on sbt 1.0.4, but switching to 1.1.0 and doing a |
It looks like a bug of sbt-io, which calls setExecutable(true), which only sets x (executable) to the file owner. I'll file a bug ticket. |
@dskrvk Are you saying that
|
At least sbt-pack 0.7.9 was using IO.copyDirectory (same with sbt-pack 0.10.1): sbt-pack/src/main/scala/xerial/sbt/Pack.scala Line 351 in 28c8b6f
|
@eed3si9n the 1st option. I would expect the original permissions to be preserved. |
I recently upgraded from v. 0.7.9 to 0.10.1 and faced an issue where a bunch of scripts stored under
src/pack/
lost some of their "execute" flags aftersbt pack
copied them to the output directory. Specifically, the mode changed from 0775 to 0764. Is this done on purpose?The text was updated successfully, but these errors were encountered: