Current last dev release of the Field Group module for drupal 8 was out on (29 Mar 2019). However, I need to download the previous dev version before the dev version release mentioned above.

The last dev release was out on (29 Mar 2019)

but I need the previous dev version which was out on (10 May 2017)

It is important for me to record this specific dev version in composer.json file so the same dev version of the module will be used on all environments.

How can I do that ?

Note: i can use any of Composer, Git or Drush commands.

  • Do you really want a version of that module from 2 years and many major Drupal versions ago?
    – Kevin
    Apr 4, 2019 at 2:34
  • @Kevin yes because the last dev version for my requirements is broken and it seems the maintainer doesn't have enough time for it anymore.... so I have to go back to the previous version until the last is fixed Apr 4, 2019 at 7:44

1 Answer 1


You have to refer to the dev branch and reference the SHA of the version of dev you want in Composer.


composer require drupal/field_group:3.x-dev#COMMITSHA

This will fetch the dev branch of version 8.x-3.x at this specific commit. To get that commit itself, you’ll have to find it on the git page for the project ( which now goes to GitLab).

I can’t find the exact one you are looking for (I’m on mobile) but here is an example.


So you’d do:

composer require drupal/field_group:3.x-dev#a4bd3869

  • 1
    I think it's also a best practice to always wrap the package in quotes like so: composer require 'drupal/field_group:3.x-dev#a4bd3869'
    – Bram
    Apr 8, 2019 at 10:56
  • @Kevin Thank you for the reply and help,,, but I am unable to find the the #CommitSHA of the dev version released just before the latest dev release (on 10 May 2017) Apr 8, 2019 at 20:38
  • 1
    You have to look through the commit history to find it.
    – Kevin
    Apr 8, 2019 at 20:52
  • Finally I have found it and composer require 'drupal/field_group:3.x-dev'#2e8c7106 has fixed the issue.... thank you so much for your help @Kevin Apr 8, 2019 at 23:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.