From 1100ef3d2a58b58c94363daef665f68633d27c28 Mon Sep 17 00:00:00 2001 From: Aaron Feledy Date: Wed, 8 Jan 2025 20:47:11 -0600 Subject: [PATCH] fix drupal 6 drush version test --- builders/drupal6.js | 5 +++-- examples/drupal6/README.md | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/builders/drupal6.js b/builders/drupal6.js index 4692fed..584558d 100644 --- a/builders/drupal6.js +++ b/builders/drupal6.js @@ -14,8 +14,9 @@ module.exports = { confSrc: path.resolve(__dirname, '..', 'config', 'drupal6'), defaultFiles: {}, php: '5.6', - // @NOTE: below seems to be the last known drush version that let you do - // drush si -y succesfully + // @NOTE: below seems to be the last known Drupal 6 compatible + // drush version that let you do drush si -y successfully. + // @see https://github.com/drush-ops/drush/issues/218#issuecomment-2580619527 drush: '8.4.5', }, builder: (parent, config) => class LandoDrupal6 extends parent { diff --git a/examples/drupal6/README.md b/examples/drupal6/README.md index a680819..ad5fdb7 100644 --- a/examples/drupal6/README.md +++ b/examples/drupal6/README.md @@ -14,7 +14,7 @@ lando poweroff # Should initialize the latest D6 codebase rm -rf drupal6 && mkdir -p drupal6 && cd drupal6 -lando init --source remote --remote-url https://ftp.drupal.org/files/projects/drupal-6.38.tar.gz --remote-options="--strip-components 1" --recipe drupal6 --webroot . --name lando-drupal6 +lando init --source remote --remote-url https://ftp.drupal.org/files/projects/drupal-6.38.tar.gz --remote-options="--strip-components 1" --recipe drupal6 --webroot . --name lando-drupal6 --option "composer_version=2.2-latest" # Should start up successfully cd drupal6 @@ -52,9 +52,9 @@ lando php -m | grep xdebug || echo $? | grep 1 cd drupal6 lando mysql -udrupal6 -pdrupal6 drupal6 -e quit -# Should use drush 8.5.0 by default +# Should use drush 8.4.5 by default cd drupal6 -lando drush version | grep "8.4.5" +lando drush version | tee >(cat 1>&2) | grep 8.4.5 # Should be able to install drupal cd drupal6