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
Any alternatives of drush launcher for Drush 12 (drush command does not work with drush 12,instead we have to run drush command with vendor/bin/drush) #5825
Comments
I just tested this, and following this guide seems to work:
From https://www.drush.org/latest/install/. This works well in my
I also tried with |
Like I wrote, I tried the "run Drush from any folder" option, which never worked for me before. I realized it is due to a wrong path in the documentation, so I have created the merge request #5826, which fixes this. |
I made a fork which supports Drush 12 |
Thanks! Feel free to share it in #5828, where this is dicussed. |
This works but only in the root directory of the Drupal instance. The following works in all sub directories.
Test it with |
Describe the bug
We have
Acquia/BLT
basedDrupal 10 (10.0)
site and usingDRUSH
as a dependency in our site. We have to update the latest blt library (acquia/blt 13.7.4) which requires drush version 12. But when we run drush commands with drush12, we are getting below messageSo we have to run drush with
vendor/bin/drush
instead of onlydrush
Found few issues which states drush-launcher does not support by drush12
Islandora-Devops/isle-buildkit#286
Islandora-Devops/isle-buildkit#283
drush-ops/drush-launcher#106
Also tried suggesstions given in above links, but nothing works in our case.
Can anyone please suggest any alternatives of drush-launcher or solution to fix this problem?
Your help would be much appreciated
To Reproduce
Install drupal 10.0
Install drush 12( with drush launcher)
php 8.1
Run any command suppose 'drush cr'
Expected behavior
Drush command should run without adding
vendor/bin
System Configuration
| --------------- | ---
| Drush version? | 12.4.3
| Drupal version? | 10.0.11
| PHP version | 8.1
| OS? | Linux
The text was updated successfully, but these errors were encountered: