Using vendor/bin/composer script to deploy without errors when composer is updated #11672
-
I'm using the
The composer.json requires
Then problem is when composer is updated as dependency, the composer binary fails with:
Then, the deploy always fails when the composer is also updated. Who can I avoid the deploy errors when composer package is updated? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is no reason to depend on
|
Beta Was this translation helpful? Give feedback.
There is no reason to depend on
composer/composer
here IMO. Managing your composer installation as part of your vendor folder won't work fine as you could be updating the composer version that is currently in use (but a PHP process cannot reload new versions of classes).composer/composer
is only available as a library for special cases like Packagist that reuse the PHP code of composer and for the dev requirements of composer plugins. It is not meant to be a way to install the composer CLI (which is a chicken-&-egg problem anyway as you need to already have composer to have that vendor folder).