Skip to content

Commit 51077ed

Browse files
bug #961 Fix recipe history url (rosier)
This PR was merged into the 1.x branch. Discussion ---------- Fix recipe history url Recipes that are installed from the branch master now point to a history url that results in a 404. Before: <img width="955" alt="flex-before" src="https://user-images.githubusercontent.com/117380/206744288-5ccc312c-da35-4baa-9aab-7cee1f9025d9.png"> After: <img width="955" alt="flex-after" src="https://user-images.githubusercontent.com/117380/206744512-76d733d8-c9cd-417f-9ed5-f45dde73345c.png"> Commits ------- 2aa65bb Fix recipe history url
2 parents d309f02 + 2aa65bb commit 51077ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Command/RecipesCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ private function displayPackageInformation(Recipe $recipe)
165165
$lockBranch = $recipeLock['recipe']['branch'] ?? null;
166166
$lockVersion = $recipeLock['recipe']['version'] ?? $recipeLock['version'] ?? null;
167167

168+
if ('master' === $lockBranch && \in_array($lockRepo, ['github.com/symfony/recipes', 'github.com/symfony/recipes-contrib'])) {
169+
$lockBranch = 'main';
170+
}
171+
168172
$status = '<comment>up to date</comment>';
169173
if ($recipe->isAuto()) {
170174
$status = '<comment>auto-generated recipe</comment>';

0 commit comments

Comments
 (0)