{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5362","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5362/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5362/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5362/events","html_url":"https://github.com/composer/composer/issues/5362","id":156023891,"number":5362,"title":"Updating a package that itself has an updated dependency is failing","user":{"login":"chrisemerson","id":4631704,"avatar_url":"https://avatars.githubusercontent.com/u/4631704?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisemerson","html_url":"https://github.com/chrisemerson","followers_url":"https://api.github.com/users/chrisemerson/followers","following_url":"https://api.github.com/users/chrisemerson/following{/other_user}","gists_url":"https://api.github.com/users/chrisemerson/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisemerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisemerson/subscriptions","organizations_url":"https://api.github.com/users/chrisemerson/orgs","repos_url":"https://api.github.com/users/chrisemerson/repos","events_url":"https://api.github.com/users/chrisemerson/events{/privacy}","received_events_url":"https://api.github.com/users/chrisemerson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Support","name":"Support","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-20T18:30:00Z","updated_at":"2016-05-26T14:53:08Z","closed_at":null,"body":"Hi,\r\n\r\nThere appears to be an issue updating packages when that package updates one of the versions of its own dependency. I noticed the issue when trying to update the version of slim/slim, which in turn had updated its version of nikic/fast-route from 0.6 to 1.0. I don't know if the fact that it's updating from a pre-1.0 version has anything to do with it, but it's possible.\r\n\r\nTo recreate:\r\n```\r\n$ mkdir test\r\n$ cd test\r\n$ composer require slim/slim 3.3.0\r\n./composer.json has been created\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\n  - Installing container-interop/container-interop (1.1.0)\r\n    Loading from cache\r\n\r\n  - Installing nikic/fast-route (v0.6.0)\r\n    Loading from cache\r\n\r\n  - Installing psr/http-message (1.0)\r\n    Loading from cache\r\n\r\n  - Installing pimple/pimple (v3.0.2)\r\n    Loading from cache\r\n\r\n  - Installing slim/slim (3.3.0)\r\n    Loading from cache\r\n\r\nWriting lock file\r\nGenerating autoload files\r\n\r\n$ composer require slim/slim ^3.4\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 nikic/fast-route (locked at v0.6.0) -> satisfiable by nikic/fast-route[v0.6.0].\r\n    - slim/slim 3.4.0 requires nikic/fast-route ^1.0 -> satisfiable by nikic/fast-route[v1.0.0].\r\n    - slim/slim 3.4.1 requires nikic/fast-route ^1.0 -> satisfiable by nikic/fast-route[v1.0.0].\r\n    - Conclusion: don't install nikic/fast-route v1.0.0\r\n    - Installation request for slim/slim ^3.4 -> satisfiable by slim/slim[3.4.0, 3.4.1].\r\n\r\n\r\nInstallation failed, reverting ./composer.json to its original content.\r\n```\r\n\r\nAs you can see, it's trying to install v1.0 of nikic/fast-route in order to update the slim/slim package, but it's conflicting with the version 0.6.0 which is installed & in the lock file, and fails. Since nikic/fast-route is only a dependency of the package I'm trying to update (slim/slim) and nothing else, I would expect composer to ignore this conflict and trust the new dependency list of the package I'm trying to update, updating nikic/fast-route to 1.0."},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/221894577","html_url":"https://github.com/composer/composer/issues/5362#issuecomment-221894577","issue_url":"https://api.github.com/repos/composer/composer/issues/5362","id":221894577,"user":{"login":"dhensby","id":563596,"avatar_url":"https://avatars.githubusercontent.com/u/563596?v=3","gravatar_id":"","url":"https://api.github.com/users/dhensby","html_url":"https://github.com/dhensby","followers_url":"https://api.github.com/users/dhensby/followers","following_url":"https://api.github.com/users/dhensby/following{/other_user}","gists_url":"https://api.github.com/users/dhensby/gists{/gist_id}","starred_url":"https://api.github.com/users/dhensby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhensby/subscriptions","organizations_url":"https://api.github.com/users/dhensby/orgs","repos_url":"https://api.github.com/users/dhensby/repos","events_url":"https://api.github.com/users/dhensby/events{/privacy}","received_events_url":"https://api.github.com/users/dhensby/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T14:53:08Z","updated_at":"2016-05-26T14:53:08Z","body":"I'm getting a similar issue when requiring a package globally.\r\n\r\n```\r\n- silverstripe/blowgun dev-master requires symfony/process 2.7.1 -> satisfiable by symfony/process[v2.7.1].\r\n    - silverstripe/blowgun dev-master requires symfony/process 2.7.1 -> satisfiable by symfony/process[v2.7.1].\r\n    - Conclusion: don't install symfony/process v2.7.1\r\n```\r\n\r\nAdding `--update-with-dependencies` makes no difference"}}
{"actor":{"display_login":"dhensby"}}