Incorrect core_version_requirement for 4.x release.

Created on 4 December 2023, 7 months ago
Updated 5 December 2023, 7 months ago

Problem/Motivation

The Geocoder module's core_version_requirement is added as ^9 || ^10. However, the module fails to download when Drupal Core is < 9.4.x due to the module dependency on php-http/guzzle7-adapter. This package necessitates guzzlehttp/guzzle:^7.0, and compatibility with Guzzle 7 was introduced in Drupal Core version >=9.4.x.

Steps to reproduce

// Download Drupal core < 9.4.x. Ex:
$ composer create-project drupal/recommended-project:~9.0.0 drupal && cd drupal

// Download the 4.x release of geocoder module.
$ composer require drupal/geocoder:^4 

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

  Problem 1
    - drupal/geocoder[4.0.0, ..., 4.3.0] require php-http/guzzle7-adapter ^1.1.0 -> satisfiable by php-http/guzzle7-adapter[1.x-dev].
    - drupal/geocoder[4.1.0, ..., 4.x-dev] require php-http/guzzle7-adapter ^1.0 -> satisfiable by php-http/guzzle7-adapter[1.0.0, 1.x-dev].
    - php-http/guzzle7-adapter[1.0.0, ..., 1.x-dev] require guzzlehttp/guzzle ^7.0 -> found guzzlehttp/guzzle[7.0.0-beta.1, ..., 7.9.x-dev] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires drupal/geocoder ^4 -> satisfiable by drupal/geocoder[4.0.0, ..., 4.x-dev].

$ composer why guzzlehttp/guzzle
drupal/core             9.0.14 requires guzzlehttp/guzzle (^6.5.2) 
drupal/core-recommended 9.0.14 requires guzzlehttp/guzzle (6.5.4) 

Proposed resolution

Update the core_version_requirement in geocoder.info.yml to
core_version_requirement: ^9.4 || ^10

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇮🇳India vishalkhode

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024