Metadrop / drupal-boilerplate

Drupal projects up and running with Docker and many other tools in minutes
28 stars 23 forks source link

Load ui_patterns_field_formatters from drupal instead of GIT. #19

Closed idiazroncero closed 4 years ago

idiazroncero commented 4 years ago

Lately, the drupal-boilerplate is failing because of this error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package drupal/ui_patterns_field_formatters dev-master exists as drupal/ui_patterns_field_formatters[dev-1.x, 1.x-dev, 1.0.0, 1.1.0, 1.2.0, dev-8.x-1.x] but these are rejected by your constraint.

This is because the ui_patterns_field_formatters module is now a stable Drupal module instead of a git repo, and (I guess) the maintainer has deleted the original GIT repo or renamed the branches we were loading.

The following PR solves this by simply loading the module from Drupal and using version numbers.

Please note this is just to fix the issue. Another equally valid solution would be to drop the ui_pattern dependencies from the composer.json file at all.