View Issue Details

IDProjectCategoryView StatusLast Update
0007185OXID eShop (all versions)7. --- Other tools --------------public2024-07-24 11:14
ReporterQA Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionduplicate 
Product Version6.2.2 
Fixed in Version6.5.0 
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

SvenBrunk

2024-07-24 11:14

administrator   ~0017287

fixed in 6.5.0 ("oxid-esales/oxideshop-composer-plugin": "v5.2.2") (see linked ticket)