{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/7129","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/7129/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/7129/comments","events_url":"https://api.github.com/repos/composer/composer/issues/7129/events","html_url":"https://github.com/composer/composer/issues/7129","id":299522138,"number":7129,"title":"Composer is not able to resolve dependencies if tightenco/collect is not in __root__","user":{"login":"antonioribeiro","id":3182864,"avatar_url":"https://avatars3.githubusercontent.com/u/3182864?v=4","gravatar_id":"","url":"https://api.github.com/users/antonioribeiro","html_url":"https://github.com/antonioribeiro","followers_url":"https://api.github.com/users/antonioribeiro/followers","following_url":"https://api.github.com/users/antonioribeiro/following{/other_user}","gists_url":"https://api.github.com/users/antonioribeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/antonioribeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonioribeiro/subscriptions","organizations_url":"https://api.github.com/users/antonioribeiro/orgs","repos_url":"https://api.github.com/users/antonioribeiro/repos","events_url":"https://api.github.com/users/antonioribeiro/events{/privacy}","received_events_url":"https://api.github.com/users/antonioribeiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-22T21:53:39Z","updated_at":"2018-03-02T17:35:55Z","closed_at":null,"author_association":"NONE","body":"I'm using:\r\n\r\n```\r\n$ composer --version\r\nComposer version 1.6.3 2018-01-31 16:28:17\r\n```\r\n\r\nMy `composer.json` is empty\r\n\r\nWhen I run this command:\r\n\r\n```\r\nmkdir foo \\\r\n cd foo \\\r\n composer require laravel/framework \\\r\n composer require mathieutu/exporter\r\n```\r\n\r\nComposer is not able to resolve it:\r\n\r\n```\r\nWriting lock file\r\nGenerating autoload files\r\nUsing version ^2.0 for mathieutu/exporter\r\n./composer.json has been updated\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\nYour requirements could not be resolved to an installable set of packages.\r\n\r\n  Problem 1\r\n    - Installation request for mathieutu/exporter ^2.0 -> satisfiable by mathieutu/exporter[2.0.0].\r\n    - Conclusion: remove laravel/framework v5.6.5\r\n    - Conclusion: don't install laravel/framework v5.6.5\r\n    - mathieutu/exporter 2.0.0 requires tightenco/collect ^5.6 -> satisfiable by laravel/framework[v5.6.0, v5.6.1, v5.6.2, v5.6.3], tightenco/collect[v5.6.0, v5.6.4, v5.6.5].\r\n    - Can only install one of: laravel/framework[v5.6.0, v5.6.5].\r\n    - Can only install one of: laravel/framework[v5.6.1, v5.6.5].\r\n    - Can only install one of: laravel/framework[v5.6.2, v5.6.5].\r\n    - Can only install one of: laravel/framework[v5.6.3, v5.6.5].\r\n    - don't install tightenco/collect v5.6.0|don't install laravel/framework v5.6.5\r\n    - don't install tightenco/collect v5.6.4|don't install laravel/framework v5.6.5\r\n    - don't install tightenco/collect v5.6.5|don't install laravel/framework v5.6.5\r\n    - Installation request for laravel/framework (locked at v5.6.5, required as ^5.6) -> satisfiable by laravel/framework[v5.6.5].\r\n```\r\n\r\nBut if I add tightenco/collect to __root__:\r\n\r\n```\r\nmkdir foo \\\r\n cd foo \\\r\n composer require laravel/framework \\\r\n composer require tightenco/collect \\\r\n composer require mathieutu/exporter\r\n```\r\n\r\nIt works fine.\r\n\r\n`mathieutu/exporter` is only requiring \"tightenco/collect\" and there are no requirements in \"tightenco/collect\" to any version of laravel/framework. The only relation between `tightenco/collect` and illuminate/framework was a \"replace\", which is, now, in place only for Collect <5.5.33:\r\n\r\nhttps://github.com/laravel/framework/commit/5caa88acde3d8a82fcbb9bbec8dde45dc49d4b7b#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780L70\r\n\r\nIs there anything we can make to fix this?"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/369993816","html_url":"https://github.com/composer/composer/issues/7129#issuecomment-369993816","issue_url":"https://api.github.com/repos/composer/composer/issues/7129","id":369993816,"user":{"login":"mathieutu","id":11351322,"avatar_url":"https://avatars3.githubusercontent.com/u/11351322?v=4","gravatar_id":"","url":"https://api.github.com/users/mathieutu","html_url":"https://github.com/mathieutu","followers_url":"https://api.github.com/users/mathieutu/followers","following_url":"https://api.github.com/users/mathieutu/following{/other_user}","gists_url":"https://api.github.com/users/mathieutu/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieutu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieutu/subscriptions","organizations_url":"https://api.github.com/users/mathieutu/orgs","repos_url":"https://api.github.com/users/mathieutu/repos","events_url":"https://api.github.com/users/mathieutu/events{/privacy}","received_events_url":"https://api.github.com/users/mathieutu/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T17:35:55Z","updated_at":"2018-03-02T17:35:55Z","author_association":"NONE","body":"@stof the problem is that it's used to replace the package until the 5.3.3 version.. :/"}}
{"actor":{"display_login":"mathieutu"}}