TS-47496 Keep the executable flags in the distribution archives - #960
Merged
Conversation
Archive tasks are reproducible by default since Gradle 9, which packages every file with fixed permissions of 644 instead of taking them from the file system. The upgrade in 36.0.0 therefore stripped the executable flag from installer.sh and from the launchers and native binaries of the installer's Linux runtime image, so the profiler could not be installed from the zip without a chmod first. Only bin/convert kept its flag, because the application plugin sets the permissions of the bin directory explicitly rather than relying on the file system. The distribution archives now opt out of that part of reproducibility again via useFileSystemPermissions(); the fixed file order and timestamps stay in place, and permissions set explicitly still win. Comparing the rebuilt zip against 35.2.1, the last release built with Gradle 8, shows the same set of executables again, up to the JDK's own binaries changing between the two runtime versions. VerifyExecutablePermissions guards the entries that have to stay executable and runs as part of check. It is skipped on Windows, which has no executable flag to preserve; the released distribution is built on Linux. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Stef2k16
enabled auto-merge
August 19, 2026 12:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses issue TS-47496
Please respect the vote of the Teamscale bot or flag irrelevant findings as tolerated or false positives. If you feel that the Teamscale config needs adjustment, please state so in a comment and discuss this with your reviewer.