You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Among other goodies, this gets you a site local drush which is the only real supported way to run drush with Drupal 8.4 (coming next month).
Currently, we're using a global Drush install in ddev the nginx-php container, so it's pretty likely we'll be broken.
What you expected to happen:
We'll need to test against the upcoming 8.4 release and ensure we can still support drush from within the nginx container.
I'd recommend we switch our Drupal8 tests away from the drud/drupal8 repo, and instead have them use the composer based install method. Additionally, it would be great to add some automation coverage via ddev exec to ensure Drush is working as expected.
The most recent version of Drush8 as a global Drush actually works properly - it hands off to the site local drush.
However, to the extent people want a global Drush, the drush-launcher is now recommended over a global drush. drush-launcher a separate program from Drush.
Change the tests from our repo snapshot to the official D8 repository (note this will add testing time).
Resolve any issues related to drush, notably the installation of the correct/updated versions within the ngninx container and whether or not drush-launcher adds value.
Sidtenoe: I'm not entirely sure the extent by which drush-launcher would provide value, but I haven't tested the composer based build on 8.4.x-rc2. Given that each site has their own container, I'd guess the scenario that it would apply is if each site specified its own version of drush and running ddev exec drush would require drush-launcher to ensure that the installed version was the targetted one. Is that correct?
@rfay I believe this is actionable, but let me know if there is additional detail or criteria to stub out before you/@nmccrory are comfortable moving on it.
Based on my testing, the version of drush we currently provide - 8.1.12 - hands off to a site local drush as expected for recent drush releases. I was able to provision a 8.4.0 codebase successfully from drupal-composer, and the drush version provided with the project was used unless i was completely outside the codebase. As things currently stand, I don't think we need to take any action to support the 8.4 release.
Looking at drush-launcher, this seems like it would be fine for D8 projects setup to use composer, but anything else we wouldn't be providing a working drush setup for. That would mean any previous D7 or D8 codebase would need to be refactored to use composer and include a site-local drush in order to have a working drush setup. I don't think we should be imposing such a requirement on our users, as there's no telling whether such a task is reasonably achievable for any given site. Given this, I think we should stick with the global drush install for the time being.
While a drush update doesn't seem strictly necessary at this time, I do have a PR to update it and a couple other tools in the container, along with some other maintenance.
Hi @tannerjfco. I haven't reviewed the PR specifically, but given the scope of this issue is to ensure that Drupal 8.4 is functional, I think the plan of sticking with the smaller changes for now makes sense while we work through the implications on Drupal 7 / previous Drupal 8 as a separate issue.
One other note. One of the recommendations was to test against drupal/drupal8 instead of our drud/drupal8 snapshot. I assume this would also be an appropriate place to make that change so we can start tracking against all future releases.
I think we're in good shape for D8.4, so I'm going to close this given the following:
Our previous drush version 8.1.12 was sufficient to support Drupal 8.4
We updated drush anyways to latest 8.1.15
We have switched our tests to use the official D8 release instead of our test repo. We'll have to update our test archive URL periodically in order to test the latest release, but this is already a better situation than we had.
If we encounter any new issues related to 8.4, a new ticket can be filed at such time.
Activity
weitzman commentedon Sep 15, 2017
The most recent version of Drush8 as a global Drush actually works properly - it hands off to the site local drush.
However, to the extent people want a global Drush, the drush-launcher is now recommended over a global drush. drush-launcher a separate program from Drush.
rickmanelius commentedon Sep 15, 2017
I added myself as an assignee and pulled to our planning board.
rickmanelius commentedon Sep 25, 2017
Given that Drupal 8.4 is going to release is going to be next week (https://groups.drupal.org/node/517148), it would probably make sense to prioritize this. It sounds like we need the following:
Sidtenoe: I'm not entirely sure the extent by which drush-launcher would provide value, but I haven't tested the composer based build on 8.4.x-rc2. Given that each site has their own container, I'd guess the scenario that it would apply is if each site specified its own version of drush and running
ddev exec drushwould require drush-launcher to ensure that the installed version was the targetted one. Is that correct?rickmanelius commentedon Sep 25, 2017
If the above comment is valid, I'd consider this actionable able and we can prioritize in the upcoming milestone.
weitzman commentedon Sep 25, 2017
Yes thats correct.
rickmanelius commentedon Sep 26, 2017
@rfay I believe this is actionable, but let me know if there is additional detail or criteria to stub out before you/@nmccrory are comfortable moving on it.
rickmanelius commentedon Oct 3, 2017
Not sure if this is caused by changes in the Drupal 8.4.x codebase (requiring composer by default), but in attempting to review https://github.com/nmccrory/ddev/blob/180ba2ddafbcfb724ac8d2230ed39f833f4f4023/docs/users/cli-usage.md where we're building D8 from composer, when I was using the PR from @rfay introducing flags for
ddev config(see #476), a standardddev configwas not executing properly. I'll need to do more digging, but I wanted to surface this issue.rfay commentedon Oct 3, 2017
Please mention exactly what kind of problems you had with
ddev config- it's super important! Could you give a screenshot or something?tannerjfco commentedon Oct 10, 2017
Based on my testing, the version of drush we currently provide - 8.1.12 - hands off to a site local drush as expected for recent drush releases. I was able to provision a 8.4.0 codebase successfully from drupal-composer, and the drush version provided with the project was used unless i was completely outside the codebase. As things currently stand, I don't think we need to take any action to support the 8.4 release.
Looking at drush-launcher, this seems like it would be fine for D8 projects setup to use composer, but anything else we wouldn't be providing a working drush setup for. That would mean any previous D7 or D8 codebase would need to be refactored to use composer and include a site-local drush in order to have a working drush setup. I don't think we should be imposing such a requirement on our users, as there's no telling whether such a task is reasonably achievable for any given site. Given this, I think we should stick with the global drush install for the time being.
While a drush update doesn't seem strictly necessary at this time, I do have a PR to update it and a couple other tools in the container, along with some other maintenance.
rickmanelius commentedon Oct 11, 2017
Hi @tannerjfco. I haven't reviewed the PR specifically, but given the scope of this issue is to ensure that Drupal 8.4 is functional, I think the plan of sticking with the smaller changes for now makes sense while we work through the implications on Drupal 7 / previous Drupal 8 as a separate issue.
One other note. One of the recommendations was to test against drupal/drupal8 instead of our drud/drupal8 snapshot. I assume this would also be an appropriate place to make that change so we can start tracking against all future releases.
tannerjfco commentedon Oct 16, 2017
I think we're in good shape for D8.4, so I'm going to close this given the following:
If we encounter any new issues related to 8.4, a new ticket can be filed at such time.
rickmanelius commentedon Oct 17, 2017
@tannerjfco So to confirm, this is not a blocker for 8.4? #504