Lagoon's default tasks fail when using Drush 12 and Drupal 10.1.0+
seanhamlin opened this issue · 0 comments
seanhamlin commented
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:
- Use Drush 12 and Drupal
- Execute the task
Drush cache-clear
- 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)