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

Dependency conflict with php-http/guzzle6-adapter 2.0 #379

Closed
Adambean opened this issue Nov 20, 2018 · 3 comments · Fixed by #386
Closed

Dependency conflict with php-http/guzzle6-adapter 2.0 #379

Adambean opened this issue Nov 20, 2018 · 3 comments · Fixed by #386

Comments

@Adambean
Copy link

If you try to include this package with the official instruction it will fail because of a version conflict.

composer require m4tthumphrey/php-gitlab-api php-http/guzzle6-adapter

This causes a conflict with dependency php-http/httplug because this package wants version 1.1, but the guzzle 6 adapter wants version 2.0.

- Installation request for m4tthumphrey/php-gitlab-api ^9.11 -> satisfiable by m4tthumphrey/php-gitlab-api[9.11.0].
- Can only install one of: php-http/httplug[v2.0.0, v1.1.0].
- php-http/guzzle6-adapter v2.0.0 requires php-http/httplug ^2.0 -> satisfiable by php-http/httplug[v2.0.0].
- m4tthumphrey/php-gitlab-api 9.11.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- Installation request for php-http/guzzle6-adapter ^2.0 -> satisfiable by php-http/guzzle6-adapter[v2.0.0].

To fix this I had to explicitly tell Composer to only use version ^1.0 of php-http/guzzle6-adapter as follows:

composer require m4tthumphrey/php-gitlab-api php-http/guzzle6-adapter:^1.0

The installation instructions should be updated on that.

@tipytechnique
Copy link

I had the same issue, you saved my day :)

@m1guelpf
Copy link
Member

could you PR this to the documentation?

gserrg added a commit to gserrg/php-gitlab-api that referenced this issue Dec 23, 2018
@klubnacht
Copy link

I got this one when trying to use your command:

  Problem 1
    - Can only install one of: php-http/httplug[v2.0.0, v1.1.0].
    - Can only install one of: php-http/httplug[v1.1.0, v2.0.0].
    - Can only install one of: php-http/httplug[v1.1.0, v2.0.0].
    - m4tthumphrey/php-gitlab-api 9.11.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - Installation request for m4tthumphrey/php-gitlab-api ^9.11 -> satisfiable by m4tthumphrey/php-gitlab-api[9.11.0].
    - Installation request for php-http/httplug (locked at v2.0.0) -> satisfiable by php-http/httplug[v2.0.0].

The issue seems to be fixed when specifying the version of php-http/httplug 😇

composer require m4tthumphrey/php-gitlab-api php-http/guzzle6-adapter:^1.0 php-http/httplug:^1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

4 participants