{"action":"closed","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5561","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5561/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5561/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5561/events","html_url":"https://github.com/composer/composer/issues/5561","id":168133073,"number":5561,"title":"Package installs source files to incorrect path","user":{"login":"taiidani","id":902500,"avatar_url":"https://avatars.githubusercontent.com/u/902500?v=3","gravatar_id":"","url":"https://api.github.com/users/taiidani","html_url":"https://github.com/taiidani","followers_url":"https://api.github.com/users/taiidani/followers","following_url":"https://api.github.com/users/taiidani/following{/other_user}","gists_url":"https://api.github.com/users/taiidani/gists{/gist_id}","starred_url":"https://api.github.com/users/taiidani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taiidani/subscriptions","organizations_url":"https://api.github.com/users/taiidani/orgs","repos_url":"https://api.github.com/users/taiidani/repos","events_url":"https://api.github.com/users/taiidani/events{/privacy}","received_events_url":"https://api.github.com/users/taiidani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Support","name":"Support","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-28T16:01:02Z","updated_at":"2016-10-14T22:00:06Z","closed_at":"2016-10-14T22:00:05Z","body":"With the following composer.json:\r\n\r\n```json\r\n{\r\n    \"name\": \"vacasa/common\",\r\n    \"autoload\": {\r\n        \"files\": [\"autoload.php\"]\r\n    },\r\n    \"require\": {\r\n        \"sabre/xml\": \"~1.4\",\r\n        \"lstrojny/functional-php\": \"~1.2\",\r\n        \"giggsey/libphonenumber-for-php\": \"~7.0\",\r\n        \"authorizenet/authorizenet\": \"1.8.3\",\r\n        \"aws/aws-sdk-php\": \"2.7.*\",\r\n        \"geoip2/geoip2\": \"2.3.*\",\r\n        \"nikic/fast-route\": \"~0.5\",\r\n        \"owasp/phprbac\": \"2.0.*\",\r\n        \"pda/pheanstalk\": \"3.1.*\",\r\n        \"predis/predis\": \"~1.0\",\r\n        \"twig/twig\": \"~1.16\",\r\n        \"twig/extensions\": \"~1.2\",\r\n        \"raven/raven\": \"0.10.*\",\r\n        \"phpoffice/phpexcel\": \"1.8.1\",\r\n        \"hassankhan/config\": \"~0.10\",\r\n        \"mailgun/mailgun-php\": \"~1.7\",\r\n        \"swiftmailer/swiftmailer\": \"~5.4\",\r\n        \"mandrill/mandrill\": \"~1.0\",\r\n        \"plivo/plivo-php\": \"^1.0\",\r\n        \"illuminate/database\": \"5.1.*\",\r\n        \"illuminate/events\": \"5.1.*\",\r\n        \"lesstif/php-jira-rest-client\": \"1.7.0\"\r\n    },\r\n    \"require-dev\": {\r\n        \"shanethehat/pretty-xml\": \"~1.0.2\",\r\n        \"codeception/codeception\": \"~2.1\",\r\n        \"jdorn/sql-formatter\": \"~1\"\r\n    }\r\n}\r\n```\r\n\r\nComposer version: 1.1.3\r\n\r\nWhen I run `composer install --no-dev`, the packages all indicate a successful installation but sometimes packages do not install correctly. Most of the time the package is [libphonenumber-for-php](https://github.com/giggsey/libphonenumber-for-php). I have [filed an issue](https://github.com/giggsey/libphonenumber-for-php/issues/124) with the maintainer and was asked to forward to the Composer team for support.\r\n\r\nWhen performing a `composer install` the library appears to update, but instead of adding new code to `src/libphonenumber` it actually removes [most of] the code in `src/libphonenumber` and instead places the new code under `src/src/libphonenumber`. The presence of this redundant `src` folder in the directory tree makes the autoloader miss, and thus causes \"Class 'libphonenumber\\PhoneNumberUtil' not found\" errors throughout our codebase after each deploy.\r\n\r\nCompletely deleting the package from `vendor` and reinstalling clean will solve the problem once, but the problem crops up again during the next `composer install`."}}
{"actor":{"display_login":"taiidani"}}