{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/7089","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/7089/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/7089/comments","events_url":"https://api.github.com/repos/composer/composer/issues/7089/events","html_url":"https://github.com/composer/composer/issues/7089","id":295445941,"number":7089,"title":"Conflicting with __root__ dev-master regardless of what i do","user":{"login":"bizmate","id":1427498,"avatar_url":"https://avatars0.githubusercontent.com/u/1427498?v=4","gravatar_id":"","url":"https://api.github.com/users/bizmate","html_url":"https://github.com/bizmate","followers_url":"https://api.github.com/users/bizmate/followers","following_url":"https://api.github.com/users/bizmate/following{/other_user}","gists_url":"https://api.github.com/users/bizmate/gists{/gist_id}","starred_url":"https://api.github.com/users/bizmate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizmate/subscriptions","organizations_url":"https://api.github.com/users/bizmate/orgs","repos_url":"https://api.github.com/users/bizmate/repos","events_url":"https://api.github.com/users/bizmate/events{/privacy}","received_events_url":"https://api.github.com/users/bizmate/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2018-02-08T09:48:20Z","updated_at":"2018-02-14T09:31:39Z","closed_at":"2018-02-13T22:56:06Z","author_association":"NONE","body":"I have checked the documentation on the versioning and in relation to this conflict I am not aware of where or what __root__ is. I cannot see any reference to this in the docs but also I cannot figure out a way to get a version installed at all as it is always conflicting regardless of what I do. Any idea?\r\n\r\nMy `composer.json`:\r\n\r\n```json\r\n{\r\n    \"type\": \"project\",\r\n    \"license\": \"proprietary\",\r\n    \"minimum-stability\": \"dev\",\r\n    \"require\": {\r\n        \"php\": \"^7.1.3\",\r\n        \"ext-iconv\": \"*\",\r\n        \"sensio/framework-extra-bundle\": \"^5.1\",\r\n        \"sroze/companienv\": \"^0.0.7\",\r\n        \"symfony/asset\": \"^4.0\",\r\n        \"symfony/console\": \"^4.0\",\r\n        \"symfony/flex\": \"^1.0\",\r\n        \"symfony/form\": \"^4.0\",\r\n        \"symfony/framework-bundle\": \"^4.0\",\r\n        \"symfony/lts\": \"^4@dev\",\r\n        \"symfony/monolog-bundle\": \"^3.1\",\r\n        \"symfony/orm-pack\": \"^1.0\",\r\n        \"symfony/security-bundle\": \"^4.0\",\r\n        \"symfony/swiftmailer-bundle\": \"^3.1\",\r\n        \"symfony/translation\": \"^4.0\",\r\n        \"symfony/twig-bundle\": \"^4.0\",\r\n        \"symfony/validator\": \"^4.0\",\r\n        \"symfony/yaml\": \"^4.0\"\r\n    },\r\n    \"require-dev\": {\r\n        \"symfony/dotenv\": \"^4.0\"\r\n    },\r\n    \"config\": {\r\n        \"preferred-install\": {\r\n            \"*\": \"dist\"\r\n        },\r\n        \"sort-packages\": true\r\n    },\r\n    \"autoload\": {\r\n        \"psr-4\": {\r\n            \"App\\\\\": \"src/\",\r\n            \"MyreviewsShopifyBundle\\\\\": \"src/\"\r\n        }\r\n    },\r\n    \"autoload-dev\": {\r\n        \"psr-4\": {\r\n            \"App\\\\Tests\\\\\": \"tests/\"\r\n        }\r\n    },\r\n    \"replace\": {\r\n        \"symfony/polyfill-iconv\": \"*\",\r\n        \"symfony/polyfill-php71\": \"*\",\r\n        \"symfony/polyfill-php70\": \"*\",\r\n        \"symfony/polyfill-php56\": \"*\"\r\n    },\r\n    \"scripts\": {\r\n        \"auto-scripts\": {\r\n            \"cache:clear\": \"symfony-cmd\",\r\n            \"assets:install --symlink --relative %PUBLIC_DIR%\": \"symfony-cmd\"\r\n        },\r\n        \"post-install-cmd\": [\r\n            \"@auto-scripts\",\r\n            \"Companienv\\\\Composer\\\\ScriptHandler::run\"\r\n        ],\r\n        \"post-update-cmd\": [\r\n            \"@auto-scripts\",\r\n            \"Companienv\\\\Composer\\\\ScriptHandler::run\"\r\n        ]\r\n    },\r\n    \"conflict\": {\r\n        \"symfony/symfony\": \"*\"\r\n    },\r\n    \"extra\": {\r\n        \"symfony\": {\r\n            \"id\": \"01C5NK1M0YHQ8NENGHTWQGZ2CA\",\r\n            \"allow-contrib\": false\r\n        }\r\n    },\r\n    \"repositories\" : [\r\n        {\r\n            \"type\" : \"vcs\",\r\n            \"url\" : \"git@gitlab.com:bizmate/reviews.git\"\r\n        }\r\n    ]\r\n}\r\n\r\n```\r\n\r\nOutput of `composer diagnose`:\r\n\r\n```\r\nChecking composer.json: OK\r\nChecking platform settings: OK\r\nChecking git settings: OK\r\nChecking http connectivity to packagist: OK\r\nChecking https connectivity to packagist: OK\r\nChecking github.com rate limit: OK\r\nChecking disk free space: OK\r\nChecking pubkeys: \r\nTags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642\r\nDev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952\r\nOK\r\nChecking composer version: OK\r\nComposer version: 1.6.3\r\nPHP version: 7.1.9\r\nPHP binary path: /home/bizmate/.phpbrew/php/php-7.1.9/bin/php\r\n```\r\n\r\nWhen I run this command:\r\n\r\n```\r\ncomposer require myreviews/reviews:0.0.*\r\n```\r\nor \r\n```\r\ncomposer require myreviews/reviews:dev-master\r\n```\r\n\r\nI get the following output:\r\n\r\n```\r\n./composer.json has been updated                   \r\nLoading composer repositories with package information                                                                                                               Updating 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    - don't install myreviews/reviews 0.0.2|remove __root__ dev-master\r\n    - don't install myreviews/reviews v0.0.1|remove __root__ dev-master\r\n    - Installation request for __root__ dev-master -> satisfiable by __root__[dev-master].\r\n    - Installation request for myreviews/reviews 0.0.* -> satisfiable by myreviews/reviews[0.0.2, v0.0.1].\r\n\r\n\r\nInstallation failed, reverting ./composer.json to its original content.\r\n```\r\n\r\nAnd I expected `0.0.2` to be installed.\r\n\r\nThe package `myreviews/reviews` is privately hosted on gitlab and the composer.json on the project is\r\n\r\n```json\r\n{\r\n    \"name\": \"myreviews/reviews\",\r\n    \"type\": \"symfony-bundle\",\r\n    \"license\": \"proprietary\",\r\n    \"require\": {\r\n        \"php\": \"^7.1.3\",\r\n        \"ext-iconv\": \"*\",\r\n        \"guzzlehttp/guzzle\": \"^6.3\",\r\n        \"symfony/console\": \"^4.0\",\r\n        \"symfony/flex\": \"^1.0\",\r\n        \"symfony/framework-bundle\": \"^4.0\",\r\n        \"symfony/lts\": \"^4@dev\",\r\n        \"symfony/monolog-bundle\": \"^3.1\",\r\n        \"symfony/orm-pack\": \"^1.0\",\r\n        \"symfony/swiftmailer-bundle\": \"^3.1\",\r\n        \"symfony/yaml\": \"^4.0\"\r\n    },\r\n    \"require-dev\": {\r\n        \"behat/behat\": \"^3.3\",\r\n        \"behat/common-contexts\": \"^1.2@dev\",\r\n        \"behat/debug-extension\": \"^1.0\",\r\n        \"behat/mink-browserkit-driver\": \"^1.3\",\r\n        \"behat/mink-extension\": \"^2.2\",\r\n        \"behat/symfony2-extension\": \"^2.1\",\r\n        \"jarnaiz/behat-junit-formatter\": \"^1.3\",\r\n        \"mockery/mockery\": \"^0.9.9\",\r\n        \"pdepend/pdepend\": \"^2.5\",\r\n        \"phpmd/phpmd\": \"^2.6\",\r\n        \"phpmetrics/phpmetrics\": \"^2.2\",\r\n        \"sebastian/phpcpd\": \"^3.0\",\r\n        \"sensiolabs/security-checker\": \"^4.0\",\r\n        \"squizlabs/php_codesniffer\": \"^3.0\",\r\n        \"symfony/dotenv\": \"^4.0\",\r\n        \"symfony/phpunit-bridge\": \"^4.0\"\r\n    },\r\n    \"config\": {\r\n        \"preferred-install\": {\r\n            \"*\": \"dist\"\r\n        },\r\n        \"sort-packages\": true\r\n    },\r\n    \"autoload\": {\r\n        \"psr-4\": {\r\n            \"MyReviews\\\\ReviewsBundle\\\\\": \"src/\",\r\n            \"App\\\\\": \"src/\"\r\n        }\r\n    },\r\n    \"autoload-dev\": {\r\n        \"psr-4\": {\r\n            \"Tests\\\\\": \"tests/\"\r\n        }\r\n    },\r\n    \"replace\": {\r\n        \"symfony/polyfill-iconv\": \"*\",\r\n        \"symfony/polyfill-php71\": \"*\",\r\n        \"symfony/polyfill-php70\": \"*\",\r\n        \"symfony/polyfill-php56\": \"*\"\r\n    },\r\n    \"scripts\": {\r\n        \"auto-scripts\": {\r\n            \"cache:clear\": \"symfony-cmd\",\r\n            \"assets:install --symlink --relative %PUBLIC_DIR%\": \"symfony-cmd\",\r\n            \"security-checker security:check\": \"script\"\r\n        },\r\n        \"post-install-cmd\": [\r\n            \"@auto-scripts\"\r\n        ],\r\n        \"post-update-cmd\": [\r\n            \"@auto-scripts\"\r\n        ]\r\n    },\r\n    \"conflict\": {\r\n        \"symfony/symfony\": \"*\"\r\n    },\r\n    \"extra\": {\r\n        \"symfony\": {\r\n            \"id\": \"01C4ZS37WH8SRYKJ62FM09J9CA\",\r\n            \"allow-contrib\": false\r\n        }\r\n    }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/365546300","html_url":"https://github.com/composer/composer/issues/7089#issuecomment-365546300","issue_url":"https://api.github.com/repos/composer/composer/issues/7089","id":365546300,"user":{"login":"bizmate","id":1427498,"avatar_url":"https://avatars0.githubusercontent.com/u/1427498?v=4","gravatar_id":"","url":"https://api.github.com/users/bizmate","html_url":"https://github.com/bizmate","followers_url":"https://api.github.com/users/bizmate/followers","following_url":"https://api.github.com/users/bizmate/following{/other_user}","gists_url":"https://api.github.com/users/bizmate/gists{/gist_id}","starred_url":"https://api.github.com/users/bizmate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizmate/subscriptions","organizations_url":"https://api.github.com/users/bizmate/orgs","repos_url":"https://api.github.com/users/bizmate/repos","events_url":"https://api.github.com/users/bizmate/events{/privacy}","received_events_url":"https://api.github.com/users/bizmate/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T09:31:39Z","updated_at":"2018-02-14T09:31:39Z","author_association":"NONE","body":"@curry684 tbh i had no idea a conflict would be based on replace entries. I really think it is a call for better error reporting but at least now i know that I should also check other parts apart from require/require-dev."}}
{"actor":{"display_login":"bizmate"}}