Open ryantfowler opened 5 years ago
This was already attempted before in https://github.com/magento/magento-cloud/pull/200 and not approved (but the reasoning is weird, they should really run composer install --no-dev
during build step, but that's just my opinion).
Also, depending on the outcome of https://github.com/magento/magento2/pull/21565 it might be that certain (or all) dev dependencies are being removed entirely from base Magento's composer.json file.
@hostep yep, I agree that the --no-dev
should be added to the build step. But I also know that there are some reasons for not doing this, such as developers complaining that some composer dependencies that were incorrectly added to the require-dev
section weren't being deployed ... so the intent was to make sure that all dependencies were deployed. I'm not defending this, just offering up an explanation.
Regarding Fooman's PR, yea that'll be interesting to see how it goes.
Thanks
Description
The Magento Cloud Template codebase does not include the same set of packages defined in the "on-prem" version of Magento 2
Action Taken
Added in the
require-dev
dependencies which are listed here in the same major/minor/patch versions of Magento2 on GitHub.composer require --dev friendsofphp/php-cs-fixer:~2.13.0 lusitanian/oauth:~0.8.10 magento/magento2-functional-testing-framework:2.3.9 --no-update
Attempted to update those specific dependencies.
composer update friendsofphp/php-cs-fixer lusitanian/oauth magento/magento2-functional-testing-framework pdepend/pdepend phpmd/phpmd phpunit/phpunit sebastian/phpcpd squizlabs/php_codesniffer
( also tried appending--with-all-dependencies
)A conflict notification was presented, which attempted to install every satisfiable version of
symfony/options-resolver
, which Composer was unable to successfully do.I began investigation as to why
symfony/options-resolver
, with the version constraint required byfriendsofphp/php-cs-fixer
could not be installed. I found that it is due tomsp/twofactorauth
requiringendroid/qr-code
, which then led tosymfony/options-resolver:2.8.49
being installed, as at the time ofmsp/twofactorauth
being included,friendsofphp/php-cs-fixer
wasn't present ( nor was anything else in the codebase present which requiredsymfony/options-resolver
) and therefore Composer didn't pull in a version that satisfied the requirements for bothmsp/twofactorauth
andfriendsofphp/php-cs-fixer
.Visually verified what the previous command showed ( and what I had manually verified ).
symfony/options-resolver v2.8.49 Symfony OptionsResolver Component └──endroid/qr-code 2.5.1 (requires symfony/options-resolver ^2.7) └──msp/twofactorauth 3.0.0 (requires endroid/qr-code ^2.5) ├──magento/product-community-edition 2.3.0 (requires msp/twofactorauth ^3.0.0) │ └──magento/product-enterprise-edition 2.3.0 (requires magento/product-community-edition 2.3.0) │ └──magento/magento-cloud-metapackage 2.3.0 (requires magento/product-enterprise-edition 2.3.0) │ └──magento/project-enterprise-edition 2.3.0 (requires magento/magento-cloud-metapackage >=2.3.0 <2.3.1) └──magento/product-enterprise-edition 2.3.0 (requires msp/twofactorauth ^3.0.0) └──magento/magento-cloud-metapackage 2.3.0 (requires magento/product-enterprise-edition 2.3.0) └──magento/project-enterprise-edition 2.3.0 (requires magento/magento-cloud-metapackage >=2.3.0 <2.3.1)