Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support drush instead of using too-simple core commands #29

Open
rfay opened this issue Apr 30, 2024 · 1 comment
Open

Support drush instead of using too-simple core commands #29

rfay opened this issue Apr 30, 2024 · 1 comment

Comments

@rfay
Copy link
Contributor

rfay commented Apr 30, 2024

I'm pretty sure we can support drush successfully with this technique, discussed in https://drupal.slack.com/archives/C62H9CWQM/p1714512734554949

hooks:
  post-start:
    exec: git stash && composer require drush/drush && git stash apply

Then we can use ddev drush si and all the other wonderful riches of drush...without messing up the composer.json or composer.lock.

It's slightly intrusive, and DDEV itself would never do anything like that by policy... but this is an opinionated add-on.

I'll be happy to do a PR to add this to config.ddev-drupal-core-dev.yaml after

Tests and everything else could then be run using DDEV's settings.ddev.php, using all database types, etc.

@joachim-n
Copy link

If you use the add-on with the joachim-n/drupal-core-development-project Composer template (see https://github.com/joachim-n/drupal-core-development-project/tree/1.0.15?tab=readme-ov-file#installation-on-ddev-with-the-justafishddev-drupal-core-dev-ddev-addon) then installing Drush becomes simple and doesn't mess up Composer files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants