laravel-shift / blueprint

A code generation tool for Laravel developers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to install

opened this issue · comments

  • Laravel Version: 9.46.0
  • PHP Version: 8.0
  • Blueprint Version: 2.4.0
  • Platform: Mac

Issue:

composer require --dev laravel-shift/blueprint
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update laravel-shift/blueprint
Loading composer repositories with package information
Updating dependencies                                 
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravel-shift/blueprint[0.1, ..., 0.5.1, 1.0.0, ..., v1.3.1] require symfony/yaml ^4.3 -> found symfony/yaml[v4.3.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v6.0.17 (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.
    - laravel-shift/blueprint[dev-fix-207, v1.4.0, ..., v1.20.1] require symfony/yaml ^4.3|^5.0 -> found symfony/yaml[v4.3.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev] but the package is fixed to v6.0.17 (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.
    - laravel-shift/blueprint[v1.20.2, ..., v1.25.0] require illuminate/console ^6.0 || ^7.0 || ^8.0 -> found illuminate/console[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravel-shift/blueprint[v2.0.0, ..., v2.2.0] require illuminate/console ^8.0 -> found illuminate/console[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravel-shift/blueprint[dev-master, v2.3.0, ..., v2.4.0] require doctrine/dbal ^3.3 -> found doctrine/dbal[3.3.0, ..., 3.6.x-dev] but it conflicts with your root composer.json require (^2.9).
    - Root composer.json requires laravel-shift/blueprint * -> satisfiable by laravel-shift/blueprint[dev-master, dev-fix-207, 0.1, ..., 0.5.1, 1.0.0, ..., v1.25.0, v2.0.0, ..., v2.4.0, 9999999-dev].

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 laravel-shift/blueprint:*" to figure out if any version is installable, or "composer require laravel-shift/blueprint:^2.1" if you know which you need.

draft.yaml:

# PLEASE PASTE THE DRAFT FILE WHICH REPRODUCES THE ISSUE HERE...

It appears a breaking change has been introduced somewhere. Looks like Laravel is locking the yaml package at v6.0.17 and blueprint needs v4.4. Anyone else getting this?

laravel-shift/blueprint[dev-master, v2.3.0, ..., v2.4.0] require doctrine/dbal ^3.3 -> found doctrine/dbal[3.3.0, ..., 3.6.x-dev] but it conflicts with your root composer.json require (^2.9).

Try bumping or removing your doctrine/dbal requirement.

Thank you @jasonmccreary this was the fix.

Looks like Laravel does allow a version of 2.x. So I may tweak that.