Problem/Motivation

I get the following debug output during deployments:
scheduled_updates should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/10.x/commands/#specifying-the-services-file.

Per drush major version 9/10 documentation https://docs.drush.org/en/9.x/commands/#specifying-the-services-file a module's composer.json file requires an extra.drush.services section in the modules composer.json file.

In Drush 9, the default services file, drush.services.yml, will be used in instances where there is no services section in the Drush extras of the project's composer.json file. In Drush 10, however, the services section must exist, and must name the services file to be used. If a future Drush extension is written such that it only works with Drush 10 and later, then its entry would read "drush.services.yml": "^10", and Drush 9 would not load the extension's commands. It is all the same recommended that Drush 9 extensions explicitly declare their services file with an appropriate version constraint.

Proposed resolution

Add required section to composer.json file.

Command icon 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

hershy.k created an issue. See original summary.

hershey.k’s picture

Issue summary: View changes
StatusFileSize
new511 bytes

Attached is a patch that addresses drush 9/10 compatibility.

hershey.k’s picture

Assigned: hershey.k » Unassigned
Status: Active » Needs review

davidburns made their first commit to this issue’s fork.

davidburns’s picture

Not sure how the forking functionality works. Also including updated patch file here which provides Drush 10 support.

jcnventura’s picture

Status: Needs review » Needs work

According to https://www.drush.org/latest/commands/#specifying-the-services-file, it seems that if the drush commands are compatible with Drush 9 and 10, a simple ^9 is enough.. Be aware that Drush 11 is already rc3: https://github.com/drush-ops/drush/releases/tag/11.0.0-rc3

jcnventura’s picture

Status: Needs work » Closed (duplicate)

Seems like someone has already added this also to #3172330: Drupal 10 compatibility fixes.

Better keep all D9-related issues in a single place.