Support a smoother Smart IP module compatibility for Drupal 10 by switching Smart IP from ~3.0 || ~4.0 to ^3 || ^4

Created on 25 October 2023, about 1 year ago
Updated 10 March 2024, 9 months ago

Problem/Motivation

The current available smart ip module for Drupal 10 is 5.0.0-alpha3

and when trying to use composer require 'drupal/smart_ip_locale:^2.0' it throws the following error:

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

  Problem 1
    - drupal/smart_ip_locale[2.0.0, ..., 2.0.x-dev] require drupal/smart_ip ~3.0 || ~4.0 -> found drupal/smart_ip[3.0.0-alpha1, ..., 3.10.0, 4.0.0, 4.1.0, 4.2.0] but it conflicts with your root composer.json require (^5.0@alpha).
    - Root composer.json requires drupal/smart_ip_locale ^2.0 -> satisfiable by drupal/smart_ip_locale[2.0.0, 2.0.1, 2.0.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
composer [require drupal/smart_ip_locale:^2.0] failed, composer command failed: exit status 2. stderr=

It would be
great if you could provide the smart_ip alpha version support as well for
Drupal 10 in the smart ip locale module.

Proposed resolution

  • Change drupal/smart_ip to ^3 || ^4 in the composer.json file.

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ✅ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ✅ Code review by maintainers
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Release notes snippet
  • ✅ Release smart_ip_locale-2.0.2

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3396698 by Gaurav_drupal : Support a smoother Smart IP module compatibility for Drupal 10 by switching Smart IP from ~3.0 || ~4.0 to ^3 || ^4
📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India Gaurav_drupal Indore

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

Comments & Activities

Production build 0.71.5 2024