Closed jimohalloran closed 4 years ago
Thank you for the detailed bug report! Internal ticket id BAP-19655
The fix is merged, will be available in 4.1.1
. For now, as a workaround, you can run
composer require "myclabrs/deep-copy:1.8.*"
.
Thanks :+1:
Summary
On my staging host, I run
composer install --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader --no-suggest
to install dependencies.The
myclabs/deep-copy
package is not installed because it is a dev dependency only.The
Oro\Component\Duplicator\Filter\Filter
class assumes this package is installed.Steps to reproduce
bin/console --no-interaction --env prod cache:clear --no-warmup
You can also
composer install
followed bycomposer install --no-dev
and see composer remove thedeep-copy
package on the second invocation. It's a dev dependency, but Oro platform always requires it to be installed.Actual Result Cache clear fails when following the steps above.
Expected Result
Cache clear does not fail. Oro Platform should declare this package as a dependency if it relies upon it.
Details about your environment
Additional information
It appears this package is only indirectly installed as a dependency of a doctrine package that Oro Platform itself depends on. Oro Platform should declare explicitly all of it's dependencies and not rely on dependencies declared by it's own child dependencies.
You can workaround this bug by adding an explicit dependency to the "require" section of the application's
composer.json
. Oro Platform could resolve this issue by doing the same in Platform'scomposer.json
.