{"action":"opened","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5987","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5987/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5987/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5987/events","html_url":"https://github.com/composer/composer/issues/5987","id":196927094,"number":5987,"title":"Composer update fails when providing platform package","user":{"login":"alcaeus","id":383198,"avatar_url":"https://avatars.githubusercontent.com/u/383198?v=3","gravatar_id":"","url":"https://api.github.com/users/alcaeus","html_url":"https://github.com/alcaeus","followers_url":"https://api.github.com/users/alcaeus/followers","following_url":"https://api.github.com/users/alcaeus/following{/other_user}","gists_url":"https://api.github.com/users/alcaeus/gists{/gist_id}","starred_url":"https://api.github.com/users/alcaeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcaeus/subscriptions","organizations_url":"https://api.github.com/users/alcaeus/orgs","repos_url":"https://api.github.com/users/alcaeus/repos","events_url":"https://api.github.com/users/alcaeus/events{/privacy}","received_events_url":"https://api.github.com/users/alcaeus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-21T12:59:34Z","updated_at":"2016-12-21T12:59:34Z","closed_at":null,"body":"This may be related to #5030.\r\n\r\nLet's start out with the following `composer.json`:\r\n```json\r\n{\r\n    \"require\": {\r\n        \"alcaeus/mongo-php-adapter\": \"1.0.6\",\r\n        \"doctrine/mongodb\": \"^1.3\"\r\n    }\r\n}\r\n```\r\n\r\n(Note: the exact version constraint for mongo-php-adapter is required for the next step to work)\r\n\r\nRunning `composer install` will fail due to the problem specified in #5030, thus we run `composer install --ignore-platform-reqs`:\r\n\r\n```\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\n  - Installing mongodb/mongodb (1.1.0)\r\n    Loading from cache\r\n\r\n  - Installing alcaeus/mongo-php-adapter (1.0.6)\r\n    Loading from cache\r\n\r\n  - Installing doctrine/lexer (v1.0.1)\r\n    Loading from cache\r\n\r\n  - Installing doctrine/inflector (v1.1.0)\r\n    Loading from cache\r\n\r\n  - Installing doctrine/collections (v1.3.0)\r\n    Loading from cache\r\n\r\n  - Installing doctrine/cache (v1.6.1)\r\n    Loading from cache\r\n\r\n  - Installing doctrine/annotations (v1.3.0)\r\n    Loading from cache\r\n\r\n  - Installing doctrine/common (v2.7.1)\r\n    Loading from cache\r\n\r\n  - Installing doctrine/mongodb (1.4.0)\r\n    Loading from cache\r\n\r\ndoctrine/mongodb suggests installing jmikola/geojson (Support GeoJSON geometry objects in 2dsphere queries)\r\nWriting lock file\r\nGenerating autoload files\r\n```\r\n\r\nNow we update the version constraint for mongo-php-adapter:\r\n```json\r\n{\r\n    \"require\": {\r\n        \"alcaeus/mongo-php-adapter\": \"1.0.7\",\r\n        \"doctrine/mongodb\": \"^1.3\"\r\n    }\r\n}\r\n```\r\n\r\nRunning `composer update` will yield an error:\r\n```\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    - doctrine/mongodb 1.4.0 requires ext-mongo ^1.5 -> satisfiable by alcaeus/mongo-php-adapter[1.0.6].\r\n    - doctrine/mongodb 1.3.0 requires ext-mongo ^1.5 -> satisfiable by alcaeus/mongo-php-adapter[1.0.6].\r\n    - doctrine/mongodb 1.4.0 requires ext-mongo ^1.5 -> satisfiable by alcaeus/mongo-php-adapter[1.0.6].\r\n    - Can only install one of: alcaeus/mongo-php-adapter[1.0.7, 1.0.6].\r\n    - Installation request for alcaeus/mongo-php-adapter 1.0.7 -> satisfiable by alcaeus/mongo-php-adapter[1.0.7].\r\n    - Installation request for doctrine/mongodb ^1.3 -> satisfiable by doctrine/mongodb[1.3.0, 1.4.0].\r\n\r\n  To enable extensions, verify that they are enabled in those .ini files:\r\n    - /usr/local/etc/php/7.1/php.ini\r\n    - /usr/local/etc/php/7.1/conf.d/ext-imagick.ini\r\n    - /usr/local/etc/php/7.1/conf.d/ext-intl.ini\r\n    - /usr/local/etc/php/7.1/conf.d/ext-mongodb.ini\r\n    - /usr/local/etc/php/7.1/conf.d/ext-v8js.ini\r\n    - /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini\r\n    - /usr/local/etc/php/7.1/conf.d/memory.ini\r\n    - /usr/local/etc/php/7.1/conf.d/timezone.ini\r\n  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.\r\n```\r\n\r\nExpected behavior: the update is made without problem since the original package dependency is still filled."}}
{"actor":{"display_login":"alcaeus"}}