`composer require 'drupal/webform_geoip_restriction:^1.1'` creates composer dependency death.

Created on 29 June 2024, 6 months ago
Updated 21 July 2024, 5 months ago

Problem/Motivation

Seeing there's a new version of the module, I run

composer require 'drupal/webform_geoip_restriction:^1.1'

And receive this message.

  Problem 1
    - Conclusion: don't install drupal/webform_geoip_restriction 1.1.2 (conflict analysis result)
    - Conclusion: don't install drupal/webform_geoip_restriction 1.1.3 (conflict analysis result)
    - geoip2/geoip2 v2.2.0-alpha1 requires maxmind-ws/web-service-common dev-master -> could not be found in any version, there may be a typo in the package name.
    - drupal/geoip dev-3.0.x requires geoip2/geoip2 ~2.0 -> satisfiable by geoip2/geoip2[v2.0.0, ..., v2.13.0].
    - You can only install one version of a package, so only one of these can be installed: geoip2/geoip2[v2.0.0, ..., v2.13.0, v3.0.0-alpha1, v3.0.0-alpha2, v3.0.0-alpha3, v3.0.0].
    - drupal/webform_geoip_restriction dev-1.1.x requires geoip2/geoip2 ^3.0 -> satisfiable by geoip2/geoip2[v3.0.0-alpha1, v3.0.0-alpha2, v3.0.0-alpha3, v3.0.0].
    - Conclusion: don't install one of geoip2/geoip2[v3.0.0], drupal/geoip[dev-3.0.x] (conflict analysis result)
    - drupal/geoip 3.0.x-dev is an alias of drupal/geoip dev-3.0.x and thus requires it to be installed too.
    - drupal/webform_geoip_restriction dev-1.1.x requires drupal/geoip 3.0.x-dev -> satisfiable by drupal/geoip[3.0.x-dev (alias of dev-3.0.x)].
    - drupal/webform_geoip_restriction 1.1.x-dev is an alias of drupal/webform_geoip_restriction dev-1.1.x and thus requires it to be installed too.
    - Root composer.json requires drupal/webform_geoip_restriction ^1.1 -> satisfiable by drupal/webform_geoip_restriction[1.1.0, ..., 1.1.x-dev (alias of dev-1.1.x)].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

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

I ran the command again with the -W flag, and still received this message.

I attempted to update the conflicting modules one at a time, based on this modules composer require statements, and equally ended up in a composer dependency mess.

---

This is coming from trying to upgrade from "drupal/webform_geoip_restriction": "^1.0",

---

I manually `composer removed...` all of the modules that seemed to be part of the dependency chain... and still got stuck in a similar spot.

Anyone know how to get past this?

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States alphex Atlanta, GA USA

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

Comments & Activities

Production build 0.71.5 2024