{"action":"created","issue":{"url":"https://api.github.com/repos/AydinHassan/magento-core-composer-installer/issues/25","labels_url":"https://api.github.com/repos/AydinHassan/magento-core-composer-installer/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/AydinHassan/magento-core-composer-installer/issues/25/comments","events_url":"https://api.github.com/repos/AydinHassan/magento-core-composer-installer/issues/25/events","html_url":"https://github.com/AydinHassan/magento-core-composer-installer/issues/25","id":114642485,"number":25,"title":" [ErrorException] mkdir(): File exists - when running composer in Magento root directory","user":{"login":"dlicheva","id":8710269,"avatar_url":"https://avatars.githubusercontent.com/u/8710269?v=3","gravatar_id":"","url":"https://api.github.com/users/dlicheva","html_url":"https://github.com/dlicheva","followers_url":"https://api.github.com/users/dlicheva/followers","following_url":"https://api.github.com/users/dlicheva/following{/other_user}","gists_url":"https://api.github.com/users/dlicheva/gists{/gist_id}","starred_url":"https://api.github.com/users/dlicheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlicheva/subscriptions","organizations_url":"https://api.github.com/users/dlicheva/orgs","repos_url":"https://api.github.com/users/dlicheva/repos","events_url":"https://api.github.com/users/dlicheva/events{/privacy}","received_events_url":"https://api.github.com/users/dlicheva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-02T17:24:55Z","updated_at":"2015-11-05T22:04:06Z","closed_at":null,"body":"Hello Aydin,\r\n\r\nI have encountered an issue with setting up the Magento root directory in composer.json.\r\nThe issue exists on Ubuntu 14.04 and is not a problem on an OS X EL Capitan 10.11.1\r\n\r\nThe issue appears with the following configuration:\r\ncomposer.json in the mage-root directory:\r\n{...\r\n  \"extra\": {\r\n    \"magento-root-dir\": \"./\"\r\n}\r\nException trace:\r\n() at /home/workspace/mage-root/vendor/aydin-hassan/magento-core-composer-installer/src/CoreManager.php:236\r\n Composer\\Util\\ErrorHandler::handle() at n/a:n/a\r\n mkdir() at /home/workspace/mage-root/vendor/aydin-hassan/magento-core-composer-installer/src/CoreManager.php:236\r\n AydinHassan\\MagentoCoreComposerInstaller\\CoreManager->ensureRootDirExists() at /home/workspace/mage-root/vendor/aydin-hassan/magento-core-composer-installer/src/CoreManager.php:176\r\n AydinHassan\\MagentoCoreComposerInstaller\\CoreManager->installCore() at n/a:n/a\r\n call_user_func() at phar://composer.phar/bin/../src/../src/Composer/EventDispatcher/EventDispatcher.php:152\r\n\r\nmkdir() seems to throw an error when using a relative path for \"magento-root-dir\" .\r\nI have managed to get it working using an absolute path:\r\n{...\r\n  \"extra\": {\r\n    \"magento-root-dir\": \"/home/workspace/mage-root/\"\r\n   }\r\n}\r\n\r\nHowever this makes this configuration usable only on a local copy.\r\nCould you please help me use a relative path if it is possible?\r\n\r\nThanks,\r\nDiana\r\n"},"comment":{"url":"https://api.github.com/repos/AydinHassan/magento-core-composer-installer/issues/comments/154209839","html_url":"https://github.com/AydinHassan/magento-core-composer-installer/issues/25#issuecomment-154209839","issue_url":"https://api.github.com/repos/AydinHassan/magento-core-composer-installer/issues/25","id":154209839,"user":{"login":"AydinHassan","id":2817002,"avatar_url":"https://avatars.githubusercontent.com/u/2817002?v=3","gravatar_id":"","url":"https://api.github.com/users/AydinHassan","html_url":"https://github.com/AydinHassan","followers_url":"https://api.github.com/users/AydinHassan/followers","following_url":"https://api.github.com/users/AydinHassan/following{/other_user}","gists_url":"https://api.github.com/users/AydinHassan/gists{/gist_id}","starred_url":"https://api.github.com/users/AydinHassan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AydinHassan/subscriptions","organizations_url":"https://api.github.com/users/AydinHassan/orgs","repos_url":"https://api.github.com/users/AydinHassan/repos","events_url":"https://api.github.com/users/AydinHassan/events{/privacy}","received_events_url":"https://api.github.com/users/AydinHassan/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T22:04:06Z","updated_at":"2015-11-05T22:04:06Z","body":"Are you running `composer update` from the same folder or somewhere else? That is the only thing that I can think of"}}