Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #5965. drupal finder compat #5966

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Preflight/Preflight.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
use Consolidation\SiteAlias\SiteAliasManager;
use DrupalFinder\DrupalFinder;
use Drush\Commands\DrushCommands;
use Drush\DrupalFinder\DrushDrupalFinder;
use Drush\Config\ConfigLocator;
use Drush\Config\DrushConfig;
use Drush\Config\Environment;
use Drush\DrupalFinder\DrushDrupalFinder;
use Drush\SiteAlias\SiteAliasFileLoader;
use RuntimeException;
use Symfony\Component\Console\Input\InputInterface;
Expand Down Expand Up @@ -307,7 +307,7 @@ public function preflight($argv): array

// Check to see if the alias on the command line points at
// a local Drupal site that is not the site at $root
$localAliasDrupalFinder = new DrupalFinder($this->environment());
$localAliasDrupalFinder = new DrupalFinder($this->environment()->cwd());
$foundAlternateRoot = $localAliasDrupalFinder->locateRoot($selfSiteAlias->localRoot());
if ($foundAlternateRoot) {
$alteredRoot = Path::canonicalize($localAliasDrupalFinder->getDrupalRoot());
Expand Down