Is there a non-Drush, Ludwig way to switch from the recommended release of a module to a development snapshot in Drupal 9, for example copying the development snapshot files and run update.php?

The Drush answer for Drupal 7 given in How can I update from the recommended release of a module to it development snapshot? suggests to do that.
In my case, I want to switch to the development snapshot of the Address module to resolve the doctrine/collections missing when using Ludwig on Drupal 9 issue.

1 Answer 1


You can install the dev version of Drupal modules by setting the version constraint as 1.x-dev. For example: composer require drupal/token:1.x-dev.

Read more: https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies#specify-version

  • I'm using Ludwig insted of composer. Is there a non-composer way for setting the version constraint? Thx!
    – Dadaisme
    Dec 25, 2021 at 7:26
  • No clue. Ludwig is a non-standard method of managing Drupal code, so you'll find that there won't be much support for Ludwig issues - you'll likely need to work through them yourself for the most part.
    – Jaypan
    Dec 25, 2021 at 17:54
  • 1
    Composer is the standard.
    – Kevin
    Dec 26, 2021 at 6:17
  • You may want to lock it to a specific commit when using a branch by appending #COMMIT-HASH to the version. See drupal.org/docs/develop/using-composer/…
    – sonfd
    Dec 27, 2021 at 1:40
  • 1
    Composer can be daunting if you've never worked with the command line, but it's actually not so hard to learn, and once you do, you'll never go back. It can be frustrating when Composer reports a conflict, but Composer support in Drupal is extensive, and there are Composer support communities as well. And fixing a conflict reported by Composer is better than having an unrealized conflict causing bugs in a non-Composer system. Here's a series I wrote on Composer for Drupal users that may help: morpht.com/blog/…
    – Jaypan
    Dec 27, 2021 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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