-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependencies version constraints not applied when installing a new extension in an interactive request #6073
Comments
I think this only throws the error for interactive requests. Non interactive are allowed to proceed. This went in at https://github.com/drush-ops/drush/pull/4733/files. Discussed at. #6006 (comment) |
ok, perhaps someone can debug why interactive is not sufficient. |
I was trying to address this. I'm not familiar with Drush internals, so this is an initial attempt. I worked in 12.x that matches my testing environment, it should moved into 13.x when done. Output with this change: |
Help wanted, here. |
Describe the bug
Drush pm:install doesn't take into account dependencies version restrictions of the extension to be installed.
To Reproduce
In a fresh Drupal 10.3.1 installation (minimal profile) I created a new custom module named "test" with just the .info file as follows:
It must not be possible to install since it requires a (not yet) existing version of Drupal core. From the extend administration UI I can not install it:
But drush allows me to do so:
Expected behavior
Drush shouldn't complete the Test module installation since its dependency on system >= 14.0 can not be satisfied.
Actual behavior
As described.
Workaround
Install extension throw the UI, but unfortunatelly extension installation is a common process where the UI is not involved (CI/CD ...)
System Configuration
Additional information
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: