drupal/core 10.0.x-dev requires composer >=2.3.5 -> found composer but it does not match the constraint.Īnd the message for people trying to use Composer satisfiable by drupal/core. Root composer.json requires drupal/core 10.0.x-dev -> satisfiable by drupal/core. Then, the message for people trying to use Composer between 2.2.0 and 2.3.4 (for example, 2.2.18) would be: Problem 1 Just for clarity, if we did: "composer": ">=2.3.5", Should we open a separate issue for that in order to discuss (and commit?) that prior to making a decision on 2.3.5? In order to provide a friendlier message for people on Composer <2.2.Įven if we decide not to enforce 2.3.5, then per #3, I think we should at least commit a 2.2 requirement, as in: "composer-plugin-api": "^2.2", Per the info in that Composer docs page, because the "composer" package is a new feature of 2.2.0, if we went this route, they recommend doing: "composer": ">=2.3.5", ![]() It wouldn't change the error message in #6 much though: it would just replace "composer-plugin-api" with "composer". , which means, we could replace the above with: "composer": ">=2.3.5", I don't know why I didn't see this before, but I just now found. Meaning, #3 would not enforce 2.3.5 specifically, only 2.3.0 or higher. Note that even though Composer 2.3.5 exists, the plugin API hasn't changed since 2.3.0, so 2.3.0 is the latest plugin API that we can require for now. Proposed resolutionĭiscuss whether to present warnings or errors on old Composer versions outside core development workflows. Such changes are better implemented with new major releases.Ĭomposer 2.3 drops support for PHP <=7.1. It would be valuable for site owners to know that they should be using at least Composer 2.3.5, so that Autoupdates' requirement does surprise them. No warnings or errors are presented if the user tries to build a Drupal site using Composer 2.3.4 for (e.g.): composer create-project "d10-recommended-project" ![]() The current requirement only affects development of Drupal core itself. This is the version required at runtime by Automatic Updates. ![]() In #3215870: Require Composer 2.3.5 for developing Drupal 10 core, we've required at least Composer 2.3.5 for core development, but not for Drupal site development.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |