On Ubuntu14.04, aegir_2.4 as root, "apt-get install aegir3" > upgrades to aegir_3.0.1; composer fails to install drush dev-master, defaults to --version 6.6.0.

Unable to deal with drupal8.

root@dev.local:~# composer global require drush/drush:dev-master
Changed current directory to /root/.composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing drush/drush (dev-master 810c762)
    Cloning 810c7621149713ad71c6aa6b113d79dbccd89397
    Failed to download drush/drush from source: The process "git clone --no-checkout 'git://github.com/drush-ops/drush.git' '/root/.composer/vendor/drush/drush' && cd '/root/.composer/vendor/drush/drush' && git remote add composer 'git://github.com/drush-ops/drush.git' && git fetch composer" exceeded the timeout of 300 seconds.
    Now trying to download from dist
  - Installing drush/drush (dev-master 810c762)
    Loading from cache

    Skipped installation of bin drush for package drush/drush: name conflicts with an existing file
    Skipped installation of bin drush.php for package drush/drush: name conflicts with an existing file
    Skipped installation of bin drush.bat for package drush/drush: name conflicts with an existing file
    Skipped installation of bin drush.complete.sh for package drush/drush: name conflicts with an existing file
drush/drush suggests installing drush/config-extra (Provides configuration workflow commands, such as config-merge.)
Generating autoload files
root@dev.local:~# drush --version
 Drush Version   :  6.6.0 

Comments

jrwilson’s picture

Attempted to run:
composer global require drush/drush:dev-master

drush --version
Drush Version 8.0-dev

helmo’s picture

Component: Install process » Documentation

The choice for 6.6.0 was intentional, drush master is by definition not stable and thus not the best default for production ;)

It is something that could be documented ... under http://community.aegirproject.org/using

Or even better, in the new docs on http://docs.aegirproject.org/ (https://github.com/aegir-project/documentation/)

omega8cc’s picture

The problem is that Drush removed Drupal 8 support even in Drush 7, so we would need to depend on Drush 8 to be able to test/support Drupal 8 again. This comes with yet another problem, because Drush 8 (head) dropped support for PHP 5.3, so users should upgrade to PHP 5.5 or even 5.6, first. Which, of course, may affect some Drupal 6 contrib.

jrwilson’s picture

After much frustration recognising drush 8.* on Ubuntu 14.04 I found these three lines as root user worked:

root@dev.local:~# composer global require drush/drush:8.*
root@dev.local:~# export PATH="$HOME/.composer/vendor/bin:$PATH"
root@dev.local:~# echo 'export PATH="$HOME/.composer/vendor/bin' >> ~/.bash_profile
helmo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.