{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4643","labels_url":"https://api.github.com/repos/composer/composer/issues/4643/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4643/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4643/events","html_url":"https://github.com/composer/composer/issues/4643","id":119078158,"number":4643,"title":"LogicException: A package can only be added to one repository","user":{"login":"Soullivaneuh","id":1698357,"avatar_url":"https://avatars.githubusercontent.com/u/1698357?v=3","gravatar_id":"","url":"https://api.github.com/users/Soullivaneuh","html_url":"https://github.com/Soullivaneuh","followers_url":"https://api.github.com/users/Soullivaneuh/followers","following_url":"https://api.github.com/users/Soullivaneuh/following{/other_user}","gists_url":"https://api.github.com/users/Soullivaneuh/gists{/gist_id}","starred_url":"https://api.github.com/users/Soullivaneuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soullivaneuh/subscriptions","organizations_url":"https://api.github.com/users/Soullivaneuh/orgs","repos_url":"https://api.github.com/users/Soullivaneuh/repos","events_url":"https://api.github.com/users/Soullivaneuh/events{/privacy}","received_events_url":"https://api.github.com/users/Soullivaneuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T16:47:37Z","updated_at":"2015-11-26T23:53:54Z","closed_at":null,"body":"Since https://github.com/composer/composer/commit/6dbec8718d48bbf31b99ef91c7a01c349fc8f606, I got the following error on my [test file](https://github.com/Soullivaneuh/composer-versions-check/blob/aa873d4d05498512d40fc52548f3e8fa908ae6d7/tests/VersionsCheckTest.php#L120-L153):\r\n\r\n```\r\nLogicException: A package can only be added to one repository\r\n\r\n/home/sullivan/projects/my/composer-versions-check/vendor/composer/composer/src/Composer/Package/BasePackage.php:130\r\n/home/sullivan/projects/my/composer-versions-check/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php:139\r\n/home/sullivan/projects/my/composer-versions-check/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php:35\r\n/home/sullivan/projects/my/composer-versions-check/vendor/composer/composer/src/Composer/Command/DependsCommand.php:63\r\n```\r\n\r\nI'm completely stuck now. What should I change?"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/160007476","html_url":"https://github.com/composer/composer/issues/4643#issuecomment-160007476","issue_url":"https://api.github.com/repos/composer/composer/issues/4643","id":160007476,"user":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T23:53:54Z","updated_at":"2015-11-26T23:53:54Z","body":"The commit you link is 4 years old.. so you're saying your plugin never worked? :p \r\n\r\nAnyway looking at your test case it seems you never add something twice to a repo so I don't get how this can fail sorry.."}}