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

sah62 created an issue. See original summary.

jaapjan’s picture

Title: Supported Version of devel Module » Update to Supported Version of Devel Module
Category: Bug report » Task

We 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.

sah62’s picture

Sorry, 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:

Nothing to install or update

jaapjan’s picture

Status: Active » Needs review

No 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

jaapjan’s picture

Status: Needs review » Fixed

Thanks sah62, I've just merged it to 4.x and (upcoming) 5.x. Should be in the next releases.

sah62’s picture

Thanks! 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 update in my project directory?

jaapjan’s picture

When you run a composer update it 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.x is used. Let's say you want to try out a feature branch, e.g. feature/3043201 You can just change the version to dev-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!

sah62’s picture

Thanks for the explanation (and the quick fix), @jaapjan!

  • jaapjan committed 45573c5 on 8.x-5.x
    Issue #3043201 by jaapjan, sah62: update to devel version 2.0. (#1270)
    

  • 2094232 committed on 8.x-4.x
    Issue #3043201 by jaapjan, sah62: update to devel version 2.0. (#1270)
    
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.