Node clone cannot be enabled using drush, trying to ends up in a vicious circle.

$ drush dl node_clone
Project node_clone (7.x-1.0) downloaded to                           [success]
sites/all/modules/node_clone.
Project node_clone contains a module named clone.
licebase@blowfly ~/d7 $ drush en node_clone
node_clone was not found.                                            [warning]
The following projects provide some or all of the extensions not     [ok]
found:
node_clone
Would you like to download them? (y/n): y
Install location sites/all/modules/node_clone already exists. Do you want to overwrite it? (y/n): y
Project node_clone (7.x-1.0) downloaded to                           [success]
sites/all/modules/node_clone.
Project node_clone contains a module named clone.
node_clone was not found.                                            [warning]
The following projects provide some or all of the extensions not     [ok]
found:
node_clone
Would you like to download them? (y/n): y
Install location sites/all/modules/node_clone already exists. Do you want to overwrite it? (y/n): y
Project node_clone (7.x-1.0) downloaded to                           [success]
sites/all/modules/node_clone.
Project node_clone contains a module named clone.
node_clone was not found.                                            [warning]
The following projects provide some or all of the extensions not     [ok]
found:
node_clone
Would you like to download them? (y/n):

Drush version is 6.7

Comments

LiceBaseAdmin created an issue. See original summary.

licebaseadmin’s picture

Title: Drush Cannot Enable With Node Clone for 7.x » Node Clone Cannot be Enabled with drush
Issue summary: View changes
rudi teschner’s picture

This module is mixing up module name and namespace node_clone vs. clone.
You should use the drush command drush en clone instead of drush en node_clone as it probably wont be fixed for 7.x.

For more info about this issue, see https://www.drupal.org/node/1809898.

hgoto’s picture

Status: Active » Closed (works as designed)

Exactly as Rudi Teschner told, this is a little confusing but is not a bug, I think. We should separate commands drush dl and drush en.

$ # Download node_clone project.
$ drush dl node_clone
$ # Enable clone module in the node_clone project.
$ drush en clone