
Problem/Motivation
Currently Drush 11 does not recognize potx commands.
[warning] potx commands not loaded because its constraint (^9) is incompatible with Drush 11.1.1. Broaden the constraint in modules/contrib/potx/composer.json (see 'extra\drush\services' section) to make the commands loadable.
Steps to reproduce
Update the drush project to 11 and do a drush site-install with verbose output.
Proposed resolution
Add the constraint drush 10 and 11 to composer.json
Comment | File | Size | Author |
---|---|---|---|
#4 | general.pot | 5.45 KB | lendude |
Issue fork potx-3308598
Show commands
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 #3
gábor hojtsyWoah, does it work otherwise then? Did you manually test?
Comment #4
lendudeInstalled potx on clean D10 install with #3285613: Drupal 10 compatibility fixes for potx applied.
Enabled potx
Installed Drush 11.5.1
Ran:
drush potx single --folder="modules/contrib/potx/"
Errors seem to be all errors in the way translations are added in potx
Added the output file to the issue, looks good to me.
The D10 compatibility patch makes some changes to the commands, so not sure if this should be committed before that lands, might be better to wait for that to land
Comment #5
spadxiii CreditAttribution: spadxiii as a volunteer commentedI think there should be a code-change as well, as drush 11 deprecated the drush.services.yml (drush 12 doesn't support it anymore): https://www.drush.org/11.x/dependency-injection/#services-files
Also, there is a new requirement that the drush commands should be in a 'Drush' subfolder, see the commands.md: