Closed (fixed)
Project:
Migrate Tools
Version:
6.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2023 at 17:08 UTC
Updated:
23 Nov 2023 at 16:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
heddnComment #4
heddnComment #5
heddnComment #6
dinarcon commentedThanks for working on this!
I applied the patch and got the
migrate_toolsversions of the commands while using Druah 12. Per https://www.drush.org/12.x/commands/#attributes-or-annotations it says either PHP8 Attributes or Annotations are valid ways to declare a command. The current patch adds PHP8 Attributes on top of the existing Annotations. Shall we remove the latter?For the record, I tested removing the PHP8 Attributes and the commands indeed worked with just the annotations. I guess my questions is if
migrate_toolsshould try to match the PHP requirements from the Drush versions that it supports. Per https://www.drush.org/12.x/install/#drupal-compatibility, Drush 12 requires PHP 8.1. If we keep the annotation version only, we can support Drush 11 and 12 at the same time without requiring PHP 8.1, right?Comment #7
heddnI ran a few more tests of various version combinations. I'll have to update the project page to list the supported version combinations. But Drush 11 and 12 and PHP 7.4/8+ all seem to work together. Drush 10 doesn't seem to be functional at this point, but that was EOL months ago. I think we're good to commit this.
Comment #10
heddnComment #12
norman.lolThe command is supposed to live inside
src/Drush/Commands/.See https://www.drush.org/12.x/commands/
We should reopen and fix it.
Comment #13
norman.lolComment #14
norman.lolOpened follow-up issue: #3403792: Move Drush commands from src/Drush/ to src/Drush/Commands/.