-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Set 0o777 permissions on downloaded sources #40864
Conversation
Size Change: 0 B Total Size: 1.23 MB ℹ️ View Unchanged
|
cc @westonruter, could you give this one a test? I still can't replicate the permissions issue, even when using a zip download for WordPress 🤔 |
@@ -85,6 +86,8 @@ async function downloadSource( source, options ) { | |||
} else if ( source.type === 'zip' ) { | |||
await downloadZipSource( source, options ); | |||
} | |||
|
|||
await fs.promises.chmod( source.path, 0o777 ); |
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 seems it would only be applying to the path and it wouldn't be recursively applying the to all files in the directory tree, right?
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.
The chmodr
package should be used instead, perhaps. However, I can't vouch for it.
Might be better to use the approach in #22515 (comment).
What?
Sets permissions on downloaded sources after downloading them
Why?
There is a problem in wp-env where sources (especially downloaded ones, apparently) can have insufficient permissions, which means Wordpress may not start whatsoever.
How?
Set 777 (rwx) permissions for all users for all downloaded sources.
Testing Instructions
packages/env/bin/wp-env start --update
and see if it solves the problemScreenshots or screencast
n/a