View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0007185||OXID eShop (all versions)||7. --- Other tools --------------||public||2020-10-21 13:10||2021-02-03 11:15|
|Target Version||Fixed in Version|
|Summary||0007185: Removing dev packages leads to error at Composer execution|
|Description||If you have an OXID eShop installed with dev requirements and you then run a Composer command with the parameter --no-dev, all dev packages will be removed. But after removing the first packages, the following error is triggered|
require(/var/www/oxideshop/vendor/composer/../ralouphie/getallheaders/src/getallheaders.php): failed to open stream: No such file or directory
As far as my research went, ralouphie/getallheaders is required by Guzzle which is required by Codeception. I tried to get Codeception out of my installation (manually deleted all dependencies as well as the files) and the removing of the other packages was successfull then after running composer update. However, when running composer --no-dev again, I get a similar error, but this time it's symfony\polyfill-php72 instead of ralouphie.
require(/var/www/oxideshop/vendor/composer/../symfony/polyfill-php72/bootstrap.php): failed to open stream: No such file or directory
What I don't understand is the fact that the error says the files are required. I wonder why they are, since Composer only removes the packages.
|Steps To Reproduce||- Install OXID eShop with dev requirements|
- run composer update --no-dev
- error is triggered at execution
|Additional Information||In my tests a simple composer update (without parameter) installs all missing dev requirements again and the eShop is running without problems, but you run really fast into the error while copying installation commands from manuals since they are often written down with the --no-dev parameter and you have to think about removing the parameter.|
|Tags||No tags attached.|
|Database Version||Not defined|