Cannot be installed if drupal/core-dev is installed
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3534774. -->
Reported by: [nevergone](https://www.drupal.org/user/58654)
>>>
<p>Cannot be installed if drupal/core-dev is installed because the dependency justinrainbow/json-schema cannot be installed.</p>
<p>PHP 8.3.6, Drupal 11.2.2 and drupal/experience_builder 0.5.0-alpha1</p>
<p>See attached log:</p>
<pre>www-data@cli-drupal11-test:/var/www$ composer require 'drupal/experience_builder:^0.5@alpha'<br>./composer.json has been updated<br>Running composer update drupal/experience_builder<br>Gathering patches from patch file.<br>Loading composer repositories with package information<br>Updating dependencies<br>Your requirements could not be resolved to an installable set of packages.<br><br> Problem 1<br> - Root composer.json requires drupal/experience_builder ^0.5@alpha -> satisfiable by drupal/experience_builder[0.5.0-alpha1].<br> - 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.<br><br>Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.<br><br>Installation failed, reverting ./composer.json and ./composer.lock to their original content.<br><br><br><br>www-data@cli-drupal11-test:/var/www$ composer remove drupal/core-dev<br>./composer.json has been updated<br>Running composer update drupal/core-dev<br>Gathering patches from patch file.<br>Loading composer repositories with package information<br>Updating dependencies<br>Lock file operations: 0 installs, 0 updates, 83 removals<br> - Removing behat/mink (v1.12.0)<br> - Removing behat/mink-browserkit-driver (v2.2.0)<br> - Removing brick/math (0.13.1)<br> - Removing colinodell/psr-testlogger (v1.3.0)<br> - Removing composer/ca-bundle (1.5.7)<br> - Removing composer/class-map-generator (1.6.1)<br> - Removing composer/composer (2.8.9)<br> - Removing composer/metadata-minifier (1.0.0)<br> - Removing composer/pcre (3.3.2)<br> - Removing composer/spdx-licenses (1.5.9)<br> - Removing composer/xdebug-handler (3.0.5)<br> - Removing dealerdirect/phpcodesniffer-composer-installer (v1.1.1)<br> - Removing doctrine/instantiator (2.0.0)<br> - Removing drupal/coder (8.3.30)<br> - Removing drupal/core-dev (11.2.2)<br> - Removing google/protobuf (v4.31.1)<br> - Removing justinrainbow/json-schema (6.4.2)<br> - Removing lullabot/mink-selenium2-driver (v1.7.4)<br> - Removing lullabot/php-webdriver (v2.0.6)<br> - Removing marc-mabe/php-enum (v4.7.1)<br> - Removing micheh/phpcs-gitlab (2.0.0)<br> - Removing mikey179/vfsstream (v1.6.12)<br> - Removing myclabs/deep-copy (1.13.1)<br> - Removing nyholm/psr7-server (1.1.0)<br> - Removing open-telemetry/api (1.4.0)<br> - Removing open-telemetry/context (1.2.1)<br> - Removing open-telemetry/exporter-otlp (1.3.2)<br> - Removing open-telemetry/gen-otlp-protobuf (1.5.0)<br> - Removing open-telemetry/sdk (1.6.0)<br> - Removing open-telemetry/sem-conv (1.32.1)<br> - Removing phar-io/manifest (2.0.4)<br> - Removing phar-io/version (3.2.1)<br> - Removing php-http/discovery (1.20.0)<br> - Removing php-http/guzzle7-adapter (1.1.0)<br> - Removing php-http/httplug (2.4.1)<br> - Removing php-http/promise (1.3.1)<br> - Removing phpdocumentor/reflection-common (2.2.0)<br> - Removing phpdocumentor/reflection-docblock (5.6.2)<br> - Removing phpdocumentor/type-resolver (1.10.0)<br> - Removing phpspec/prophecy (v1.22.0)<br> - Removing phpspec/prophecy-phpunit (v2.4.0)<br> - Removing phpstan/extension-installer (1.4.3)<br> - Removing phpstan/phpdoc-parser (2.1.0)<br> - Removing phpstan/phpstan-phpunit (2.0.6)<br> - Removing phpunit/php-code-coverage (11.0.10)<br> - Removing phpunit/php-file-iterator (5.1.0)<br> - Removing phpunit/php-invoker (5.0.1)<br> - Removing phpunit/php-text-template (4.0.1)<br> - Removing phpunit/php-timer (7.0.1)<br> - Removing phpunit/phpunit (11.5.25)<br> - Removing ramsey/collection (2.1.1)<br> - Removing ramsey/uuid (4.9.0)<br> - Removing react/promise (v3.2.0)<br> - Removing sebastian/cli-parser (3.0.2)<br> - Removing sebastian/code-unit (3.0.3)<br> - Removing sebastian/code-unit-reverse-lookup (4.0.1)<br> - Removing sebastian/comparator (6.3.1)<br> - Removing sebastian/complexity (4.0.1)<br> - Removing sebastian/environment (7.2.1)<br> - Removing sebastian/exporter (6.3.0)<br> - Removing sebastian/global-state (7.0.2)<br> - Removing sebastian/lines-of-code (3.0.1)<br> - Removing sebastian/object-enumerator (6.0.1)<br> - Removing sebastian/object-reflector (4.0.1)<br> - Removing sebastian/recursion-context (6.0.2)<br> - Removing sebastian/type (5.1.2)<br> - Removing sebastian/version (5.0.2)<br> - Removing seld/jsonlint (1.11.0)<br> - Removing seld/phar-utils (1.2.1)<br> - Removing seld/signal-handler (2.0.2)<br> - Removing sirbrillig/phpcs-variable-analysis (v2.12.0)<br> - Removing slevomat/coding-standard (8.19.1)<br> - Removing squizlabs/php_codesniffer (3.13.2)<br> - Removing staabm/side-effects-detector (1.0.5)<br> - Removing symfony/browser-kit (v7.3.0)<br> - Removing symfony/css-selector (v7.3.0)<br> - Removing symfony/dom-crawler (v7.3.1)<br> - Removing symfony/lock (v7.3.0)<br> - Removing symfony/polyfill-php73 (v1.32.0)<br> - Removing symfony/polyfill-php82 (v1.32.0)<br> - Removing tbachert/spi (v1.0.5)<br> - Removing theseer/tokenizer (1.2.3)<br> - Removing webmozart/assert (1.11.0)<br>Writing lock file<br>Installing dependencies from lock file (including require-dev)<br>Package operations: 0 installs, 0 updates, 83 removals<br> - Removing webmozart/assert (1.11.0)<br> - Removing theseer/tokenizer (1.2.3)<br> - Removing tbachert/spi (v1.0.5)<br> - Removing symfony/polyfill-php82 (v1.32.0)<br> - Removing symfony/polyfill-php73 (v1.32.0)<br> - Removing symfony/lock (v7.3.0)<br> - Removing symfony/dom-crawler (v7.3.1)<br> - Removing symfony/css-selector (v7.3.0)<br> - Removing symfony/browser-kit (v7.3.0)<br> - Removing staabm/side-effects-detector (1.0.5)<br> - Removing squizlabs/php_codesniffer (3.13.2)<br> - Removing slevomat/coding-standard (8.19.1)<br> - Removing sirbrillig/phpcs-variable-analysis (v2.12.0)<br> - Removing seld/signal-handler (2.0.2)<br> - Removing seld/phar-utils (1.2.1)<br> - Removing seld/jsonlint (1.11.0)<br> - Removing sebastian/version (5.0.2)<br> - Removing sebastian/type (5.1.2)<br> - Removing sebastian/recursion-context (6.0.2)<br> - Removing sebastian/object-reflector (4.0.1)<br> - Removing sebastian/object-enumerator (6.0.1)<br> - Removing sebastian/lines-of-code (3.0.1)<br> - Removing sebastian/global-state (7.0.2)<br> - Removing sebastian/exporter (6.3.0)<br> - Removing sebastian/environment (7.2.1)<br> - Removing sebastian/complexity (4.0.1)<br> - Removing sebastian/comparator (6.3.1)<br> - Removing sebastian/code-unit-reverse-lookup (4.0.1)<br> - Removing sebastian/code-unit (3.0.3)<br> - Removing sebastian/cli-parser (3.0.2)<br> - Removing react/promise (v3.2.0)<br> - Removing ramsey/uuid (4.9.0)<br> - Removing ramsey/collection (2.1.1)<br> - Removing phpunit/phpunit (11.5.25)<br> - Removing phpunit/php-timer (7.0.1)<br> - Removing phpunit/php-text-template (4.0.1)<br> - Removing phpunit/php-invoker (5.0.1)<br> - Removing phpunit/php-file-iterator (5.1.0)<br> - Removing phpunit/php-code-coverage (11.0.10)<br> - Removing phpstan/phpstan-phpunit (2.0.6)<br> - Removing phpstan/phpdoc-parser (2.1.0)<br> - Removing phpstan/extension-installer (1.4.3)<br> - Removing phpspec/prophecy-phpunit (v2.4.0)<br> - Removing phpspec/prophecy (v1.22.0)<br> - Removing phpdocumentor/type-resolver (1.10.0)<br> - Removing phpdocumentor/reflection-docblock (5.6.2)<br> - Removing phpdocumentor/reflection-common (2.2.0)<br> - Removing php-http/promise (1.3.1)<br> - Removing php-http/httplug (2.4.1)<br> - Removing php-http/guzzle7-adapter (1.1.0)<br> - Removing php-http/discovery (1.20.0)<br> - Removing phar-io/version (3.2.1)<br> - Removing phar-io/manifest (2.0.4)<br> - Removing open-telemetry/sem-conv (1.32.1)<br> - Removing open-telemetry/sdk (1.6.0)<br> - Removing open-telemetry/gen-otlp-protobuf (1.5.0)<br> - Removing open-telemetry/exporter-otlp (1.3.2)<br> - Removing open-telemetry/context (1.2.1)<br> - Removing open-telemetry/api (1.4.0)<br> - Removing nyholm/psr7-server (1.1.0)<br> - Removing myclabs/deep-copy (1.13.1)<br> - Removing mikey179/vfsstream (v1.6.12)<br> - Removing micheh/phpcs-gitlab (2.0.0)<br> - Removing marc-mabe/php-enum (v4.7.1)<br> - Removing lullabot/php-webdriver (v2.0.6)<br> - Removing lullabot/mink-selenium2-driver (v1.7.4)<br> - Removing justinrainbow/json-schema (6.4.2)<br> - Removing google/protobuf (v4.31.1)<br> - Removing drupal/core-dev (11.2.2)<br> - Removing drupal/coder (8.3.30)<br> - Removing doctrine/instantiator (2.0.0)<br> - Removing dealerdirect/phpcodesniffer-composer-installer (v1.1.1)<br> - Removing composer/xdebug-handler (3.0.5)<br> - Removing composer/spdx-licenses (1.5.9)<br> - Removing composer/pcre (3.3.2)<br> - Removing composer/metadata-minifier (1.0.0)<br> - Removing composer/composer (2.8.9)<br> - Removing composer/class-map-generator (1.6.1)<br> - Removing composer/ca-bundle (1.5.7)<br> - Removing colinodell/psr-testlogger (v1.3.0)<br> - Removing brick/math (0.13.1)<br> - Removing behat/mink-browserkit-driver (v2.2.0)<br> - Removing behat/mink (v1.12.0)<br>Generating autoload files<br>53 packages you are using are looking for funding.<br>Use the `composer fund` command to find out more!<br>Failed to audit installed packages.<br><br><br><br>www-data@cli-drupal11-test:/var/www$ composer require 'drupal/experience_builder:^0.5@alpha'<br>./composer.json has been updated<br>Running composer update drupal/experience_builder<br>Gathering patches from patch file.<br>Loading composer repositories with package information<br>Updating dependencies<br>Lock file operations: 2 installs, 0 updates, 0 removals<br> - Locking drupal/experience_builder (0.5.0-alpha1)<br> - Locking justinrainbow/json-schema (5.3.0)<br>Writing lock file<br>Installing dependencies from lock file (including require-dev)<br>Package operations: 2 installs, 0 updates, 0 removals<br> - Downloading justinrainbow/json-schema (5.3.0)<br> - Downloading drupal/experience_builder (0.5.0-alpha1)<br>Gathering patches from patch file.<br>Gathering patches for dependencies. This might take a minute.<br> - Installing justinrainbow/json-schema (5.3.0): Extracting archive<br> - Installing drupal/experience_builder (0.5.0-alpha1): Extracting archive<br>Generating autoload files<br>53 packages you are using are looking for funding.<br>Use the `composer fund` command to find out more!<br>No security vulnerability advisories found.<br>www-data@cli-drupal11-test:/var/www$ </pre>
issue