-
Notifications
You must be signed in to change notification settings - Fork 3k
Set fixed file/dir permissions for zip entries when building an archive #49808
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
Conversation
Should we also do something similar in |
Done in quarkusio/quarkus-fs-util#60, as |
Awesome! Thanks a lot! |
This comment has been minimized.
This comment has been minimized.
4508161
to
3aff4c8
Compare
@Eng-Fouad what did you change in your second push? |
Just rebasing. |
OK, there's no need if there's no conflict :) Just to be sure, what happened before this patch if the original file was executable? Because I wouldn't want to change the semantic. |
I am afraid I don't get your question. When I was trying to test Gradle 9 with building sample Quarkus project, Gradle 9 by default was generating same JARs with no diffs. However, when I set the option |
This comment has been minimized.
This comment has been minimized.
@Eng-Fouad my question is: what happens if the initial file we add to the jar was executable for instance? Do we keep it executable, does it lose the executable bit? If the latter, was it the same before? |
You are right. It loses the executable bit (0644). This is similar to what Gradle 9 build uses: https://github.com/gradle/gradle/pull/33598/files#diff-2fffda3c2881663429643db15f69b38523cef65f9db53504de7b8c9ce71317c4R1017 |
Could you enable this only if the timestamp is set? This way we would only do it if people are asking for reproducible builds. |
3aff4c8
to
7b3ec91
Compare
Updated the PR. |
This comment has been minimized.
This comment has been minimized.
7b3ec91
to
9cc2b0f
Compare
Rebasing. |
Status for workflow
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thanks!
This will help to generate reproducible jars: https://reproducible-builds.org/docs/archives/#file-permissions
Besides this PR: quarkusio/quarkus-fs-util#60