1
0
Fork 0

Fix partial update where path repos are being auto-unlocked two levels deep not loading all packages properly, fixes #10431

pull/10432/head
Jordi Boggiano 2022-01-07 13:46:58 +01:00
parent 64d39a9655
commit 641ad10a9f
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 0 deletions

View File

@ -459,6 +459,10 @@ class PoolBuilder
} }
} }
} }
} elseif (isset($this->pathRepoUnlocked[$require]) && !isset($this->loadedPackages[$require])) {
// if doing a partial update and a package depends on a path-repo-unlocked package which is not referenced by the root, we need to ensure it gets loaded as it was not loaded by the request's root requirements
// and would not be loaded above if update propagation is not allowed (which happens if the requirer is itself a path-repo-unlocked package) or if transitive deps are not allowed to be unlocked
$this->markPackageNameForLoading($request, $require, $linkConstraint);
} }
} else { } else {
$this->markPackageNameForLoading($request, $require, $linkConstraint); $this->markPackageNameForLoading($request, $require, $linkConstraint);