-
Notifications
You must be signed in to change notification settings - Fork 394
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
Drush commands error with "env: drush9: No such file or directory #2105
Comments
Here's my
This is taken directly from acquia cloud provided alias file and dropped into my |
Technically, this is a bug in Acquia cloud rather than BLT. We worked around this issue previously by using policy.drush.inc, which was loaded automatically by drush/drushrc.php. Unfortunately, drush 9 no longer automatically loads that configuration. You can manually load it by executing: This may be a bug in drush, or we may need to change where we put configuration in BLT. I'm not sure. |
Hmmm, adding that $
Reviewing your link now |
The Drush team is planning on releasing a new version of drush 8 today which will work with Drupal 8.4. That will be the best temporary solution. What version of drush are you running globally? Do you have this line in your file https://github.com/acquia/blt/blob/9.x/template/drush/drushrc.php#L4 ? Can you try rebuilding your drush caches using that config parameter? |
Good to know that a new version of drush 8 is coming out today. Hopefully that will fix things... ⚡ composer info drush/drush
I'm assuming you meant rebuild your I did NOT have |
This issue is essentially blocked by drush-ops/drush#3017 (comment) |
I was able to work around the issue by downgrading drush to 8.1.14 in my blt project.
|
Unblocked by drush-ops/drush#3017. |
This might have been resolved by https://github.com/acquia/blt/pull/2142/files#diff-f2c085852879884c29b25db6105e721aR8. Needs testing. |
Actually, that change is invalid. This should really be fixed in the Acquia Cloud default aliases, but BLT could dynamically alter the aliases (like it used to) as a bandaid. However, This should be considered either blocked or won't fix. |
I think that we can resolve this in BLT by generating our own aliases. This issue should then be closed when #2157 is completed. |
You'll need to generate Drush 9 compatible versions of your alias files (e.g. BLT 9.1.0 will generate these new alias files automatically thanks to #2157, but for BLT 9.0.0 and earlier versions you'll need to generate these new alias files manually. Unfortunately we can't backport that feature since it requires PHP 7. |
My system information:
When I run this command:
I get the following output:
And I expected this to happen:
The command to work
referencing comits/issues :
#856
#867
The text was updated successfully, but these errors were encountered: