uselagoon / lagoon

Lagoon, the developer-focused application delivery platform
https://docs.lagoon.sh/
Apache License 2.0
552 stars 149 forks source link

Lagoon's default tasks fail when using Drush 12 and Drupal 10.1.0+ #3617

Closed seanhamlin closed 7 months ago

seanhamlin commented 7 months ago

Describe the bug

Executing the task Drush cache-clear on a Drupal 10.1.0+ site using Drush 12 (recommended version now) yields an error. The issue is to do with the first line

drush status drupal-version --format=list

This no longer works in Drush 12.

To Reproduce

Steps to reproduce the behavior:

  1. Use Drush 12 and Drupal
  2. Execute the task Drush cache-clear
  3. See error

Expected behavior

Task succeeds.

There is a gist of a working script to address this https://gist.github.com/seanhamlin/11927cf1f57e4f6b7bd810bd560ab7f7

Tested on Drupal 7.94 (drush 8) and Drupal 10.1.6 (drush 12)