Valet-plus: Bug: valet-plus incompatible with latest laravel/installer

Created on 4 Jan 2020  路  6Comments  路  Source: weprovide/valet-plus

  • [x] I've checked the issue queue and could not find anything similar to my bug.
  • [x] I'm on the latest version of valet-plus (valet --version): 1.0.29-9-g2705275
  • [x] I've run valet fix and valet install after updating and before submitting my issue/feature.

What is the problem?
composer global require laravel/installer fails due to conflict with symfony/console

What was supposed to happen?
Laravel installer should've installed

What actually happened?
```% composer global require laravel/installer
Changed current directory to /Users/mez/.composer
1/1: http://repo.packagist.org/p/provider-latest$f9670ed20cf2011e9db99bb9a508e9558cf52eef2af8dd168a541ae902085bc3.json
Finished: success: 1, skipped: 0, failure: 0, total: 1
Using version ^3.0 for laravel/installer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Conclusion: don't install laravel/installer v3.0.1
- Conclusion: remove symfony/console v3.4.36
- Installation request for laravel/installer ^3.0 -> satisfiable by laravel/installer[v3.0.0, v3.0.1].
- Conclusion: don't install symfony/console v3.4.36
- laravel/installer v3.0.0 requires symfony/console ^4.0|^5.0 -> satisfiable by symfony/console[v4.0.0, v4.0.1, v4.0.10, v4.0.11, v4.0.12, v4.0.13, v4.0.14, v4.0.15, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9, v4.2.0, v4.2.1, v4.2.10, v4.2.11, v4.2.12, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9, v4.3.0, v4.3.1, v4.3.2, v4.3.3, v4.3.4, v4.3.5, v4.3.6, v4.3.7, v4.3.8, v4.3.9, v4.4.0, v4.4.1, v4.4.2, v5.0.0, v5.0.1, v5.0.2].
- Can only install one of: symfony/console[v4.0.0, v3.4.36].
- Can only install one of: symfony/console[v4.0.1, v3.4.36].
- Can only install one of: symfony/console[v4.0.10, v3.4.36].
- Can only install one of: symfony/console[v4.0.11, v3.4.36].
- Can only install one of: symfony/console[v4.0.12, v3.4.36].
- Can only install one of: symfony/console[v4.0.13, v3.4.36].
- Can only install one of: symfony/console[v4.0.14, v3.4.36].
- Can only install one of: symfony/console[v4.0.15, v3.4.36].
- Can only install one of: symfony/console[v4.0.2, v3.4.36].
- Can only install one of: symfony/console[v4.0.3, v3.4.36].
- Can only install one of: symfony/console[v4.0.4, v3.4.36].
- Can only install one of: symfony/console[v4.0.5, v3.4.36].
- Can only install one of: symfony/console[v4.0.6, v3.4.36].
- Can only install one of: symfony/console[v4.0.7, v3.4.36].
- Can only install one of: symfony/console[v4.0.8, v3.4.36].
- Can only install one of: symfony/console[v4.0.9, v3.4.36].
- Can only install one of: symfony/console[v4.1.0, v3.4.36].
- Can only install one of: symfony/console[v4.1.1, v3.4.36].
- Can only install one of: symfony/console[v4.1.10, v3.4.36].
- Can only install one of: symfony/console[v4.1.11, v3.4.36].
- Can only install one of: symfony/console[v4.1.12, v3.4.36].
- Can only install one of: symfony/console[v4.1.2, v3.4.36].
- Can only install one of: symfony/console[v4.1.3, v3.4.36].
- Can only install one of: symfony/console[v4.1.4, v3.4.36].
- Can only install one of: symfony/console[v4.1.5, v3.4.36].
- Can only install one of: symfony/console[v4.1.6, v3.4.36].
- Can only install one of: symfony/console[v4.1.7, v3.4.36].
- Can only install one of: symfony/console[v4.1.8, v3.4.36].
- Can only install one of: symfony/console[v4.1.9, v3.4.36].
- Can only install one of: symfony/console[v4.2.0, v3.4.36].
- Can only install one of: symfony/console[v4.2.1, v3.4.36].
- Can only install one of: symfony/console[v4.2.10, v3.4.36].
- Can only install one of: symfony/console[v4.2.11, v3.4.36].
- Can only install one of: symfony/console[v4.2.12, v3.4.36].
- Can only install one of: symfony/console[v4.2.2, v3.4.36].
- Can only install one of: symfony/console[v4.2.3, v3.4.36].
- Can only install one of: symfony/console[v4.2.4, v3.4.36].
- Can only install one of: symfony/console[v4.2.5, v3.4.36].
- Can only install one of: symfony/console[v4.2.6, v3.4.36].
- Can only install one of: symfony/console[v4.2.7, v3.4.36].
- Can only install one of: symfony/console[v4.2.8, v3.4.36].
- Can only install one of: symfony/console[v4.2.9, v3.4.36].
- Can only install one of: symfony/console[v4.3.0, v3.4.36].
- Can only install one of: symfony/console[v4.3.1, v3.4.36].
- Can only install one of: symfony/console[v4.3.2, v3.4.36].
- Can only install one of: symfony/console[v4.3.3, v3.4.36].
- Can only install one of: symfony/console[v4.3.4, v3.4.36].
- Can only install one of: symfony/console[v4.3.5, v3.4.36].
- Can only install one of: symfony/console[v4.3.6, v3.4.36].
- Can only install one of: symfony/console[v4.3.7, v3.4.36].
- Can only install one of: symfony/console[v4.3.8, v3.4.36].
- Can only install one of: symfony/console[v4.3.9, v3.4.36].
- Can only install one of: symfony/console[v4.4.0, v3.4.36].
- Can only install one of: symfony/console[v4.4.1, v3.4.36].
- Can only install one of: symfony/console[v4.4.2, v3.4.36].
- Can only install one of: symfony/console[v5.0.0, v3.4.36].
- Can only install one of: symfony/console[v5.0.1, v3.4.36].
- Can only install one of: symfony/console[v5.0.2, v3.4.36].
- Installation request for symfony/console (locked at v3.4.36) -> satisfiable by symfony/console[v3.4.36].

Installation failed, reverting ./composer.json to its original content.
```
How to reproduce this?

  • Install valet plus
  • Attempt to install laravel/installer

