Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294476

Multiple composer-related tests break with composer 2.8.1

$
0
0

Problem/Motivation

Initially filed details in the wrong place: #3478331-26: Upgrade composer to 2.8.1 for PHP 8.4 - the errors look like:

Drupal\BuildTests\Composer\Template\ComposerProjectTemplatesTest::testTemplateCreateProject with data set "recommended-project" ('drupal/recommended-project', 'composer/Template/RecommendedProject', '/web')
COMMAND: COMPOSER_HOME=/tmp/build_workspace_558dd1b0a4860999e23c68f3b3390b60dlYMeC/composer-home COMPOSER_ROOT_VERSION=11.0.6 composer create-project --no-ansi drupal/recommended-project test_project 11.0.6 -vvv --repository /tmp/build_workspace_558dd1b0a4860999e23c68f3b3390b60dlYMeC/test_repository/packages.json
OUTPUT: 
ERROR: Running 2.8.1 (2024-10-04 11:31:01) with PHP 8.3.10 on Linux / 6.8.0-40-generic

...snip...

Installing drupal/recommended-project (11.0.6)

In PathDownloader.php line 51:
                                                                                                          
  [RuntimeException]                                                                                      
  Source path "composer/Template/RecommendedProject" is not found for package drupal/recommended-project

...snip...

Installing drupal/legacy-project (11.0.6)

In PathDownloader.php line 51:
                                                                                                
  [RuntimeException]                                                                            
  Source path "composer/Template/LegacyProject" is not found for package drupal/legacy-project

Tests actually started to break in ci pipelines because the image was updated. @andypost filed #3479441: Upgrade composer to 2.8.2 for PHP 8.3 for that.

Steps to reproduce

Run \Drupal\BuildTests\Composer\Template\ComposerProjectTemplatesTest::testTemplateCreateProject with composer 2.8.1 installed / in the $PATH.

Proposed resolution

Find out why this test breaks, and fix it.

Remaining tasks

tbc

User interface changes

n/a

Introduced terminology

n/a

API changes

n/a

Data model changes

n/a

Release notes snippet

n/a ?


Viewing all articles
Browse latest Browse all 294476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>