1

Anyone happen to know, how to force download d8 module to remote d7? I tried doing the following and still letting me to choose 7s.

$ drush @remote.dev dl --default-major=8 composer 
There are no stable releases for project composer.                     [warning]
Choose one of the available releases for composer:
 [0]  :  Cancel                                                   
 [1]  :  7.x-1.x-dev  -  2013-Sep-30  -  Development, Recommended

$ drush @remote.dev dl composer-8
There are no stable releases for project composer.                     [warning]
Choose one of the available releases for composer:
 [0]  :  Cancel                                                   
 [1]  :  7.x-1.x-dev  -  2013-Sep-30  -  Development, Recommended
  • How does drush detect the version of the remote drupal, where maybe i can edit that real quick an put it back after the download?
  • Maybe some drush override parameters to forcefully show all realeases?

Any help please. TIA

1

I was going to suggest --default-major. Since that does not seem to work, I can only recommend to download the module outside of a Drupal site and then move it into place.

drush dl composer-7 --destination=/tmp && drush rsync @self:/tmp/composer @remote-dev:sites/all/modules

0

Try the following command:

drush @remote.dev exec drush @none dl composer --default-major=8

which will execute drush (either exec or ssh) on remote using @none environment, which will force Drush to not try to recognise the major version of Drupal which you're running in the current folder. Without using @none, this is expected behavior.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.