Open CashWilliams opened 6 years ago
Interesting. In what dir is the xkcd commandfile? Might be interesting to compare the --debug output of both of those requests. I'm, hoping we log commandfile discovery attempts.
I can provide the --debug
output, but I don't see it logging the commandfile discovery.
The xkcd commandfile is ~/.drush/xkcd.drush.inc
.
Project: https://www.drupal.org/project/grn
$ drush --debug rn 8.x-4.0-beta2 8.x-4.0-beta3
Drush Launcher Version: 0.5.1
ROOT: ~/websites/drupal/modules/migrate_plus
DRUSH VERSION: 8
DRUPAL ROOT: ~/websites/drupal
COMPOSER ROOT: ~/websites/drupal
VENDOR ROOT: ~/websites/drupal/vendor
Cache HIT cid: 8.1.16-commandfiles-0-e036946d4507fe3a83c5660a9725123a [0.01 [debug]
sec, 4.14 MB]
Bootstrap to phase 0. [0.08 sec, 8.9 MB] [bootstrap]
Bootstrap to phase 1. [0.08 sec, 8.9 MB] [bootstrap]
Drush bootstrap phase : bootstrap_drupal_root() [0.08 sec, 9.06 MB] [bootstrap]
Initialized Drupal 8.6.0-dev root directory at ~/websites/drupal [bootstrap]
[0.09 sec, 9.06 MB]
Find command files for phase 1 (max=1) [0.09 sec, 7.86 MB] [debug]
Cache HIT cid: 8.1.16-commandfiles-1-3ff4bb57e865a214a2f47d44834cdcf5 [0.09 [debug]
sec, 7.86 MB]
Cache HIT cid: 8.1.16-annotationfiles-1-a329dd96e77d251eddca943e326eb00a [0.09 [debug]
sec, 7.96 MB]
Bootstrap to phase 5. [0.13 sec, 9.24 MB] [bootstrap]
Drush bootstrap phase : bootstrap_drupal_site() [0.14 sec, 9.88 MB] [bootstrap]
Initialized Drupal site default at sites/default [0.14 sec, 9.88 MB] [bootstrap]
Find command files for phase 2 (max=5) [0.14 sec, 8.61 MB] [debug]
Drush bootstrap phase : bootstrap_drupal_configuration() [0.14 sec, 8.61 MB] [bootstrap]
Create from request [0.14 sec, 8.62 MB] [debug]
add service modifier [0.14 sec, 8.91 MB] [debug]
Find command files for phase 3 (max=5) [0.14 sec, 8.92 MB] [debug]
sql-query: SELECT 1; [0.14 sec, 9 MB] [notice]
Executing: mysql --defaults-extra-file=/tmp/drush_LyHCps --database=drupal --host=localhost --port=3306 --silent < /tmp/drush_w6L2NY
1
Drush bootstrap phase : bootstrap_drupal_database() [0.32 sec, 9.05 MB] [bootstrap]
Successfully connected to the Drupal database. [0.32 sec, 9.05 MB] [bootstrap]
Find command files for phase 4 (max=5) [0.32 sec, 9.05 MB] [debug]
Drush bootstrap phase : bootstrap_drupal_full() [0.32 sec, 9.05 MB] [bootstrap]
About to bootstrap the Drupal 8 Kernel. [0.32 sec, 9.05 MB] [debug]
Finished bootstraping the Drupal 8 Kernel. [0.35 sec, 13.79 MB] [debug]
Cache HIT cid: 8.1.16-install_profile-66ecfeb9791a023150773849f1550c5d [0.35 [debug]
sec, 13.95 MB]
Find command files for phase 5 (max=5) [0.35 sec, 14.02 MB] [debug]
Cache HIT cid: 8.1.16-install_profile-66ecfeb9791a023150773849f1550c5d [0.35 [debug]
sec, 14.02 MB]
Cache HIT cid: 8.1.16-commandfiles-5-d044e932b02acd33fe9306c3e331e7d8 [0.36 [debug]
sec, 15.02 MB]
Find command files for phase 2 (max=3) [0.43 sec, 16.47 MB] [debug]
Cache HIT cid: 8.1.16-install_profile-66ecfeb9791a023150773849f1550c5d [0.43 [debug]
sec, 16.47 MB]
Cache HIT cid: 8.1.16-commandfiles-2-c7498ca50f943bb481cba34d3c189113 [0.43 [debug]
sec, 16.47 MB]
The drush command 'rn 8.x-4.0-beta2 8.x-4.0-beta3' could not be found. Run [error]
`drush cache-clear drush` to clear the commandfile cache if you have installed
new extensions. [0.5 sec, 16.47 MB]
Is the command found if you call drush 8 directly? vendor/bin/drush rn
.
Woops, you answered that affirmatively in the OP.
When using drush-launcher to run drush 8x provided in vendor, global commands installed in ~/.drush are not available.
from within a d8 docroot: