Visitar URL original
Conflicting guzzle/parser requirements for http and http-client in 0.3.4 · Issue #309 · reactphp/reactphp · GitHub
Skip to content

Conflicting guzzle/parser requirements for http and http-client in 0.3.4 #309

Closed

Description

@elazar

In the v0.3.4 tag, http requires guzzle/parser 3.0.* while http-client requires guzzle/parser 2.8.*. This prevents both from being installed in the same project, a limitation both myself and @WyriHaximus have encountered.

Activity

  1. clue commented on May 24, 2014

    @clue
    Member

    Yeah, looks like the dependencies aren't quite accurate. The main package react/react requires guzzle/parser ~3.0. This third definition seems to work just fine for both react/http and react/http-client.

    As a temporary workaround you may try to depend on react/react (which will install all components) and despite taking some more disk space should work just fine.

  2. cboden commented on May 31, 2014

    @cboden
    Member

    @elazar Can you test reactphp/http#2 and with reactphp/http-client#2 please? If they're good I'll merge and tag new v0.3.x releases.

  3. self-assigned this
    on May 31, 2014
  4. elazar commented on Jun 4, 2014

    @elazar
    Author

    @cboden Sorry for the delay in replying to this, moved over the weekend and haven't gotten internet at the new place yet. Should happen today, hoping to verify this fix this evening.

  5. elazar commented on Jun 7, 2014

    @elazar
    Author

    @cboden The patches you referenced seem to address the issue.

    $ cat composer.json 
    {
        "require": {
            "react/http": "dev-compat-guzzle-deps",
            "react/http-client": "dev-compat-parser-deps"
        },
        "repositories": [
            {
                "type": "vcs",
                "url": "https://github.com/reactphp/http.git"
            },
            {
                "type": "vcs",
                "url": "https://github.com/reactphp/http-client.git"
            }
        ]
    }
    $ composer install
    Loading composer repositories with package information
    Installing dependencies (including require-dev)                
      - Installing evenement/evenement (v1.0.0)
        Loading from cache
    
      - Installing react/stream (v0.3.4)
        Cloning feef56628afe3fa861f0da5f92c909e029efceac
    
      - Installing react/event-loop (v0.3.4)
        Downloading: 100%         
    
      - Installing react/socket (v0.3.4)
        Downloading: 100%         
    
      - Installing guzzle/parser (v3.9.1)
        Loading from cache
    
      - Installing react/http (dev-compat-guzzle-deps 9a28b19)
        Cloning 9a28b190eacaffed440042b0aa60b0d2908ea656
    
      - Installing react/promise (v1.0.4)
        Loading from cache
    
      - Installing react/cache (v0.3.2)
        Downloading: 100%         
    
      - Installing react/dns (v0.3.4)
        Downloading: 100%         
    
      - Installing react/socket-client (v0.3.1)
        Downloading: 100%         
    
      - Installing react/http-client (dev-compat-parser-deps 3c17b99)
        Cloning 3c17b9936ffab2fcdf4a2c84c7ec9d705221ab3f
    
    react/event-loop suggests installing ext-libevent (>=0.0.5)
    react/event-loop suggests installing ext-libev (*)
    Writing lock file
    Generating autoload files
    $
    
  6. cboden commented on Jun 8, 2014

    @cboden
    Member

    Merged

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions