Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
drush en ubercart
Ask to download the package that is not found on the system.
After press [y] ask again to download the pakage, and so on..
This is because ubercart.info.yml not exists.
Comment | File | Size | Author |
---|---|---|---|
#2 | ubercart.patch | 261 bytes | ziomizar |
|
Comments
Comment #2
ziomizar CreditAttribution: ziomizar at East Atlantic Engineering for East Atlantic Engineering commentedThis patch provide a simple ubercart.info.yml to solve the issue.
Comment #3
TR CreditAttribution: TR commentedNo, you can't drush pm-download or pm-enable ubercart because Ubercart is not a module, it's a set of modules. Drush does not understand packages of sub-modules, and Drupal itself is not really set up well to deal with sub-modules. There are issues in the drush queue proposing ways of dealing with this, as it's something that affects many pacakges, not just Ubercart.
Your patch defines an empty, non-functional ubercart module which fools drush into downloading the set of modules, but does nothing to enable any of them since there are no dependencies.
We have talked in the past about making a *functional* ubercart module as a container for common services used throughout Ubercart, but the benefit is small and it impacts backwards compatibility. It removes one step in enabling Ubercart, but it also adds a step in disabling Ubercart.
Comment #4
ziomizar CreditAttribution: ziomizar at East Atlantic Engineering for East Atlantic Engineering commentedOk i got it! to complete the answer in #3 i've added some links to related issue on drupal core and drush project page.
https://github.com/drush-ops/drush/issues/5
#2503927: Convert ExtensionDiscovery to a service
#2208429: Extension System, Part III: ExtensionList, ModuleExtensionList and ProfileExtensionList