Skip to content

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

@Adambean

Description

@Adambean

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions