tinker icon indicating copy to clipboard operation
tinker copied to clipboard

but it conflicts with another require ... but it conflicts with another require

Open MrAbaddon opened this issue 4 years ago • 8 comments

PHP 7.3.21 Laravel 8.17.2

ways to reproduce:

composer create-project --prefer-dist laravel/laravel my-project composer require botman/tinker

I get error:

$ composer require botman/tinker
Using version ^1.2 for botman/tinker
./composer.json has been updated
Running composer update botman/tinker
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires botman/tinker ^1.2 -> satisfiable by botman/tinker[1.2.0].
    - botman/tinker 1.2.0 requires illuminate/support ~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0 || ^6.0 || ^7.0 -> found illuminate/support[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but it conflicts with another require.


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

Thanks in advance for help.

MrAbaddon avatar Dec 04 '20 00:12 MrAbaddon

someone sent a PR to add support for Laravel 8, but no one created the tag. Composer keeps downloading version 1.2 which is only compatible with Laravel <= 7 and that's why you get that error.

TavoNiievez avatar Dec 05 '20 13:12 TavoNiievez

@TavoNiievez I'm trying to install it manually then. I've cloned the repo inside vendor/botman folder. But in artisan there is no botman::tinker How can I add it manually? Thanks for helping.

MrAbaddon avatar Dec 05 '20 19:12 MrAbaddon

what i did was fork the project, create the 1.3 tag on the fork, and add this to my composer.json:

    "require": {
        "botman/tinker": "^1.3",
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/YourUserName/tinker"
        }
    ],

then you can do a composer update normally.

TavoNiievez avatar Dec 05 '20 20:12 TavoNiievez

@TavoNiievez your fix works, thanks so much. It would be nice if the tag is sorted @mpociot

eugenefvdm avatar Mar 06 '21 12:03 eugenefvdm

@TavoNiievez works for me too. Thanks.

sinsotec avatar Apr 08 '21 17:04 sinsotec

@mpociot any chance of getting a new release tagged to make the Laravel 8 support available?

claytonrcarter avatar Jun 21 '21 10:06 claytonrcarter

I know it is late but you could do:

composer require botman/tinker:dev-master

Adding master fixes issue

nurmuhammet-ali avatar Jun 30 '21 09:06 nurmuhammet-ali

I know it is late but you could do:

composer require botman/tinker:dev-master

Adding master fixes issue

Not late for me, thank you!

darkrevenger avatar Mar 14 '22 19:03 darkrevenger