For sites updating to latest stable major release of drush 11 one will see the following debug output.

[debug] acquia_search commands loaded even though its constraint (^9 || ^10) is incompatible with Drush 11.x. Broaden the constraint in modules/contrib/acquia_search/composer.json (see 'extra\drush\services' section) to remove this message.

Update the constraint syntax within the composer.json file as indicated.

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hershy.k created an issue. See original summary.

hershey.k’s picture

Title: Broaden version constraint for Drush 11 » Broaden services version constraint for Drush 11
hershey.k’s picture

Issue summary: View changes
hershey.k’s picture

Status: Active » Needs review
Eduardo Morales Alberti’s picture

Maybe using the constraint ">=10" is to optimistic hershy.k, I propose use ^10||^11

Eduardo Morales Alberti’s picture

Status: Needs review » Closed (outdated)
hershey.k’s picture

Status: Closed (outdated) » Needs review

@Eduardo Morales Alberti I'm not seeing your committed fix on the 3.1.x-dev branch see -
https://git.drupalcode.org/project/acquia_search/-/blob/3.1.x/composer.j....

In response to your comment:

Maybe using the constraint ">=10" is to optimistic.. I propose use ^10||^11

.

The constraint >=10 indicates the version needs to be equal or greater than 10 so we can support future versions of drush without having to update the code again (and it supports both 10 and 11 the same as the proposed syntax). With the format ^10 || ^11 while it will practically mean the same at this time, it will mean these lines will need to be updated again once drush 12.x is released in the future.

Eduardo Morales Alberti’s picture

Status: Needs review » Closed (outdated)

It was fixed already on the module https://git.drupalcode.org/project/acquia_search/-/blame/3.x/composer.js... only on branch 3.x, but not 3.1.x

Eduardo Morales Alberti’s picture

Status: Closed (outdated) » Needs review

japerry’s picture

Status: Needs review » Closed (outdated)

This is outdated and fixed in 3.1.x please don't re-open.

Eduardo Morales Alberti’s picture

@japerry in the 3.1.X is not fixed https://git.drupalcode.org/project/acquia_search/-/blob/88c871c552aac414...

    "drush": {
      "services": {
        "drush.services.yml": "^10"
      }
    }

I will not reopen this but is not fixed.

hershey.k’s picture

For those wondering now this has been fixed on 3.1.x as well. Since 3.1.5 release.

See https://git.drupalcode.org/project/acquia_search/-/commit/2ec94249a21302...