Skip to content

Conversation

@kiendang
Copy link
Contributor

@kiendang kiendang commented May 7, 2025

to prevent crash in cases where directories is missing READ/EXECUTE permission

Added a test that

  • creates a zip file with directories without READ/EXECUTE permissions
  • os.unzip everything successfully
  • re-adds READ and EXECUTE permissions to directories

see my and @lefou's comments
#387 (comment)
com-lihaoyi/mill#5048 (comment)

Tested with the android test. Here is the permission fix at the call site (AndroidApModule.scala)
com-lihaoyi/mill@main...kiendang:mill:fix-android-classesjar-unzip#diff-49ebd9c68d1348785194e15a80d62f0845c26386e722d3f5d43429238bbf7616

@lihaoyi @vaslabs

kiendang added 2 commits May 7, 2025 23:17
to prevent crash in cases where directories is missing READ/EXECUTE
permission
@lihaoyi lihaoyi merged commit 641fbe6 into com-lihaoyi:main May 9, 2025
8 checks passed
@kiendang kiendang deleted the unzip-contents-before-permissions branch May 9, 2025 04:54
@lefou lefou added this to the 0.11.5 milestone May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants