Problem/Motivation
Friends of behat was forked to be compatible with higher versions of Symfony and with PHP 8, now, the latest version of "behat/mink-browserkit-driver": "^2.1", is compatible with it, so is not necessary to require this package anymore, and seems to be deprecated.
The drupal 10 core, already fixed it on https://www.drupal.org/project/drupal/issues/3264903
behat/mink-browserkit-driver is compatible with Symfony 4, 5 and 6, so it is not a breaking change.
Also, this makes to be incompatible with drupalextension see the issue https://github.com/jhedstrom/drupalextension/issues/637
Steps to reproduce
drupalextension requires
"behat/mink-browserkit-driver": "^2.1.0",
and core-dev requires
"friends-of-behat/mink-browserkit-driver": "^1.4",
So it collides.
wodby@php.container:/var/www/html $ composer require "drupal/drupal-extension:v5.0.0alpha1 as v4.3.1" drupal/core-dev:~9.5.3 friends-of-behat/mink-browserkit-driver:^1.6.1 -W --dev
./composer.json has been updated
Running composer update drupal/drupal-extension drupal/core-dev friends-of-behat/mink-browserkit-driver --with-all-dependencies
Gathering patches for root package.
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/drupal-extension v5.0.0alpha1 as v4.3.1 -> satisfiable by drupal/drupal-extension[v5.0.0alpha1].
- Only one of these can be installed: behat/mink-browserkit-driver[v2.1.0, 2.x-dev], friends-of-behat/mink-browserkit-driver[v1.6.1]. friends-of-behat/mink-browserkit-driver replaces behat/mink-browserkit-driver and thus cannot coexist with it.
- drupal/drupal-extension v5.0.0alpha1 requires behat/mink-browserkit-driver ^2.1.0 -> satisfiable by behat/mink-browserkit-driver[v2.1.0, 2.x-dev].
- Root composer.json requires friends-of-behat/mink-browserkit-driver ^1.6.1 -> satisfiable by friends-of-behat/mink-browserkit-driver[v1.6.1].
Proposed resolution
Require "behat/mink-browserkit-driver": "^2.1.0", instead of friends-of-behat/mink-browserkit-driver.
Issue fork drupal-3343911
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
eduardo morales albertiComment #4
berdirAs I said in the drupalextension issue, I can pretty much guarantee you that core will not make this change in Drupal 9.5 anymore, this is not a change that will happen in a patch release.
Comment #5
eduardo morales albertiBerdir, this is not a breaking change and removes a deprecated package, and the change is already on Drupal 10, so we can try, maybe it can be merged because is an easy change to apply and with no risk.
Comment #6
smustgrave commentedBrought this up in the #needs-review-queue-initative channel with @catch and @berdir here's the link https://drupal.slack.com/archives/C04CHUX484T/p1678384475044219
And consensus was to leave as is for 9.5.x.