Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install laminas-cache on a fresh mvc installation #343

Open
Bro3x opened this issue Oct 28, 2024 · 1 comment
Open

Can't install laminas-cache on a fresh mvc installation #343

Bro3x opened this issue Oct 28, 2024 · 1 comment
Labels
Bug Something isn't working

Comments

@Bro3x
Copy link

Bro3x commented Oct 28, 2024

Composer fails with Version mismatch.

composer require laminas/laminas-mvc
Using version ^3.7 for laminas/laminas-mvc
./composer.json has been updated
Running composer update laminas/laminas-mvc
Loading composer repositories with package information
In Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate
Updating dependencies
Lock file operations: 19 installs, 0 updates, 0 removals
  - Locking brick/varexporter (0.5.0)
  - Locking laminas/laminas-config (3.9.0)
  - Locking laminas/laminas-escaper (2.14.0)
  - Locking laminas/laminas-eventmanager (3.13.1)
  - Locking laminas/laminas-http (2.20.0)
  - Locking laminas/laminas-json (3.7.0)
  - Locking laminas/laminas-loader (2.11.0)
  - Locking laminas/laminas-modulemanager (2.16.0)
  - Locking laminas/laminas-mvc (3.7.0)
  - Locking laminas/laminas-router (3.14.0)
  - Locking laminas/laminas-servicemanager (3.22.1)
  - Locking laminas/laminas-stdlib (3.19.0)
  - Locking laminas/laminas-uri (2.12.0)
  - Locking laminas/laminas-validator (2.64.1)
  - Locking laminas/laminas-view (2.35.0)
  - Locking nikic/php-parser (v5.3.1)
  - Locking psr/container (1.1.2)
  - Locking psr/http-message (2.0)
  - Locking webimpress/safe-writer (2.2.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 19 installs, 0 updates, 0 removals
  - Downloading psr/container (1.1.2)
  - Downloading laminas/laminas-config (3.9.0)
  - Downloading laminas/laminas-servicemanager (3.22.1)
  - Downloading psr/http-message (2.0)
  - Downloading webimpress/safe-writer (2.2.0)
  - Downloading laminas/laminas-mvc (3.7.0)
  - Installing nikic/php-parser (v5.3.1): Extracting archive
  - Installing brick/varexporter (0.5.0): Extracting archive
  - Installing psr/container (1.1.2): Extracting archive
  - Installing laminas/laminas-stdlib (3.19.0): Extracting archive
  - Installing laminas/laminas-config (3.9.0): Extracting archive
  - Installing laminas/laminas-loader (2.11.0): Extracting archive
  - Installing laminas/laminas-servicemanager (3.22.1): Extracting archive
  - Installing laminas/laminas-json (3.7.0): Extracting archive
  - Installing laminas/laminas-eventmanager (3.13.1): Extracting archive
  - Installing laminas/laminas-escaper (2.14.0): Extracting archive
  - Installing laminas/laminas-view (2.35.0): Extracting archive
  - Installing psr/http-message (2.0): Extracting archive
  - Installing laminas/laminas-validator (2.64.1): Extracting archive
  - Installing laminas/laminas-uri (2.12.0): Extracting archive
  - Installing laminas/laminas-http (2.20.0): Extracting archive
  - Installing laminas/laminas-router (3.14.0): Extracting archive
  - Installing webimpress/safe-writer (2.2.0): Extracting archive
  - Installing laminas/laminas-modulemanager (2.16.0): Extracting archive
  - Installing laminas/laminas-mvc (3.7.0): Extracting archive
composer require laminas/laminas-cache
Using version ^4.0 for laminas/laminas-cache
./composer.json has been updated
Running composer update laminas/laminas-cache
Loading composer repositories with package information
In Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires laminas/laminas-cache ^4.0 -> satisfiable by laminas/laminas-cache[4.0.0, ..., 4.0.4].
    - laminas/laminas-cache[4.0.0, ..., 4.0.4] require laminas/laminas-servicemanager ^4.1 -> found laminas/laminas-servicemanager[4.1.0, 4.2.0, 4.2.1] but the package is fixed to 3.22.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require laminas/laminas-cache:*" to figure out if any version is installable, or "composer require laminas/laminas-cache:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

How to reproduce

see above

Expected behavior

Installing the appropriate laminas cache version

@Bro3x Bro3x added the Bug Something isn't working label Oct 28, 2024
@gsteel
Copy link
Member

gsteel commented Oct 28, 2024

Cache v4 uses service manager v4 which conflicts with mvc requirements of service manager v3.

This isn't a bug, mvc simply does not support the latest version of service manager yet.

You'll have to install cache v3 for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants