botman / tinker

Gives your Laravel chatbot the ability to try your chatbot in your local terminal.
99 stars 58 forks source link

but it conflicts with another require ... but it conflicts with another require #19

Open MrAbaddon opened 3 years ago

MrAbaddon commented 3 years ago

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.

TavoNiievez commented 3 years ago

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.

MrAbaddon commented 3 years ago

@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.

TavoNiievez commented 3 years ago

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.

eugenefvdm commented 3 years ago

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

sinsotec commented 3 years ago

@TavoNiievez works for me too. Thanks.

claytonrcarter commented 3 years ago

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

nurmuhammet-ali commented 3 years ago

I know it is late but you could do:

composer require botman/tinker:dev-master

Adding master fixes issue

darkrevenger commented 2 years ago

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!