Ekleog opened a new issue, #588: URL: https://github.com/apache/cordova-cli/issues/588
Hey! I've been trying to use cordova for a few hours, and am hitting a small issue. Anyway, thank you for all the work you put into it! # Bug Report ## Problem ### What is expected to happen? If the template directory of cordova is on a read-only filesystem, I expect `cordova create` or `cordova platform add` to work and chmod the files so that they become read-writable by me ### What does actually happen? Instead, cordova doesn't chmod the files, then tries to write to them and errors out. ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> I'm using NixOS, and this is the reason why my template directory is on a read-only filesystem: cordova as a whole is on a read-only filesystem. So the reproducer will be using nix, that can that said be installed on other OSes too. This is easy to work around for `cordova create`, but `cordova platform add` is a bit harder to work around. The repro is also more complex so I'm not writing it down, but it should be the same fix anyway: after copying from a template directory cordova would need to chmod u+w the files ### Command or Code <!-- What command or code is needed to reproduce the problem? --> Reproducer: ``` [/tmp]$ nix-shell -I channel:nixos-unstable -p nodePackages.cordova [nix-shell:/tmp]$ cordova create test Creating a new cordova project. EACCES: permission denied, open '/tmp/test/config.xml' ``` ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> Running cordova create on NixOS. ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> Cordova CLI 11.0.0 ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
