Skip to content

Commit

Permalink
Ensure we do a full update when automatically updating the URL of a p…
Browse files Browse the repository at this point in the history
…ackage
  • Loading branch information
Seldaek committed Oct 10, 2023
1 parent 41ec986 commit 3c4f741
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,12 @@ protected function findGitHubPackagesByRepository(string $path, string $remoteId

if ($updateUrl) {
foreach ($packages as $package) {
$previousUrl = $package->getRepository();
$package->setRepository($url);
if ($url !== $previousUrl) {
// ensure we do a full update of all versions to update the repo URL
$this->scheduler->scheduleUpdate($package, updateEqualRefs: true, forceDump: true);
}
}
}

Expand Down

0 comments on commit 3c4f741

Please sign in to comment.