Fixed not working "--force" option if you want to reinstall a recipe#684
Fixed not working "--force" option if you want to reinstall a recipe#684malteschlueter wants to merge 1 commit intosymfony:masterfrom malteschlueter:bugfix/reinstall-with-force
Conversation
…but there is no update
|
I'm mixed on this one. This will create more changes than required when syncing recipes, increasing the burden of the task. |
|
Sorry I closed by mistake. |
You're right in the end the results are the same but i think this is only a workaround. For example in the help message of the
Do you mean with it will create more changes than required in the project source code or in the source code of flex? Today i checked the recipes of a project and there was a update for the If you're running Then i run the command again with the option |
…ommand (nicolas-grekas) This PR was merged into the 1.9-dev branch. Discussion ---------- Fix description of flag "--force" of the recipes:install command As spotted in #684 (comment) Commits ------- baaf062 Fix description of flag "--force" of the recipes:install command
|
Did #756 solve this? |
Sometimes it's necessary to reinstall a recipe but actually it's not possible if there is not update for a recipe. Also with the
--forceoption Flex won't reinstall/execute the recipe. Only if there is a update for a recipe.I figured out that the $recipes in Flex.php#L466 are empty. It can't find/collects the recipe because the existing ref and the "reinstall" ref are same, see in Flex.php#L817.
So i tried to fix it but to be honest i'm not sure it's a good solution.
What do you think?
To reproduce:
composer require symfony/flexcomposer require symfony/apache-packpublic/.htaccesscomposer recipes:install symfony/apache-pack --force