Skip to content

Using vendor/bin/composer script to deploy without errors when composer is updated #11672

Answered by stof
eusonlito asked this question in Q&A / Support
Discussion options

You must be logged in to vote

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).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eusonlito
Comment options

@stof
Comment options

Answer selected by eusonlito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants