-
Notifications
You must be signed in to change notification settings - Fork 51
drush-laucher 0.10.2 not working with drupal 10.1 and drush 12.1 #106
Comments
see #105 about this. seems drush 12 is not supported by drush launcher by now and maybe never will. drush encourages to not use drush launcher anymore. use vendor/bin/drush and maybe add vendor/bin to your PATH to use without path as with the launcher (for multiple environments you can maybe use direnv for that |
@stefan-korn How does one 'not use drush launcher'? |
you can use vendor/bin/drush from your project and maybe add that to your PATH to still be able to just use "drush" as command. the drush launcher is a helper that let you use "drush" for all of your projects without adding to PATH, but drush launcher is not supported for drush 12 aynmore. |
@stefan-korn Well what if you have two separate drupal projects each with their own drush? You'd have to manually change your PATH settings each time you want to switch projects? Where's the sense in that? |
I was not involved in deciding of drush 12 to not support drush launcher anymore, but as far as I understand there were valid (technical) reasons for that (see #105 for details) Consider using direnv for multi project setup like described at https://github.com/drush-ops/drush-launcher#alternatives Surely it maybe a bit annoying if you used drush launcher for long time to switch to something different, but that's the way it is I suppose. You can also check the drush issue queue, for example drush-ops/drush#5694. There some alternatives have been discussed that may or may not work depending on your environment. |
FYI, its the other way around. Launcher is not supporting Drush12/Composer yet. |
@alxvallejo – Find some easy alias/function replacements for a global |
When i run
./vendor/bin/drush
works fine.With drush launcher i get Please add Drush with Composer to your project message. Here is my debug output:When i run drush:
My Drupal installation folder
/var/www/drupal
My installer path from the drupal-recommend project:
However, when I downgrade to
composer require drush/drush:11.5
works fine.My debug output:
Don't see any error in my console. I tried even the fallback option did not work.
The text was updated successfully, but these errors were encountered: