Cannot be installed if drupal/core-dev is installed because the dependency justinrainbow/json-schema cannot be installed.
PHP 8.3.6, Drupal 11.2.2 and drupal/experience_builder 0.5.0-alpha1
See attached log:
www-data@cli-drupal11-test:/var/www$ composer require 'drupal/experience_builder:^0.5@alpha'
./composer.json has been updated
Running composer update drupal/experience_builder
Gathering patches from patch file.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/experience_builder ^0.5@alpha -> satisfiable by drupal/experience_builder[0.5.0-alpha1].
- drupal/experience_builder 0.5.0-alpha1 requires justinrainbow/json-schema ^5.2 -> found justinrainbow/json-schema[5.2.0, ..., 5.3.0] but the package is fixed to 6.4.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
www-data@cli-drupal11-test:/var/www$ composer remove drupal/core-dev
./composer.json has been updated
Running composer update drupal/core-dev
Gathering patches from patch file.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 0 updates, 83 removals
- Removing behat/mink (v1.12.0)
- Removing behat/mink-browserkit-driver (v2.2.0)
- Removing brick/math (0.13.1)
- Removing colinodell/psr-testlogger (v1.3.0)
- Removing composer/ca-bundle (1.5.7)
- Removing composer/class-map-generator (1.6.1)
- Removing composer/composer (2.8.9)
- Removing composer/metadata-minifier (1.0.0)
- Removing composer/pcre (3.3.2)
- Removing composer/spdx-licenses (1.5.9)
- Removing composer/xdebug-handler (3.0.5)
- Removing dealerdirect/phpcodesniffer-composer-installer (v1.1.1)
- Removing doctrine/instantiator (2.0.0)
- Removing drupal/coder (8.3.30)
- Removing drupal/core-dev (11.2.2)
- Removing google/protobuf (v4.31.1)
- Removing justinrainbow/json-schema (6.4.2)
- Removing lullabot/mink-selenium2-driver (v1.7.4)
- Removing lullabot/php-webdriver (v2.0.6)
- Removing marc-mabe/php-enum (v4.7.1)
- Removing micheh/phpcs-gitlab (2.0.0)
- Removing mikey179/vfsstream (v1.6.12)
- Removing myclabs/deep-copy (1.13.1)
- Removing nyholm/psr7-server (1.1.0)
- Removing open-telemetry/api (1.4.0)
- Removing open-telemetry/context (1.2.1)
- Removing open-telemetry/exporter-otlp (1.3.2)
- Removing open-telemetry/gen-otlp-protobuf (1.5.0)
- Removing open-telemetry/sdk (1.6.0)
- Removing open-telemetry/sem-conv (1.32.1)
- Removing phar-io/manifest (2.0.4)
- Removing phar-io/version (3.2.1)
- Removing php-http/discovery (1.20.0)
- Removing php-http/guzzle7-adapter (1.1.0)
- Removing php-http/httplug (2.4.1)
- Removing php-http/promise (1.3.1)
- Removing phpdocumentor/reflection-common (2.2.0)
- Removing phpdocumentor/reflection-docblock (5.6.2)
- Removing phpdocumentor/type-resolver (1.10.0)
- Removing phpspec/prophecy (v1.22.0)
- Removing phpspec/prophecy-phpunit (v2.4.0)
- Removing phpstan/extension-installer (1.4.3)
- Removing phpstan/phpdoc-parser (2.1.0)
- Removing phpstan/phpstan-phpunit (2.0.6)
- Removing phpunit/php-code-coverage (11.0.10)
- Removing phpunit/php-file-iterator (5.1.0)
- Removing phpunit/php-invoker (5.0.1)
- Removing phpunit/php-text-template (4.0.1)
- Removing phpunit/php-timer (7.0.1)
- Removing phpunit/phpunit (11.5.25)
- Removing ramsey/collection (2.1.1)
- Removing ramsey/uuid (4.9.0)
- Removing react/promise (v3.2.0)
- Removing sebastian/cli-parser (3.0.2)
- Removing sebastian/code-unit (3.0.3)
- Removing sebastian/code-unit-reverse-lookup (4.0.1)
- Removing sebastian/comparator (6.3.1)
- Removing sebastian/complexity (4.0.1)
- Removing sebastian/environment (7.2.1)
- Removing sebastian/exporter (6.3.0)
- Removing sebastian/global-state (7.0.2)
- Removing sebastian/lines-of-code (3.0.1)
- Removing sebastian/object-enumerator (6.0.1)
- Removing sebastian/object-reflector (4.0.1)
- Removing sebastian/recursion-context (6.0.2)
- Removing sebastian/type (5.1.2)
- Removing sebastian/version (5.0.2)
- Removing seld/jsonlint (1.11.0)
- Removing seld/phar-utils (1.2.1)
- Removing seld/signal-handler (2.0.2)
- Removing sirbrillig/phpcs-variable-analysis (v2.12.0)
- Removing slevomat/coding-standard (8.19.1)
- Removing squizlabs/php_codesniffer (3.13.2)
- Removing staabm/side-effects-detector (1.0.5)
- Removing symfony/browser-kit (v7.3.0)
- Removing symfony/css-selector (v7.3.0)
- Removing symfony/dom-crawler (v7.3.1)
- Removing symfony/lock (v7.3.0)
- Removing symfony/polyfill-php73 (v1.32.0)
- Removing symfony/polyfill-php82 (v1.32.0)
- Removing tbachert/spi (v1.0.5)
- Removing theseer/tokenizer (1.2.3)
- Removing webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 0 updates, 83 removals
- Removing webmozart/assert (1.11.0)
- Removing theseer/tokenizer (1.2.3)
- Removing tbachert/spi (v1.0.5)
- Removing symfony/polyfill-php82 (v1.32.0)
- Removing symfony/polyfill-php73 (v1.32.0)
- Removing symfony/lock (v7.3.0)
- Removing symfony/dom-crawler (v7.3.1)
- Removing symfony/css-selector (v7.3.0)
- Removing symfony/browser-kit (v7.3.0)
- Removing staabm/side-effects-detector (1.0.5)
- Removing squizlabs/php_codesniffer (3.13.2)
- Removing slevomat/coding-standard (8.19.1)
- Removing sirbrillig/phpcs-variable-analysis (v2.12.0)
- Removing seld/signal-handler (2.0.2)
- Removing seld/phar-utils (1.2.1)
- Removing seld/jsonlint (1.11.0)
- Removing sebastian/version (5.0.2)
- Removing sebastian/type (5.1.2)
- Removing sebastian/recursion-context (6.0.2)
- Removing sebastian/object-reflector (4.0.1)
- Removing sebastian/object-enumerator (6.0.1)
- Removing sebastian/lines-of-code (3.0.1)
- Removing sebastian/global-state (7.0.2)
- Removing sebastian/exporter (6.3.0)
- Removing sebastian/environment (7.2.1)
- Removing sebastian/complexity (4.0.1)
- Removing sebastian/comparator (6.3.1)
- Removing sebastian/code-unit-reverse-lookup (4.0.1)
- Removing sebastian/code-unit (3.0.3)
- Removing sebastian/cli-parser (3.0.2)
- Removing react/promise (v3.2.0)
- Removing ramsey/uuid (4.9.0)
- Removing ramsey/collection (2.1.1)
- Removing phpunit/phpunit (11.5.25)
- Removing phpunit/php-timer (7.0.1)
- Removing phpunit/php-text-template (4.0.1)
- Removing phpunit/php-invoker (5.0.1)
- Removing phpunit/php-file-iterator (5.1.0)
- Removing phpunit/php-code-coverage (11.0.10)
- Removing phpstan/phpstan-phpunit (2.0.6)
- Removing phpstan/phpdoc-parser (2.1.0)
- Removing phpstan/extension-installer (1.4.3)
- Removing phpspec/prophecy-phpunit (v2.4.0)
- Removing phpspec/prophecy (v1.22.0)
- Removing phpdocumentor/type-resolver (1.10.0)
- Removing phpdocumentor/reflection-docblock (5.6.2)
- Removing phpdocumentor/reflection-common (2.2.0)
- Removing php-http/promise (1.3.1)
- Removing php-http/httplug (2.4.1)
- Removing php-http/guzzle7-adapter (1.1.0)
- Removing php-http/discovery (1.20.0)
- Removing phar-io/version (3.2.1)
- Removing phar-io/manifest (2.0.4)
- Removing open-telemetry/sem-conv (1.32.1)
- Removing open-telemetry/sdk (1.6.0)
- Removing open-telemetry/gen-otlp-protobuf (1.5.0)
- Removing open-telemetry/exporter-otlp (1.3.2)
- Removing open-telemetry/context (1.2.1)
- Removing open-telemetry/api (1.4.0)
- Removing nyholm/psr7-server (1.1.0)
- Removing myclabs/deep-copy (1.13.1)
- Removing mikey179/vfsstream (v1.6.12)
- Removing micheh/phpcs-gitlab (2.0.0)
- Removing marc-mabe/php-enum (v4.7.1)
- Removing lullabot/php-webdriver (v2.0.6)
- Removing lullabot/mink-selenium2-driver (v1.7.4)
- Removing justinrainbow/json-schema (6.4.2)
- Removing google/protobuf (v4.31.1)
- Removing drupal/core-dev (11.2.2)
- Removing drupal/coder (8.3.30)
- Removing doctrine/instantiator (2.0.0)
- Removing dealerdirect/phpcodesniffer-composer-installer (v1.1.1)
- Removing composer/xdebug-handler (3.0.5)
- Removing composer/spdx-licenses (1.5.9)
- Removing composer/pcre (3.3.2)
- Removing composer/metadata-minifier (1.0.0)
- Removing composer/composer (2.8.9)
- Removing composer/class-map-generator (1.6.1)
- Removing composer/ca-bundle (1.5.7)
- Removing colinodell/psr-testlogger (v1.3.0)
- Removing brick/math (0.13.1)
- Removing behat/mink-browserkit-driver (v2.2.0)
- Removing behat/mink (v1.12.0)
Generating autoload files
53 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Failed to audit installed packages.
www-data@cli-drupal11-test:/var/www$ composer require 'drupal/experience_builder:^0.5@alpha'
./composer.json has been updated
Running composer update drupal/experience_builder
Gathering patches from patch file.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 2 installs, 0 updates, 0 removals
- Locking drupal/experience_builder (0.5.0-alpha1)
- Locking justinrainbow/json-schema (5.3.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Downloading justinrainbow/json-schema (5.3.0)
- Downloading drupal/experience_builder (0.5.0-alpha1)
Gathering patches from patch file.
Gathering patches for dependencies. This might take a minute.
- Installing justinrainbow/json-schema (5.3.0): Extracting archive
- Installing drupal/experience_builder (0.5.0-alpha1): Extracting archive
Generating autoload files
53 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
www-data@cli-drupal11-test:/var/www$
Comments
Comment #2
nevergoneComment #3
nevergoneComment #4
penyaskitodrupal/core-devspecifiesjustinrainbow/json-schema: ^5.2 || ^6.3The message says: the package is fixed to 6.4.2 in your lock file.
You should be able to downgrade it.
Comment #5
penyaskitodrupal/core-devspecifiesjustinrainbow/json-schema: ^5.2 || ^6.3The message says: the package is fixed to 6.4.2 in your lock file.
You should be able to downgrade it.
Comment #6
nevergonePHP 8.3.6, Drupal 11.2.2 (fresh download), Composer 2.8.9
Comment #7
penyaskitocomposer require 'drupal/experience_builder:^0.5@alpha' drupal/core-dev -Wso it updates to a compatible set of dependencies.Comment #8
nevergoneOkay, this is how it works. Is there a way to make it work without downgrading the package?
Comment #10
wim leersNo, I'm afraid not. There's show-stopping bugs in older versions of that dependency.
Since then, we've bumped the minimum required version even further: #3560455: [upstream] Stream wrapper URIs are incorrectly flagged as invalid (hostname misinterpreted) due to bug in `justinrainbow/json-schema` — bump minimum version to 6.6.2.
But so has Drupal core! So you're less likely to run into the problem you ran into 😊