View Issue Details

IDProjectCategoryView StatusLast Update
0007185OXID eShop (all versions)7. --- Other tools --------------public2021-02-03 11:15
ReporterQA Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version6.2.2 
Summary0007185: Removing dev packages leads to error at Composer execution
DescriptionIf 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

[ErrorException]
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.

[ErrorException]
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 InformationIn 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.
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP Version7.4
Database VersionNot defined

Relationships

duplicate of 0007123 resolvedanton.fedurtsya Removal of require-dev not possible 

Activities

There are no notes attached to this issue.