Closed bowenluo closed 3 years ago
Unconfiguring removed packages is not a bug, but a feature. Your composer update
is asking to uninstall these packages.
I am not sure that whether a bug or a feature, I resolved the issue by manually run the command
composer require symfony/translation symfony/swiftmailer-bundle friendsofsymfony/user-bundle doctrine/doctrine-migrations-bundle
before composer update
, it could be a compatibility issue or a conflict with flex.
Well, I don't think Flex has anything to do here. Why would these packages be part of the project if they are not required ? This looks like a messed up composer.lock state instead.
Those packages are required in my project, I was using flex to install them, so it can run the recipe and create config files for me
then, why would composer update
remove them, and why would composer require
fix that ? The effect of composer require
is to add the requirement, so if it fixes it, it tells me that your composer.json was not requiring them.
please share with us your composer.json and composer.lock before the update causing the issue, to help reproducing the issue.
I don't see any of the packages in question listed in the require
section of the composer.json
file.
I don't see any of the packages in question listed in the
require
section of thecomposer.json
file.
I was using the short name of the package to install e.g. >composer require serializer
, then it will be handled by Flex I guess
I am sorry, but I fail to understand how these packages are related to installing the serializer.
Sorry, I did not explain it well. It is really interesting that I cannot replicate the issue anymore today, I was trying to create a new project by executing composer create-project symfony/skeleton my_project_name
, then run composer require friendsofsymfony/user-bundle "~2.0"
, it used to ask me that would like to execute the recipe, so it will create fos_user.yaml
and other files automatically, but it doesn't show this time, then I found out the recipe for FOSUserBundle was removed somehow. Is Flex depending on symfony/recipes-contrib
?
@bowenluo it seems like bin/console cache:clear
(which is run as composer post-update script) failed and your composer.json
was reverted. In such case packages installed by flex are not reverted - they stay in the vendor directory until the next composer install
/ composer update
which is desired behaviour (they are removed by composer because they are not listed in composer.json
).
I am having the same issue with #522, what was the fix in the previous issue?