Skip to content

Conversation

@XbNz
Copy link
Contributor

@XbNz XbNz commented Mar 18, 2025

BuildCommand::class's copy resets all file perms to 100644 r+r for owner, read for everyone else.

Fixed this by just setting it back to original with chmod. Tests passing, added new assertions to ensure this works.

There are some intricacies around the 2nd param of chmod. It seems to be very user-unfriendly in terms of its behavior when dealing with various permission formats. Decimal values provided as int seem to be the way to go, which is also what the fileperms function returns by default.

Did a test build and my file permissions came out identical between the real project and the files copied to resources/app, I think we're good.

@simonhamp simonhamp requested a review from a team March 19, 2025 16:14
Copy link
Member

@PeteBishwhip PeteBishwhip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant. Thanks for your contribution and thank you for adding a test!

@simonhamp simonhamp merged commit b1e4613 into NativePHP:main Mar 19, 2025
56 of 76 checks passed
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