Composer step reporting issues with $_WEB_ROOT

Created on 23 June 2025, 1 day ago

Problem/Motivation

Started seeing pipelines failures on the composer step, with this error:

test -d "$_WEB_ROOT" && echo -e "$DIVIDER\nThis project contains a top-level directory named '$_WEB_ROOT' which is the same as the variable _WEB_ROOT. This variable defines the location for installing Drupal core and the clash may cause some jobs to fail or give misleading results.\n \nTo resolve this, you can either rename the directory within your project or set a different custom value for the _WEB_ROOT variable. The name can be anything other than an existing directory in your project.$DIVIDER" && exit 1;

But I don't specify any web root variables in my gitlab ci file?

Steps to reproduce

See: https://git.drupalcode.org/project/group/-/jobs/5644908

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Component

gitlab-ci

Created by

πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kristiaanvandeneynde
  • πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

    No wait, that seems to be a comment indicating what commands are being run. In that case I'm clueless as to why the pipeline is failing.

  • πŸ‡ͺπŸ‡ΈSpain fjgarlin

    The Composer install and require drush section is collapse by default.

    The problem is there:

    Your requirements could not be resolved to an installable set of packages.
      Problem 1
        - Root composer.json requires drupal/core-dev 11.2.0 -> satisfiable by drupal/core-dev[11.2.0].
        - Root composer.json requires drupal/core-recommended 11.2.0 -> satisfiable by drupal/core-recommended[11.2.0].
        - Root composer.json requires jangregor/phpstan-prophecy ^1.0 -> satisfiable by jangregor/phpstan-prophecy[1.0.0, 1.0.1, 1.0.2].
        - drupal/core-dev 11.2.0 requires mglaman/phpstan-drupal ^2.0.7 -> satisfiable by mglaman/phpstan-drupal[2.0.7].
        - jangregor/phpstan-prophecy 1.0.0 requires phpstan/phpstan ^1.0.0 -> satisfiable by phpstan/phpstan[1.0.0, ..., 1.12.x-dev].
        - mglaman/phpstan-drupal 2.0.7 requires phpstan/phpstan ^2.1 -> satisfiable by phpstan/phpstan[2.1.0, ..., 2.1.x-dev].
        - Conclusion: don't install jangregor/phpstan-prophecy 1.0.1 (conflict analysis result)
        - Conclusion: don't install jangregor/phpstan-prophecy 1.0.2 (conflict analysis result)
        - Conclusion: don't install one of phpstan/phpstan[2.1.17], jangregor/phpstan-prophecy[1.0.0] (conflict analysis result)
        - You can only install one version of a package, so only one of these can be installed: phpstan/phpstan[1.0.0, ..., 1.12.x-dev, 2.0.0, ..., 2.1.x-dev].
    
  • πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

    Thanks! For future reference, where can I find this output myself?

  • πŸ‡ͺπŸ‡ΈSpain fjgarlin

    It’s in the output of the job, but as it is collapsed by default you may have missed it.

  • πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

    Ah yes, I was unaware of that feature. Thanks!

Production build 0.71.5 2024