deviantintegral / drupal_tests

A docker container based for running Drupal tests in CircleCI
GNU General Public License v3.0
24 stars 9 forks source link

Problem with cweagans/composer-patches when running update-dependencies job #31

Closed m4olivei closed 6 years ago

m4olivei commented 6 years ago

After setting up a new repo with the latest master script, and running the jobs on CircleCI, I got this error from composer:

[Composer\DependencyResolver\SolverProblemsException]                                                                                                  
  Problem 1                                                                                                                                              
      - The requested package cweagans/composer-patches ~1.0 exists as cweagans/composer-patches[dev-master] but these are rejected by your constraint.

It seems like the version constraint for cweagans/composer-patches in the root composer.json (which is ~1.0, located at /var/www/html/composer.json) and the version constraint for cweagans/composer-patches in the module set by the script (dev-master) do not agree, and that causes an issue.

m4olivei commented 6 years ago

Changing the version constraint in my modules composer.json to cweagans/composer-patches:~1.0 fixed it for me.

m4olivei commented 6 years ago

I re-ran though this using a public repo and the same issue happened. Here is the CircleCI job that failed:

https://circleci.com/gh/m4olivei/drupal_ci_test/1

deviantintegral commented 6 years ago

Fixed in 5505faf