What is the solution?
Update symfony/console

3.x Bug MAJOR

Most helpful comment

A temporary solution that worked for me was to use https://github.com/consolidation/cgr - as CGR avoids conflicts between global dependencies.

$ composer global require consolidation/cgr
$ cgr weprovide/valet-plus

All 6 comments

The lowest version of symfony/console that is required by laravel/installerrequired PHP 7.1.3

This is not fixable without updating the minimum version of PHP for valet-plus :(

This is also a problem the other way round leaving me unable to install valet plus:

- symfony/process v3.2.6 conflicts with symfony/console[v4.2.12].

How to reproduce this?

  • Have laravel/installer installed globally
  • Attempt to install Valet Plus globally

A temporary solution that worked for me was to use https://github.com/consolidation/cgr - as CGR avoids conflicts between global dependencies.

$ composer global require consolidation/cgr
$ cgr weprovide/valet-plus

Nice, I wasn't aware of that project :)

I have the same problem. It seems to be because of the mnapoli/silly@~1.5.0 requirement. Valet plus should require mnapoli/silly@~1.0 ( or mnapoli/silly@~1.7.0 )

@Mezzle I'll tag this as Major and for 3.x since I don't see us solving this in 2.x with the PHP 5.6 and 7.0 support.

Also please note that if you install valet-plus with cgr before installing it regularly. The chances are very high you'll run into permission issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SnowCommerceBrand picture SnowCommerceBrand  路  4Comments

eclectic-coding picture eclectic-coding  路  4Comments

Serializator picture Serializator  路  4Comments

rdorck picture rdorck  路  3Comments

guarinogabriel picture guarinogabriel  路  4Comments