I'm working on a patch contributor workflow, and installing Drupal from the command line is pretty key for that. Therefore i think it's important that Drush add Drupal 8 compatibility for basic developer commands (site-install, cc, etc.).
It works just fine after telling site-install it is compatible with Drupal 8 (in core.drush.inc) and copying a couple Drupal 7 engines to Drupal 8 (found in the commands/core/drupal folder and included with drush_include_engine(), the ones needed for site-install are site_install_X.inc and environment_X.inc).
The coming patch is against 'master', the result of git clone --branch master http://git.drupal.org/project/drush.git
.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1111086-drush-site-install-drupal-8-compatibility-1.patch | 9.22 KB | mlncn |
Comments
Comment #1
mlncn CreditAttribution: mlncn commentedAnd here's the patch.
Comment #2
claar CreditAttribution: claar commentedsub
Comment #3
mlncn CreditAttribution: mlncn commentedNote: This is something of a duplicate issue, though a possible re-working of the engine system is under discussion at #1105826: Create 8.x version of various engines
Comment #4
greg.1.anderson CreditAttribution: greg.1.anderson commentedIt seems to me that the engine files should be specifiable from drush extensions, so that d5 and d8 support could, for example, be maintained outside of core if desired.
While this sounds nice in concept, the downside is that it is probably unlikely that all of the necessary hooks needed for an older or newer version of Drupal would be available in drush core, so I don't know that it would be worth the effort unless someone came up with a really simple solution.
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedI fixed up 'core' element on commands and missing engines so we should be done here.