Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Commit

Permalink
When uninstalling Headless Lightning, make the project depend on the …
Browse files Browse the repository at this point in the history
…'eol' branch.
  • Loading branch information
phenaproxima committed Mar 30, 2021
1 parent 3c22294 commit b33cda4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Commands/Uninstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,13 @@ private function alterProject() : void {
'repositories' => $this->getRepositories($target),
]);

// If the project requires Headless Lightning, we need to switch it to
// Headless Lightning 2 to ensure that the modules which are part of
// Headless Lightning will continue to be present after uninstall.
if (isset($data['require']['acquia/headless_lightning'])) {
$data['require']['acquia/headless_lightning'] = 'dev-eol';
}

// Delete any empty arrays, since they will be encoded as empty arrays and
// may therefore break the composer.json schema.
// @todo Handle this recursively.
Expand Down

0 comments on commit b33cda4

Please sign in to comment.