{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/1429","labels_url":"https://api.github.com/repos/magento/magento2/issues/1429/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/1429/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/1429/events","html_url":"https://github.com/magento/magento2/issues/1429","id":92097266,"number":1429,"title":"Magento 2 Bin directory","user":{"login":"jamescowie","id":912476,"avatar_url":"https://avatars.githubusercontent.com/u/912476?v=3","gravatar_id":"","url":"https://api.github.com/users/jamescowie","html_url":"https://github.com/jamescowie","followers_url":"https://api.github.com/users/jamescowie/followers","following_url":"https://api.github.com/users/jamescowie/following{/other_user}","gists_url":"https://api.github.com/users/jamescowie/gists{/gist_id}","starred_url":"https://api.github.com/users/jamescowie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamescowie/subscriptions","organizations_url":"https://api.github.com/users/jamescowie/orgs","repos_url":"https://api.github.com/users/jamescowie/repos","events_url":"https://api.github.com/users/jamescowie/events{/privacy}","received_events_url":"https://api.github.com/users/jamescowie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/PS","name":"PS","color":"fad8c7"},{"url":"https://api.github.com/repos/magento/magento2/labels/TECH","name":"TECH","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-30T13:41:12Z","updated_at":"2015-07-02T15:22:09Z","closed_at":null,"body":"So magento now has a `bin` directory where the new and great `magento` command can be found. \r\nHowever it is a common configuration option for projects to also use `bin` for composer binaries that are available. E.g. `Behat, PHPSpec, PHPUnit` etc. \r\n\r\nBecause in the package `magento2-base` there is the mapping information for:\r\n\r\n```\r\n            [\r\n                \"bin\",\r\n                \"bin\"\r\n            ],\r\n``` \r\n\r\nWhen the composer and the hackathon installer process run after an update / install then the project roots `bin` directory is cleared out and only the magento 2 directory is created. This causes problems for projects that are configured to run the binaries from `./bin`. Granted the binaries are still available from `./vendor/package/bin/package` however it would be ideal to remove the mapping from `magento2-base` and replace with the following configuration in composer.json\r\n\r\n`\"bin\": [\"bin/magento”]`\r\n\r\nThis would mean that composer can place the `magento` command into the projects configured bin directory offering a single configuration node for the `bin` folder that is managed via `composer` and `magento` \r\n\r\nWhat do you think ? \r\n\r\nThis relates to MAGETWO-38518 and #1351 but contains more information on what is causing the replacement. "},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/118066186","html_url":"https://github.com/magento/magento2/issues/1429#issuecomment-118066186","issue_url":"https://api.github.com/repos/magento/magento2/issues/1429","id":118066186,"user":{"login":"buskamuza","id":1749703,"avatar_url":"https://avatars.githubusercontent.com/u/1749703?v=3","gravatar_id":"","url":"https://api.github.com/users/buskamuza","html_url":"https://github.com/buskamuza","followers_url":"https://api.github.com/users/buskamuza/followers","following_url":"https://api.github.com/users/buskamuza/following{/other_user}","gists_url":"https://api.github.com/users/buskamuza/gists{/gist_id}","starred_url":"https://api.github.com/users/buskamuza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buskamuza/subscriptions","organizations_url":"https://api.github.com/users/buskamuza/orgs","repos_url":"https://api.github.com/users/buskamuza/repos","events_url":"https://api.github.com/users/buskamuza/events{/privacy}","received_events_url":"https://api.github.com/users/buskamuza/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T15:22:09Z","updated_at":"2015-07-02T15:22:09Z","body":"@jamescowie , we're currently working on this fix (MAGETWO-38518) and you described exactly what we're going to change. So, I believe, we should cover the case you describe.\r\nThe fix should be available soon, but depending on the publication to this repository and other internal procedures it may take couple weeks."}}