{"action":"created","issue":{"url":"https://api.github.com/repos/Letudiant/composer-shared-package-plugin/issues/15","repository_url":"https://api.github.com/repos/Letudiant/composer-shared-package-plugin","labels_url":"https://api.github.com/repos/Letudiant/composer-shared-package-plugin/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/Letudiant/composer-shared-package-plugin/issues/15/comments","events_url":"https://api.github.com/repos/Letudiant/composer-shared-package-plugin/issues/15/events","html_url":"https://github.com/Letudiant/composer-shared-package-plugin/issues/15","id":179572937,"number":15,"title":"Different branches (require and require-dev)","user":{"login":"pionl","id":1878831,"avatar_url":"https://avatars.githubusercontent.com/u/1878831?v=3","gravatar_id":"","url":"https://api.github.com/users/pionl","html_url":"https://github.com/pionl","followers_url":"https://api.github.com/users/pionl/followers","following_url":"https://api.github.com/users/pionl/following{/other_user}","gists_url":"https://api.github.com/users/pionl/gists{/gist_id}","starred_url":"https://api.github.com/users/pionl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pionl/subscriptions","organizations_url":"https://api.github.com/users/pionl/orgs","repos_url":"https://api.github.com/users/pionl/repos","events_url":"https://api.github.com/users/pionl/events{/privacy}","received_events_url":"https://api.github.com/users/pionl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-27T18:20:54Z","updated_at":"2016-09-28T08:59:26Z","closed_at":null,"body":"Hi,\r\nin readme there is mention that in production there can be different branch usage. I've got 2 branches:\r\n\r\n- master (for development)\r\n- production (for public)\r\n\r\nI've tried setup with:\r\n```\r\nrequire: \"test/test\": \"dev-production as 1.0\",\r\nrequire-dev: \"test/test\": \"dev-master as 1.0\",\r\n```\r\nbut exception is raised:\r\n```\r\nThe requested package test/test dev-production as 1.0 exists as test/test[dev-master, 1.0] but these are rejected by your constraint. \r\n```\r\n\r\nI've tried also to set:\r\n```\r\nrequire: \"test/test\": \"dev-production\",\r\nrequire-dev: \"test/test\": \"dev-master as dev-production\",\r\n```\r\nthis passes but on production it uses the master. I've got lock (want to exact version as I used) from the dev env but I'm trying to update the lock on the CI by calling:\r\n```shell\r\ncomposer update test/test --no-dev --no-scripts\r\n```\r\n\r\nThanks for any advice.\r\nHave a great day"},"comment":{"url":"https://api.github.com/repos/Letudiant/composer-shared-package-plugin/issues/comments/250111163","html_url":"https://github.com/Letudiant/composer-shared-package-plugin/issues/15#issuecomment-250111163","issue_url":"https://api.github.com/repos/Letudiant/composer-shared-package-plugin/issues/15","id":250111163,"user":{"login":"Divi","id":1122160,"avatar_url":"https://avatars.githubusercontent.com/u/1122160?v=3","gravatar_id":"","url":"https://api.github.com/users/Divi","html_url":"https://github.com/Divi","followers_url":"https://api.github.com/users/Divi/followers","following_url":"https://api.github.com/users/Divi/following{/other_user}","gists_url":"https://api.github.com/users/Divi/gists{/gist_id}","starred_url":"https://api.github.com/users/Divi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Divi/subscriptions","organizations_url":"https://api.github.com/users/Divi/orgs","repos_url":"https://api.github.com/users/Divi/repos","events_url":"https://api.github.com/users/Divi/events{/privacy}","received_events_url":"https://api.github.com/users/Divi/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T08:59:26Z","updated_at":"2016-09-28T08:59:26Z","body":"Hello :)\r\n\r\nHave you tried like this ?\r\n\r\n```\r\nrequire: \"test/test\": \"~1.0\",\r\nrequire-dev: \"test/test\": \"dev-master as 1.0\",\r\n```\r\n\r\nOf course, you'll need a tag >= 1.0.0"}}
{"actor":{"display_login":"Divi"}}