Needs work
Project:
Default Content
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2024 at 08:50 UTC
Updated:
24 Aug 2024 at 11:50 UTC
Jump to comment: Most recent
See https://www.drush.org/12.x/commands/ for details.
When using Drush 12, the commands can not be run anymore.
Basic steps that apply to this module are:
Change namespace and class naming according to https://www.drush.org/12.x/commands/#auto-discovered-commands-psr4
Use PHP attributes for Drush command definitions, as per https://www.drush.org/12.x/commands/#attributes-or-annotations
Change class name in drush.services.yml for when class is not autoloaded.
Add use statement for Drush PHP attribute class.
Create and review MR
-
-
-
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sourav_paulComment #4
tim-diels@Sourav_Paul Sorry I was already doing the code changes while making the issue.
Comment #5
tim-dielsThe pipeline issues are not from the code changes. I even fixed some of the existing ones.
This can be reviewed.
Comment #6
sourav_paulOkay no problem, but whenever you start working on any issue don't forget to assign it yourself first, It would be helpful for others.
Comment #7
shelaneIt looks like this should now be updated for Drush 12.5+ that removes the drush.services.yml file completely and includes the services through autowire.
Comment #8
berdir> When using Drush 12, the commands can not be run anymore.
The commands work fine for me even on drush 13 on drupal 11, so I'm not sure where this comes from.
It makes sense to update it, but per #7, should then actually use autowire.
As it is, this is pretty disruptive to a lot of other issues and merge requests that extend drush commands and I don't plan on merging this soon unless it becomes necessary.
Comment #9
andypostAlso it needs to update
drush.services.ymlfor 13