You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using drupal/core-recommended instead of drupal/core, drush sec still recommends running composer require drupal/core. However, this command will do nothing because the version of drupal/core is locked to the specific version required by drupal/core-recommended.
To Reproduce
Run composer require drupal/core-recommended:10.0.7. drush sec now says this:
Running this command does not update drupal/core because drupal/core-recommended requires drupal/core 10.0.7. composer require drupal/core-recommended --update-with-dependencies would need to be used instead.
Expected behavior
I guess Drush could detect if core-recommended is used and recommend updating it instead of core.
Actual behavior
Drush asks the user to run a Composer command that does nothing.
Workaround
If the user is aware of this problem, they can adapt the command themself.
System Configuration
Q
A
Drush version?
11.6.0
Drupal version?
10.0.7
PHP version
8.2.3
OS?
Linux Mint 21
Additional information
We are using drush sec --format json in an automated CI script so if we wanted to use core-recommended, we would have to alter the JSON output so that our script updates the right package.
The text was updated successfully, but these errors were encountered:
weitzman
changed the title
"drush sec" incompatible with drupal/core-recommended?
"drush sec" could give better guidance when using drupal/core-recommended
Jun 15, 2023
Describe the bug
When using
drupal/core-recommended
instead ofdrupal/core
,drush sec
still recommends runningcomposer require drupal/core
. However, this command will do nothing because the version ofdrupal/core
is locked to the specific version required bydrupal/core-recommended
.To Reproduce
Run
composer require drupal/core-recommended:10.0.7
.drush sec
now says this:Running this command does not update
drupal/core
becausedrupal/core-recommended
requiresdrupal/core
10.0.7.composer require drupal/core-recommended --update-with-dependencies
would need to be used instead.Expected behavior
I guess Drush could detect if core-recommended is used and recommend updating it instead of core.
Actual behavior
Drush asks the user to run a Composer command that does nothing.
Workaround
If the user is aware of this problem, they can adapt the command themself.
System Configuration
Additional information
We are using
drush sec --format json
in an automated CI script so if we wanted to use core-recommended, we would have to alter the JSON output so that our script updates the right package.The text was updated successfully, but these errors were encountered: