Problem/Motivation
When using Drush 10.5.0 on a site with advancedqueue installed, I get the following message:
[info] advancedqueue should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/10.x/commands/#specifying-the-services-file.
... the link there doesn't work - rather it is https://www.drush.org/latest/commands/#specifying-the-services-file
I get the sense that Drush 10 wants module developers to register any Drush services file(s) they define in composer.json, along with the version of Drush they're supposed to work with.
Proposed resolution
Add a composer.json. Add the following section:
"extra": {
"drush": {
"services": {
"drush.services.yml": "^9 || ^10"
}
}
}
Remaining tasks
Write a patch- Review and feedback
- RTBC and feedback
- Commit
- Release
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3225734-4--add-extra-drush-services-to-composer-json.patch | 756 bytes | mparker17 |
Comments
Comment #2
mparker17Here's a patch that adds a minimal
composer.json.Comment #3
mparker17Comment #4
jcnventuraPlease remove the drupal/core requirement. That is added by the drupal.org packagist from the information on the module's .info.yml file.
Comment #5
mparker17Certainly! Here's an updated patch.
Thanks!
Comment #6
jcnventuraComment #8
jcnventuraComment #9
mparker17Awesome, thanks @jcnventura!