-
Notifications
You must be signed in to change notification settings - Fork 10
fix: Install drush without affecting git index #33
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As someone who uses the stash a lot I'm worried this might affect people workflows, so let's try to leave the stash list as it started.
I tested this and it works well. I like that it clearly doesn't change the installation unless you run I was also keen see that it did not change the container or service definition of the application. I dumped $container_definition, service IDs and then compared these before and after and I could not see any difference between them, so my conclusion is that adding drush does not change the drupal application state. |
Thanks for the review. This just introduces drush and makes it available. It doesn't change anything about the code. When we introduce the use of different database types and such we can explain how to use |
Co-authored-by: Christian López Espínola <[email protected]>
@justafish this has now been rebased and is passing tests and has tests for the drush usage. I think everybody will like it :) Hoping you can pull it, and we can move on to using other database types in |
@justafish I'd love if you could take a look at this (and I'm hoping to do some performance comparisons using tmpfs/memory-based database mounts (mariadb) and it will be easy and fun to do with these in. |
Hi @rfay - thanks for this PR. This is a tricky one for me - I think when we initially discussed this it was to do it in a way that would put everything back to how it was before running the command. However, for me that includes the vendor directory otherwise I'm developing against an unknown set of dependencies. For me it's absolutely fine to have visible changes in So closing this PR for now, but please do re-open if there's any ideas for creative solutions that don't break the workflow I described. |
This PR installs drush (on demand) so it can be widely used. This is also a first step toward being able to install database types other than sqlite3
Testing:
Test with
ddev drush st
to see it get installedddev drush sql-cli
andddev drush si -y demo_umami --account-pass=admin
git status
should show no changes of any kind.Automated tests
Coming