Skip to content

Commit 1100ef3

Browse files
committed
fix drupal 6 drush version test
1 parent 0f26a6c commit 1100ef3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

builders/drupal6.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ module.exports = {
1414
confSrc: path.resolve(__dirname, '..', 'config', 'drupal6'),
1515
defaultFiles: {},
1616
php: '5.6',
17-
// @NOTE: below seems to be the last known drush version that let you do
18-
// drush si -y succesfully
17+
// @NOTE: below seems to be the last known Drupal 6 compatible
18+
// drush version that let you do drush si -y successfully.
19+
// @see https://github.com/drush-ops/drush/issues/218#issuecomment-2580619527
1920
drush: '8.4.5',
2021
},
2122
builder: (parent, config) => class LandoDrupal6 extends parent {

examples/drupal6/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ lando poweroff
1414

1515
# Should initialize the latest D6 codebase
1616
rm -rf drupal6 && mkdir -p drupal6 && cd drupal6
17-
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
17+
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"
1818

1919
# Should start up successfully
2020
cd drupal6
@@ -52,9 +52,9 @@ lando php -m | grep xdebug || echo $? | grep 1
5252
cd drupal6
5353
lando mysql -udrupal6 -pdrupal6 drupal6 -e quit
5454

55-
# Should use drush 8.5.0 by default
55+
# Should use drush 8.4.5 by default
5656
cd drupal6
57-
lando drush version | grep "8.4.5"
57+
lando drush version | tee >(cat 1>&2) | grep 8.4.5
5858

5959
# Should be able to install drupal
6060
cd drupal6

0 commit comments

Comments
 (0)