Drupal 10 Symphony 6 Compatibility

Created on 27 September 2023, over 1 year ago
Updated 6 October 2023, over 1 year ago

Problem/Motivation

When installing this module under Drupal 10, an error appears:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires yalesites-org/yalesites_profile * -> satisfiable by yalesites-org/yalesites_profile[dev-YALB-1186--d10, dev-develop].
    - drupal/core-dev[10.1.0-beta1, ..., 10.1.x-dev] require symfony/dom-crawler ^6.3 -> satisfiable by symfony/dom-crawler[v6.3.0-BETA1, ..., 6.4.x-dev].
    - drupal/core-dev[10.0.0-rc1, ..., 10.1.0-alpha1] require symfony/dom-crawler ^6.2 -> satisfiable by symfony/dom-crawler[v6.2.0-BETA1, ..., 6.4.x-dev].
    - drupal/core-dev[10.0.0-alpha6, ..., 10.0.0-beta2] require symfony/dom-crawler ^6.1 -> satisfiable by symfony/dom-crawler[v6.1.0-BETA1, ..., 6.4.x-dev].
    - Conclusion: don't install symfony/dom-crawler v6.3.4 (conflict analysis result)
    - yalesites-org/yalesites_profile[dev-YALB-1186--d10, dev-develop] require drupal/search_api_html_element_filter 1.0.3 -> satisfiable by drupal/search_api_html_element_filter[1.0.3].
    - drupal/core-dev[10.0.0-alpha2, ..., 10.0.0-alpha5] require symfony/dom-crawler ^6.0 -> satisfiable by symfony/dom-crawler[v6.0.0-BETA1, ..., 6.4.x-dev].
    - Conclusion: don't install symfony/dom-crawler v6.0.19 (conflict analysis result)
    - drupal/search_api_html_element_filter 1.0.3 requires symfony/css-selector ^2 -> satisfiable by symfony/css-selector[2.0.4, ..., 2.8.x-dev].
    - You can only install one version of a package, so only one of these can be installed: symfony/css-selector[2.0.4, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev, v6.0.0-BETA1, ..., 6.4.x-dev, 7.0.x-dev].
    - drupal/core-dev 10.0.0-alpha1 requires symfony/css-selector ^5.4 -> satisfiable by symfony/css-selector[v5.4.0-BETA1, ..., 5.4.x-dev].
    - Root composer.json requires drupal/core-dev ^10 -> satisfiable by drupal/core-dev[10.0.0-alpha1, ..., 10.1.x-dev].

Steps to reproduce

For Drupal 10 installation, run the following composer command:

composer require 'drupal/search_api_html_element_filter:^1.0'

Proposed resolution

It seems the issue could be either the dependencies in this module composer.json file pointing to:

"symfony/dom-crawler": "^4",
"symfony/css-selector": "^2",

And upgrading those dependencies to the Symphony version 6 could fix this.

Remaining tasks

This issue is being opened to test a fork of this module to change the Symfony versions. If this works, we can then create a MR for this. Patching doesn't work because Composer wants to deal with dependencies prior to applying patches.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States codechefmarc

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024