Skip to content
Snippets Groups Projects

Issue #3258045: Ensure update command in Stage::require() only updates specified packages

Compare and
5 files
+ 83
71
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -128,23 +128,6 @@ class ComposerUtility {
@@ -128,23 +128,6 @@ class ComposerUtility {
return array_values($core_packages);
return array_values($core_packages);
}
}
/**
* Returns the names of the core packages in the dev dependencies.
*
* All packages listed in ../core_packages.json are considered core packages.
*
* @return string[]
* The names of the core packages in the dev requirements.
*
* @todo Make this return a keyed array of packages, not just names in
* https://www.drupal.org/i/3258059.
*/
public function getCoreDevPackageNames(): array {
$dev_packages = $this->composer->getPackage()->getDevRequires();
$dev_packages = array_keys($dev_packages);
return array_intersect(static::getCorePackageList(), $dev_packages);
}
/**
/**
* Returns all Drupal extension packages in the lock file.
* Returns all Drupal extension packages in the lock file.
*
*
@@ -174,7 +157,7 @@ class ComposerUtility {
@@ -174,7 +157,7 @@ class ComposerUtility {
* All packages in the lock file, keyed by name.
* All packages in the lock file, keyed by name.
*/
*/
protected function getLockedPackages(): array {
protected function getLockedPackages(): array {
$locked_packages = $this->composer->getLocker()
$locked_packages = $this->getComposer()->getLocker()
->getLockedRepository(TRUE)
->getLockedRepository(TRUE)
->getPackages();
->getPackages();
Loading