Open Social 8.x-4.7 includes Devel module version 8.x-1.2. Devel 8.x-1.2 is no longer supported, having been replaced with version 8.x-2.0 released on 29 January 2019. Is anyone planning to update the Open Social distribution, or is this something I should update myself?
Comments
Comment #2
jaapjan commentedWe should update this in the distribution. Perhaps you could confirm that it works and create a pullrequest/patch?
After that we should add commit the change necessary in the composer.json file and drupal-org.make.
Comment #3
sah62 commentedSorry, I'm still a noob when it comes to dealing with composer. I cloned the git repository for open social and can see the files that need to be edited, but how exactly do I make these same changes on a running site to update the devel module by itself and test that it works? I found the composer.json and drupal-org.make files in the profiles/contrib/social directory, edited them, and the ran
composer update drupal/devel --with-dependencies. It produced this output:Comment #4
jaapjan commentedNo problem. That requires some changes to your project composer.json indeed. I've created a branch and pullrequest with the required changes:
https://github.com/goalgorilla/open_social/pull/1270
Comment #5
jaapjan commentedThanks sah62, I've just merged it to 4.x and (upcoming) 5.x. Should be in the next releases.
Comment #6
sah62 commentedThanks! The changes I made locally are exactly what I saw in your commit, so I feel confident that I got that part right. What am I doing wrong in terms of testing the change on my site? Should I be running
composer updatein my project directory?Comment #7
jaapjan commentedWhen you run a
composer updateit tries to download a new version (usually using GIT) from a remote source. So it doesn't work if you make the changes only locally.The remote source is usually from the default GIT repository https://github.com/goalgorilla/open_social. However if you need to test a different source (e.g. your own GIT repository) then you should change the source URL in your project composer.json. One example on how to override it can be seen in our developer repository. https://github.com/goalgorilla/drupal_social/blob/master/composer.json See line 57. You can change that to your repository URL. In addition you can also change the branch version. You can see here that branch
dev-8.x-4.xis used. Let's say you want to try out a feature branch, e.g.feature/3043201You can just change the version todev-feature/3043201.After making the changes to your project composer.json you can run
COMPOSER_MEMORY_LIMIT=-1 composer update goalgorilla/open_social --with-all-dependencies. In some cases (especially when updating modules) it might be necessary to remove html/core, html/modules/contrib and html/profiles/contrib folder before running that command.Hope that explains!
Comment #8
sah62 commentedThanks for the explanation (and the quick fix), @jaapjan!