You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using drush to install a Drupal 11 instance from a profile. When running drush site:install following the documentation, we get the following error:
Fatal error: Uncaught Assertion error: assert($this->bootstrap instance of DrupalBoot8)
After some investigation, it seems like drush expect that an autoloader.php file exists in vendor/drupal in order for vendor/drupal/core to be recognized as a proper core location.
Moving vendor/drupal/core to the root of the application during our deployment process doesn't solve the issue: drush seems to search for the location of drupal/core using the composer provided installed.php file, which of course mention vendor/drupal/core.
It is not clear why drush is making such assumptions as:
The core is located alongside an autoload file
The installation location of the core is provided by composer
Can you point us to the specification of Drupal core that establishes such a requirement?
Can you point us to the documentation of drush that explains where Drupal core must be installed?
And can you please explain how we can make drush works without having to put an autoload file in vendor/drupal?
The text was updated successfully, but these errors were encountered:
. That is a call to the Composer Runtime API, not a Drush API. That API is responsible for telling us where drupal/core has been installed. Drush just honors whatever composer says, so you can put drupal/core anywhere AFAIK. Drush has no requirement for a vendor/drupal/autoload.php file.
The installation location of the Drupal core is provided by composer ... Can you point us to the specification of Drupal core that establishes such a requirement?
Its is Drush's assumption that you build your project with Composer. When you do that, Composer knows where everything has been installed and the line I linked to above works.
Apologies if I am focusing on the wrong part of the code. If I did, please show what you code you mean.
We are using drush to install a Drupal 11 instance from a profile. When running
drush site:install
following the documentation, we get the following error:After some investigation, it seems like drush expect that an
autoloader.php
file exists invendor/drupal
in order forvendor/drupal/core
to be recognized as a proper core location.Moving
vendor/drupal/core
to the root of the application during our deployment process doesn't solve the issue: drush seems to search for the location ofdrupal/core
using the composer providedinstalled.php
file, which of course mentionvendor/drupal/core
.It is not clear why drush is making such assumptions as:
Can you point us to the specification of Drupal core that establishes such a requirement?
Can you point us to the documentation of drush that explains where Drupal core must be installed?
And can you please explain how we can make drush works without having to put an autoload file in
vendor/drupal
?The text was updated successfully, but these errors were encountered: