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

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

Open
MrAbaddon opened this issue Dec 4, 2020 · 8 comments

Comments

@MrAbaddon
Copy link

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
Copy link

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
Copy link
Author

@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
Copy link

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
Copy link

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

@sinsotec
Copy link

sinsotec commented Apr 8, 2021

@TavoNiievez works for me too. Thanks.

@claytonrcarter
Copy link

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

@nurmuhammet-ali
Copy link

I know it is late but you could do:

composer require botman/tinker:dev-master

Adding master fixes issue

@darkrevenger
Copy link

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!

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

7 participants