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

Sync lock and json to update PSR/Simple-Cache dependancy lock #55

Open
digitall-it opened this issue Nov 18, 2022 · 3 comments
Open

Sync lock and json to update PSR/Simple-Cache dependancy lock #55

digitall-it opened this issue Nov 18, 2022 · 3 comments

Comments

@digitall-it
Copy link

While issuing

composer require konnco/filament-import

I received this message

Problem 1
    - Root composer.json requires konnco/filament-import ^1.4 -> satisfiable by konnco/filament-import[1.4.0].
    - konnco/filament-import 1.4.0 requires psr/simple-cache ^2.0 -> found psr/simple-cache[2.0.0, 2.x-dev] but the package is fixed to 3.0.0 (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 konnco/filament-import:*" to figure out if any version is installable, or "composer require konnco/filament-import:^2.1" if you know which you need.

composer-lock-and-json.zip

@HMDagher
Copy link

try the following: composer require psr/simple-cache:^2.0 konnco/filament-import

@digitall-it
Copy link
Author

That actually allowed me to install it, but it also required downgrading PSR/simple-cache to v2. Is the package compatible with v3?

composer require psr/simple-cache:^2.0 konnco/filament-import
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^1.4 for konnco/filament-import
./composer.json has been updated
Running composer update psr/simple-cache konnco/filament-import
Loading composer repositories with package information
Updating dependencies
Lock file operations: 8 installs, 1 update, 0 removals
  - Locking ezyang/htmlpurifier (v4.16.0)
  - Locking konnco/filament-import (1.4.0)
  - Locking maatwebsite/excel (3.1.44)
  - Locking maennchen/zipstream-php (2.2.1)
  - Locking markbaker/complex (3.0.1)
  - Locking markbaker/matrix (3.0.0)
  - Locking myclabs/php-enum (1.8.4)
  - Locking phpoffice/phpspreadsheet (1.25.2)
  - Downgrading psr/simple-cache (3.0.0 => 2.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 8 installs, 1 update, 0 removals
  - Downloading psr/simple-cache (2.0.0)
  - Downloading markbaker/matrix (3.0.0)
  - Downloading markbaker/complex (3.0.1)
  - Downloading myclabs/php-enum (1.8.4)
  - Downloading maennchen/zipstream-php (2.2.1)
  - Downloading ezyang/htmlpurifier (v4.16.0)
  - Downloading phpoffice/phpspreadsheet (1.25.2)
  - Downloading maatwebsite/excel (3.1.44)
  - Downloading konnco/filament-import (1.4.0)
  - Downgrading psr/simple-cache (3.0.0 => 2.0.0): Extracting archive
  - Installing markbaker/matrix (3.0.0): Extracting archive
  - Installing markbaker/complex (3.0.1): Extracting archive
  - Installing myclabs/php-enum (1.8.4): Extracting archive
  - Installing maennchen/zipstream-php (2.2.1): Extracting archive
  - Installing ezyang/htmlpurifier (v4.16.0): Extracting archive
  - Installing phpoffice/phpspreadsheet (1.25.2): Extracting archive
  - Installing maatwebsite/excel (3.1.44): Extracting archive
  - Installing konnco/filament-import (1.4.0): Extracting archive

@Sheldon-Knight
Copy link

Sheldon-Knight commented Dec 2, 2022

i have done this

composer require konnco/filament-import -W

lol it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants