-
-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when tried to update to 5.0.0 alpha, conflicts with drupal/core-dev #637
Comments
Your proposed change would instead conflict with D10: https://github.com/drupal/core-dev/blob/10.0.x/composer.json. Do you really need drupal/core-dev? Are you running phpunit browser tests in the same environment? If not, you could drop the core-dev dependency and only require what you actually need. |
Hmm, it is fairly common I think to run phpunit tests (based on core's base classes) in the same environments as Behat, so ideally we'd fix this conflict with |
We could be compatible with two different versions of the same package, but we're talking about two different packages here, I don't think that's possible. You can still explicitly require phpunit and other dependencies, just not the drupal/core-dev wrapper. |
I think friends-of-behat/mink-browserkit-driver was forked to be compatible with PHP 8 and higher versions of Symfony, it could be deprecated, and should be changed on core-dev. |
Created PR on core-dev https://github.com/drupal/core-dev/pull/4/files, sorry for the noise. |
It looks like from the comment on that PR you'll need to open an issue on drupal.org since the github repo is auto-generated. |
Core isn't going to change this, it will not introduce possibly breaking changes in Drupal 9. The main point of drupal/core-dev is to be able to reliable run the same phpunit tests that core (and contrib) contains. If you can't update to D10 yet then the only option is to not require drupal/core-dev but rely on the desired dependencies and versions directly. Might be worth mentioning this in the readme/release notes of 5.x |
If the |
That's exactly what core did, but only in D10, as it was apparently considered a BC breaking change or maybe just not important enough. I wasn't involved in the issue and don't know the exact reason. But I can guarantee you that this will not be changed in a 9.5 patch release, so we just have to live with it. |
ah, ok, I misunderstood. |
Created issue on core https://www.drupal.org/project/drupal/issues/3343911 |
I'd like to summarise the above (after gathering information from the multiple sources):
@Berdir |
There is no next minor Drupal 9 version, Drupal 9 is EOL in December. Either stick to using 3.x on Drupal 9 or don't use drupal/core-dev. And the medium/long-term fix that you have to do anyway this year is upgrading to Drupal 10. |
Problem
Could not update to 5.0.0 alpha because of conflicts with drupal/core-dev. I required the 5.0.0 alpha because I need to remove the goutte-drive requirement to use Guzzle 7 fixed on commit 2ab66a7
Possible Solution
I am not sure if this is the problem, drupalextension and core-dev require the same projects different repositories:
https://github.com/jhedstrom/drupalextension/blob/v5.0.0alpha1/composer.json#L27
https://github.com/drupal/core-dev/blob/9.5.3/composer.json#L15
Error:
The text was updated successfully, but these errors were encountered: