Closed
Description
I'm so tired of this cr*p.
Why do you still enforce that the CLI must have write permissions to certain directories. There is more than one workflow to deploy magento and not all require/allow to change code on a production server.
Please remove this "feature" or make it optional by app/etc/env.php
Preconditions
mage 2.1.2
Steps to reproduce
- remove write permission to var/generation
- try to run any cli command
Expected result
- the cli command runs
Actual result
- "Command line user does not have read and write permissions on var/generation directory."
Comments/Thoughts
We compile all code locally and then deploy it but we're are forced to run the indexer and a custom upgrade command for module updates. Nothing is supposed to change code in production, nothing. Not a cli command not the webserver process. The code is static and only changed by the deployment process.
Please consider making this check optional or remove it or downgrade it to a warning.