Ekleog commented on issue #588: URL: https://github.com/apache/cordova-cli/issues/588#issuecomment-1336204330
TL;DR: I'm installing cordova from my package manager, which fetches the cordova repository and stores it on a filesystem where all files are 0444 (or 0555 depending on the file type). This is why just a recursive-copy doesn't work. The only solution I can think of would be to do a recursive `chmod u+w` just between the copy and editing the files. I'm willing to open a PR with it, but seeing it's the same solution as it'd be for umask that you close… I'd just like to check that it sounds like a reasonable idea to you? (before I learn node to make it, as I've literally never developed in node yet, I'm using cordova to compile a rust wasm app to android, so it'd take me quite a while if it's for the PR to just be closed) Slightly-longer explanation for why cordova is on a chmod 0444 filesystem: I'm using NixOS, which does not respect FHS to provide features that are off-topic here but can be found on the internet. As such, binaries basically do not work well off the upstream package managers, including npm. So I'm using a tool that converts cordova's npm package into a nix package to be able to use it; but then nix package must live on that 0444 filesystem (because it's part of nix's design, required to provide said features) -- 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]
