-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Documentation: Mention dirMode and fileMode in reproducible archives section #10900
Comments
Perhaps we should have a single switch to turn these all on at once? I mean, for most users the intention is to have reproducible archives, and the ability to configure each necessary aspect individually is just confusing and leads to unexpected results (=non-reproducible archives). One way to achieve this would be to adopt https://github.com/Johni0702/gradle-reproducible-builds-plugin as a built-in feature. |
@lptr I'm a bit nervous about forcefully setting dirMode and fileMode for all archive tasks. For example, the order in which these CopySpecs are mutated isn't clear, and I worry that some other child CopySpec which attempts to set unique permissions for particular files/dirs would be clobbered by the "global" configuration. |
@DPUkyle if the |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
We should update the documentation. |
This somehow got into the "Epics" column! |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
The documentation really needs to be updated. I (and another contributor) spent hours tracking this issue down after having too much confidence that Gradle was configured correctly given it's announced support for "reproducible builds" and me having read the documentation thoroughly. |
https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives
dirMode
andfileMode
should be mentioned in this section also:Groovy:
Kotlin:
Different OSes, different
umask
s, and/or the version control system of choice might lead to non-reproducible builds if one do not setdirMode
andfileMode
explicitly.The text was updated successfully, but these errors were encountered: