We've stuck in the following error in Drupal CI/CD (again).

Composer require failure - View results on dispatcher

--- Commands Executed ---
sudo -u www-data /usr/local/bin/composer  require --no-interaction 'drupal/aws_cloud:*' 'drupal/k8s:*' --prefer-stable --no-progress --no-suggest --working-dir /var/www/html
Return Code: 1
--- Output ---

--- Errors ---
                                                                                                                                                                     
  [RuntimeException]                                                                                                                                                           
  Could not load package drupal/k8s in https://packages.drupal.org/8: [UnexpectedValueException] Could not parse version constraint ^0.14.*: Invalid version string "^0.14.*"  
                                                                                                                                                                                                                      
  [UnexpectedValueException]                                                    
  Could not parse version constraint ^0.14.*: Invalid version string "^0.14.*"  

Our K8s (Kubernetes) module is depending on the library maclof/kubernetes-client, which was updated from 0.14.3 to 0.15.0 just while a day ago. Therefore I created a patch to fix the version of maclof/kubernetes-client at #3084185 as follows:

   "require": {
-    "maclof/kubernetes-client": "^0.14.*"
+    "maclof/kubernetes-client": "~0.15"
   }

However it is still getting failure. It looks Drupal CI/CD keep using the prior composer.json (version ^0.14.*)according to the log.

We didn't update our composer.json this time and the third-party library maclof/kubernetes-client hasn't newly released.
The database should be ~0.15.

Comments

yas created an issue. See original summary.

drumm’s picture

drumm’s picture

Assigned: Unassigned » drumm
Status: Active » Fixed

#3076342: Filter out bad version constraints is now deployed and I ran packages.drupal.org’s processing. Two new test runs now get past where this had been happening: https://www.drupal.org/pift-ci-job/1677992 & https://www.drupal.org/pift-ci-job/1677990. I think those are failing for a different reason:

- drupal/aws_cloud … requires drupal/core ~8.0 -> satisfiable by drupal/core[8.0.x-dev, 8.1.x-dev, 8.2.x-dev, 8.3.x-dev, 8.4.x-dev, 8.5.x-dev, 8.7.x-dev, 8.8.x-dev, 8.9.x-dev].

If I’m reading that correctly, it is not finding a D9-compatible version of aws_cloud.

yas’s picture

@drumm

We really appreciate you for solving the issue. Just let you know that it looks start working!

Status: Fixed » Closed (fixed)

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