Problem/Motivation

Adding module purge_akamai_optimizer to the project throwing the error,

Problem 1
- drupal/purge_akamai_optimizer[dev-1.x, 1.0.0, ..., 1.1.0] require drupal/akamai ^3.0@alpha -> found drupal/akamai[dev-3.x, 3.0.0-alpha1, ..., 3.x-dev (alias of dev-3.x)] but it does not match your minimum-stability.
- drupal/purge_akamai_optimizer 1.x-dev is an alias of drupal/purge_akamai_optimizer dev-1.x and thus requires it to be installed too.
- Root composer.json requires drupal/purge_akamai_optimizer * -> satisfiable by drupal/purge_akamai_optimizer[dev-1.x, 1.0.0, 1.1.0, 1.x-dev (alias of dev-1.x)].

Issue is due to the module drupal/akamai is currently have latest version 5.0.0-rc2 for drupal 10.
But, Inside the composer.json minimum required version for the drupal/akamai is set to 3.0@alpha, which is not satisfying the minimum compatibility version requirement by composer and resulting into the error.

Steps to reproduce

Basic requirement is to have drupal core version should be ^10.

  • Run "composer require "drupal/purge_akamai_optimizer" -W"

Proposed resolution

As a part of this fix, You should have to fix all the Drupal 10 compatibility related issues, then the composer.json file have the requirement on line no 11 should be updated,

current requirement:
"drupal/akamai": "^3.0@alpha"

Should be:
"drupal/akamai": "^5.0"

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

smitghelani created an issue. See original summary.

smitghelani’s picture

Issue summary: View changes
smitghelani’s picture

StatusFileSize
new4.26 KB

Patch is only compatible with Drupal 10 branch

smitghelani’s picture

Along side this issue, this #3 patch also includes resolution of below mentioned issues:

https://www.drupal.org/project/purge_akamai_optimizer/issues/3261821
https://www.drupal.org/project/purge_akamai_optimizer/issues/3289188

Also, some minor fixes that required to be applied.

guptahemant’s picture

Version: 1.1.0 » 2.x-dev
Status: Active » Needs review

Switching to 2.x branch, and reviewing the patch

guptahemant’s picture

Status: Needs review » Fixed

Patch looks good, committed on 2.x branch, and a 2.0.0 release has been created, Thanks for the contribution.

Status: Fixed » Closed (fixed)

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