-
Notifications
You must be signed in to change notification settings - Fork 13
Prepare for DDEV 1.23 and improve initial config. #23
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
@rpkoller says a remaining issue is restarting ddev for yarn version (resolved) |
One thought: If you want to make it require DDEV v1.23, which would make things simpler,
https://ddev.readthedocs.io/en/stable/users/configuration/config/#ddev_version_constraint |
it would be less jumping through hoops by simply requiring 1.23+ and it would also save users from the annoying redownload of yarn in 1.22.7
|
If I'm not mistaken, it will only save users from this the second and following times. The reason is that DDEV v1.23+ sets the COREPACK_HOME to a persistent volume, so yarn is there there the next time it's looked for, unless, of course, the yarn version has changed and a new one has to be fetched. |
yep in my tests on 1.22.7 you had to redownload yarn after every restart of the project. |
Either option suits me. If this was a plugin that people used for their paid work then I would question forcing them to upgrade (in case there was a reason they were pinned to an older DDEV version). Any performance improvements can be follow up. Happy to act on instruction. |
Just adding the woraround to get Drupal 11 working from @stasadev on ddev/ddev#6110 (comment)
|
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.
I think it's really important to get this over the finish line ASAP so we'll have it mature and released by Drupalcon Portland a week from now (May 5).
Tested with:
ddev get https://github.com/simesy/ddev-drupal-core-dev/tarball/main
It does require @rpkoller's .ddev/Dockerfile.ddev-drupal-core-dev changes to get Sqlite3 3.45
@justafish if you could also run the workflow it would be great. Or give perms to me to do it. I'm assuming this add-on has a bright future, right? Do you want to move it to official in the |
c4f3d76
to
194d31a
Compare
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.
It looks to me like this is ready to go. @justafish if you could run tests to make sure it's OK, and pull. Next steps we could make sure it works consistently with one database provider and test and then do a release.
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.
@justafish if we can get this in then I'll add to it support for drush and automatic setup of the proper SIMPLETEST_DB info in the phpunit.xml. I'll open an issue about drush explaining how I'd like to do it.
Closed in favour of #30 as i changed the base branch in the forked repo to |
* DDEV 1.23 compatiblity, Drupal core yarn/sqlite compatibility. Docs. * Need to use sqlite now b/c no mysql. From /pull/27/files. * Remove install of sqlite3 and make dependent on DDEV v1.23.1 * Run tests now that sqlite 3.45 in DDEV release * Dockerfile is gone, don't try to install it * add back in omit_containers, can remove farther down the line * Remove --verbose from phpunit command, not supported in phpunit 10 --------- Co-authored-by: Simon Hobbs <[email protected]>
Has this been fixed? I am on ddev version 1.23.3 and Drupal 11.x and still facing this issue. Can someone point me to the resolution for this? Thanks |
Please use HEAD; a new release hasn't been done with several commits.
There are also other PRs pending that may be useful to you. Most of them have instructions how to |
Thanks. Tried the following commands by taking reference from cd06f6c but did not help:
|
I hope you didn't do those all on the same line. But could you please use what I said in #23 (comment) ? You're getting the released version of this add-on, which is quite old. I'm sorry, I don't have access to create a release. (And please open a new issue in situations like this instead of commenting on an old PR) |
This PR prepares the plugin for ddev 1.23 and also is a little more explicit about its config including setting some initial config to make sure ddev inits correctly.
Please note that if you want to reinstall Drupal. there is a known issue with the sites/default being hardened and it's not obvious the user how to reset drupal. A future PR will fix this.
@rpkoller has more extensive testing and he should weigh in on the PR to make sure he's happy.
Anyone testing should note to vary the README by cloning my fork inside the drupal repo, and then doing
ddev get ddev-drupal-core-dev
to use the clone as the plugin source.Tested against 1.22.7 and 1.23-beta1
cd drupal
git clone [email protected]:simesy/ddev-drupal-core-dev.git
(should be main branch)ddev config --omit-containers=db --disable-settings-management
ddev start
ddev get ddev-drupal-core-dev
ddev restart
ddev composer install