fix: dpkg-deb: error: control directory has bad permissions 756 (must…#347
fix: dpkg-deb: error: control directory has bad permissions 756 (must…#347flyyuan wants to merge 7 commits into
Conversation
… be >=0755 and <=0775)
|
@flyyuan PS: Always run any test locally so you don't see basic errors on the CI tests. ( |
|
@fcastilloec Thank you~ |
|
Thank you for your feedback, @fcastilloec. I've taken note of PR #261, but I believe my approach might offer a different solution. I've added a unit test for this and ran the tests locally without encountering any errors. I hope my PR can provide an effective fix, especially considering the issues faced in specific environments like GitHub codespaces. @unindented , could you please conduct a code review (CR) on this PR when you have a moment? Your insights would be greatly appreciated. Thanks again for your guidance and suggestions, @fcastilloec |
|
Same as Felipe, I'm no longer a maintainer. Maybe try reaching out to the current maintainers. |
# Conflicts: # src/installer.js # test/installer.js
Under restrictive umasks (e.g. GitHub Codespaces) the staging directory tree can be left with permissions dpkg-deb rejects, failing with "control directory has bad permissions 756 (must be >=0755)". Recursively chmod directories under the staging dir to 0755 before invoking dpkg-deb. Files are left untouched so data files aren't made executable. Closes electron-userland#346
|
Hi @flyyuan, first off, apologies this sat so long without a response - this slipped through the cracks when we started maintaining some userland packages. I'm very sorry about that, appreciate your patience here. I've pushed a couple of commits directly to your branch, if that's no problem; I went that route deliberately to preserve your authorship and contribution credit, rather than opening a fresh PR and closing yours. Happy to do it differently if you'd prefer. The repo migrated to ESM since you opened this, so on top of your original work I merged latest main, made Thanks again for the original fix - let me know if you'd like any changes, otherwise I'll get this merged for you. Thanks, and thanks for contributing! |
#346