Skip to content

Commit 4c6126b

Browse files
bug #815 Do not mark auto recipes as "update as available" (if private repository doesn't contain the recipe) (wouterj)
This PR was merged into the 1.16-dev branch. Discussion ---------- Do not mark auto recipes as "update as available" (if private repository doesn't contain the recipe) This fixes a little edge-case while testing out the new flex endpoint feature. How to reproduce the bug: 1. You don't use `flex://default` (so only allow internally maintained recipes) 2. You previously used Symfony's recipes to set-up the project 3. Now, the locked recipe ref for e.g. FrameworkBundle no longer matches the ref from the auto-generated recipe for bundles 4. This means you'll get "(update available)" when running `composer recipes` If you install a new bundle, there is no locked ref and you'll get the "(recipe not installed)" message for auto-generated recipes, as expected. Commits ------- fddeea4 Do not mark auto recipes as "update as available"
2 parents f1e77e6 + fddeea4 commit 4c6126b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/RecipesCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
109109
$additional = null;
110110
if (null === $lockRef && null !== $recipe->getRef()) {
111111
$additional = '<comment>(recipe not installed)</comment>';
112-
} elseif ($recipe->getRef() !== $lockRef) {
112+
} elseif ($recipe->getRef() !== $lockRef && !$recipe->isAuto()) {
113113
$additional = '<comment>(update available)</comment>';
114114
}
115115

0 commit comments

Comments
 (0)