{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4884","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/4884/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4884/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4884/events","html_url":"https://github.com/composer/composer/issues/4884","id":131622420,"number":4884,"title":"Drupal can't use composer install because it requires a Github Auth token on installation","user":{"login":"klausi","id":213229,"avatar_url":"https://avatars.githubusercontent.com/u/213229?v=3","gravatar_id":"","url":"https://api.github.com/users/klausi","html_url":"https://github.com/klausi","followers_url":"https://api.github.com/users/klausi/followers","following_url":"https://api.github.com/users/klausi/following{/other_user}","gists_url":"https://api.github.com/users/klausi/gists{/gist_id}","starred_url":"https://api.github.com/users/klausi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klausi/subscriptions","organizations_url":"https://api.github.com/users/klausi/orgs","repos_url":"https://api.github.com/users/klausi/repos","events_url":"https://api.github.com/users/klausi/events{/privacy}","received_events_url":"https://api.github.com/users/klausi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/composer/composer/milestones/9","html_url":"https://github.com/composer/composer/milestones/Backwards%20Compatible","labels_url":"https://api.github.com/repos/composer/composer/milestones/9/labels","id":524151,"number":9,"title":"Backwards Compatible","description":"Issues that may impact BC in any way and that should be completed before getting out of alpha","creator":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":53,"state":"open","created_at":"2013-12-31T16:37:59Z","updated_at":"2016-02-17T11:22:35Z","due_on":null,"closed_at":null},"comments":27,"created_at":"2016-02-05T11:45:44Z","updated_at":"2016-02-18T14:19:55Z","closed_at":null,"body":"See also https://www.drupal.org/node/1475510\r\n\r\nProblem: when running composer install the user is prompted to input a Github auth token. That is a serious burden for 3000+ Drupal core contributors that will need to run composer install and a significant waste of developer time. Some users do not want to create a Github account.\r\n\r\nIt seems that composer only prompts for a Github auth token in interactive shells? I have never seen that prompt on Travis CI for PHP projects for example.\r\n\r\nProposed solution: make composer install on interactive shells behave the same as in non interactive ones: always fall back to install from source (git clone) and never prompt the user for a Github token. Users should be able to opt-in for faster downloads with Github auth tokens, but this should never be an interactive usability WTF."},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/185742686","html_url":"https://github.com/composer/composer/issues/4884#issuecomment-185742686","issue_url":"https://api.github.com/repos/composer/composer/issues/4884","id":185742686,"user":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T14:19:55Z","updated_at":"2016-02-18T14:19:55Z","body":"I guess we could do this yes, as long as there's a fallback. It can probably be hooked in after  FileDownloader:87 once we have $urls we could go through them and add the direct URLs before the api one if one is found. And I guess for future proofing it, in case one of these fails we probably should stop trying for the other URLs. Just in case github removes support for that composer won't try everything with a timeout/error for every package."}}