{"action":"created","issue":{"url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/70","repository_url":"https://api.github.com/repos/Cotya/magento-composer-installer","labels_url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/70/comments","events_url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/70/events","html_url":"https://github.com/Cotya/magento-composer-installer/issues/70","id":109955486,"number":70,"title":"Removing symlinks","user":{"login":"barryvdh","id":973269,"avatar_url":"https://avatars.githubusercontent.com/u/973269?v=3","gravatar_id":"","url":"https://api.github.com/users/barryvdh","html_url":"https://github.com/barryvdh","followers_url":"https://api.github.com/users/barryvdh/followers","following_url":"https://api.github.com/users/barryvdh/following{/other_user}","gists_url":"https://api.github.com/users/barryvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/barryvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryvdh/subscriptions","organizations_url":"https://api.github.com/users/barryvdh/orgs","repos_url":"https://api.github.com/users/barryvdh/repos","events_url":"https://api.github.com/users/barryvdh/events{/privacy}","received_events_url":"https://api.github.com/users/barryvdh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-06T08:03:22Z","updated_at":"2016-03-11T13:42:37Z","closed_at":null,"body":"Is it possible to remove the symlinks upon uninstalling a module?\r\n\r\nI basically have this setup: https://medium.com/@barryvdh/using-local-repositories-to-easily-install-private-magento-extensions-with-composer-7eb966dec23e\r\n\r\nExtensions are symlinked to the vendor dir from a local path. Upon uninstall, the symlink is removed from the vendor dir, but symlinks in the magento folder, are pointing directly to the local path, thus not removed.\r\n\r\nAny way to remove the dead links upon uninstall? Or make sure that the symlinks point to the vendor dir, instead of actual path?"},"comment":{"url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/comments/195366088","html_url":"https://github.com/Cotya/magento-composer-installer/issues/70#issuecomment-195366088","issue_url":"https://api.github.com/repos/Cotya/magento-composer-installer/issues/70","id":195366088,"user":{"login":"barryvdh","id":973269,"avatar_url":"https://avatars.githubusercontent.com/u/973269?v=3","gravatar_id":"","url":"https://api.github.com/users/barryvdh","html_url":"https://github.com/barryvdh","followers_url":"https://api.github.com/users/barryvdh/followers","following_url":"https://api.github.com/users/barryvdh/following{/other_user}","gists_url":"https://api.github.com/users/barryvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/barryvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryvdh/subscriptions","organizations_url":"https://api.github.com/users/barryvdh/orgs","repos_url":"https://api.github.com/users/barryvdh/repos","events_url":"https://api.github.com/users/barryvdh/events{/privacy}","received_events_url":"https://api.github.com/users/barryvdh/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T13:42:37Z","updated_at":"2016-03-11T13:42:37Z","body":"So now I'm just guessing, but:\r\nhttps://github.com/Cotya/magento-composer-installer/blob/f23b72cb9da12f0f6b57f45d88a79783106e6de7/src/MagentoHackathon/Composer/Magento/ModuleManager.php#L211\r\n`realpath()` resolves the symlinks. Maybe you can remove that link and try it?"}}