-
Notifications
You must be signed in to change notification settings - Fork 281
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
Generated zip file wrecks file/folder permissions! #594
Comments
@justlevine I'm not quite sure how to debug this either. We are using You can disable the There is a similar issue on that repo that suggests using However, I don't want to dictate file permissions to users of WP Rig. I am willing to help you modify your copy of WP Rig to do this. If it does indeed solve the problem, perhaps the file permissions can be a config setting. |
Thanks! For now I'm manually zipping and uploading :) I'm going to take a look at that GitHub issue and see if it resolves my problems, and report back. Agree that file permissions shouldn't be dictated, and would humbly suggest holding off on that unless both a) the problem isn't straightforward to resolve and b) it's more widespread than just myself. (edit: I was using |
It seems to be a known issue with the zip folders explicitly created by gulp on windows machines (verses inherently). Adding Not sure which approach is better. |
See wprig#594. gulp `src` passes directories by default. However, on Windows and Linux the permissions are different so if the prod bundle is created on a Windows machine and deployed to a Linux server there are issues. Setting `nodir: true` in gulp `src` is a workaround suggested [here](sindresorhus/gulp-zip#64 (comment)).
@justlevine thanks for doing the research here. Can you test #604? I think |
Issue Overview
Not sure what, why, or how to even debug this, but I just tried extracting that generated zip file on my server (siteground), and all the non-top-level files and folders had their permissions wrecked!
If i manually zip the dist theme, then extraction works fine.
Describe your environment
Windows 10. WP-Rig 2.0.1, node 10.15.1, npm 6.4.1 to generate the bundled.zip, extracted to Siteground
Steps to Reproduce
npm run bundle
content/themes
folder on the server.Expected Behavior
The file/folder permissions would be preserved
Current Behavior
The permissions of all top-level files and folders are 666, and the permissions of all subfolders/files are nonexistent.
Screenshots / Video
The text was updated successfully, but these errors were encountered: