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

Comments

Gaurav_drupal created an issue. See original summary.

rajab natshah’s picture

rajab natshah’s picture

Title: Smart IP module compatibility issue for Drupal 10 » Support even a smoother Smart IP module compatibility issue for Drupal 10 by switching Smart IP from ~3.0 || ~4.0 to ^3 || ^4
Version: 2.0.0 » 2.0.x-dev
rajab natshah’s picture

Title: Support even a smoother Smart IP module compatibility issue for Drupal 10 by switching Smart IP from ~3.0 || ~4.0 to ^3 || ^4 » Support a smoother Smart IP module compatibility for Drupal 10 by switching Smart IP from ~3.0 || ~4.0 to ^3 || ^4
Issue summary: View changes

rajab natshah’s picture

Issue summary: View changes
Issue tags: +smart_ip_locale-2.0.2
rajab natshah’s picture

Status: Active » Needs review
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rgnyldz’s picture

Priority: Normal » Major

Smart ip is on 5.0.0-alpha3 now. So this module cannot be installed.