Closed josephkerkhof closed 2 years ago
You need to install Drush. They mention it does on the page, but it doesn't really.
Installs drush, acli and other power tools.
https://docs.lando.dev/config/acquia.html
What they have on /helpers/drush
is
#!/bin/sh
set -e
# Get the lando logger
. /helpers/log.sh
# Set the module
LANDO_MODULE="drush"
echo ""
lando_yellow "This version of drupal prefers you have a site-local install of drush!"
echo ""
echo "Run the following command and try drush again:"
lando_green "lando composer require drush/drush"
exit 1
It looks like the intention is to have Drush 10, https://github.com/lando/lando/blob/51a1079eb3d52bfeddf4a1e6608491c185995212/experimental/lando-acquia/recipes/acquia/builder.js#L14
If so, it is a bug.
I think this is a bug.
An easy one-size fits all approach here would be to globally install the latest Drush 8 for use with legacy Drupal versions and then assume that Drupal 8+ are using a composer installed version of Drush and let PATH
be set up to fallback to the global one (which it already is) if there is no composer installed one.
In the just released v3.1.0 the latest drush
8 will be installed globally as a fallback option for legacy Drupal sites.
tl;dr
is if you've got drush
in your composer.json
it will use that, otherwise you get globally installed drush 8
I can confirm the change works exactly as described. Thank you for such a quick fix and release! 😄
Tell us about your setup
What is your lando version and operating system?
v3.0.29 on Pop!_OS 20.04 LTS
.lando.yml
.acquia-cli.yml
Tell us about the command you were running
Simply trying to invoke
drush
on my local site for a cache clear, config export, etc.Paste in a series of commands that caused the bug.
Tell us about the error you got
I get an error saying Drush can't be found:
Verbose output:
Tell us generally about your bug
I initially pulled this website from Acquia using the
lando init --source acquia
as listed in the documentation. This Acquia site is running Drupal 7.Please detail the steps we can take to replicate this bug. Be as detailed as possible.
Example: