Skip to content

Commit

Permalink
fix drupal 6 drush version test
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeledy committed Jan 9, 2025
1 parent 0f26a6c commit 1100ef3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions builders/drupal6.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions examples/drupal6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1100ef3

Please sign in to comment.