{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/2845","repository_url":"https://api.github.com/repos/rust-lang/cargo","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/2845/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/2845/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/2845/events","html_url":"https://github.com/rust-lang/cargo/issues/2845","id":164684852,"number":2845,"title":"`cargo` hangs trying to update the registry if github is forced to ssh in `gitconfig`","user":{"login":"nelhage","id":16725,"avatar_url":"https://avatars.githubusercontent.com/u/16725?v=3","gravatar_id":"","url":"https://api.github.com/users/nelhage","html_url":"https://github.com/nelhage","followers_url":"https://api.github.com/users/nelhage/followers","following_url":"https://api.github.com/users/nelhage/following{/other_user}","gists_url":"https://api.github.com/users/nelhage/gists{/gist_id}","starred_url":"https://api.github.com/users/nelhage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelhage/subscriptions","organizations_url":"https://api.github.com/users/nelhage/orgs","repos_url":"https://api.github.com/users/nelhage/repos","events_url":"https://api.github.com/users/nelhage/events{/privacy}","received_events_url":"https://api.github.com/users/nelhage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-07-09T20:43:42Z","updated_at":"2016-07-15T16:35:28Z","closed_at":null,"body":"In my `.gitconfig`, I have\r\n\r\n```\r\n[url \"git@github.com:\"]\r\n\tinsteadOf = https://github.com/\r\n```\r\n\r\n(with the goal of always cloning over `ssh` and using my ssh credentials for private repositories).\r\n\r\nI just installed Rust 1.10.0 onto my Linux (Ubuntu 16.04 Xenial) laptop. ~any operation I do with `cargo` prints\r\n\r\n```\r\n    Updating registry `https://github.com/rust-lang/crates.io-index`\r\n```\r\n\r\nand then hangs forever. `strace` reveals it repeatedly attempting to talk to my `ssh-agent` and bailing:\r\n\r\n```\r\nsocket(PF_LOCAL, SOCK_STREAM, 0)        = 5\r\nconnect(5, {sa_family=AF_LOCAL, sun_path=\"/home/nelhage/.ssh/auth\"}, 110) = 0\r\nsendto(5, \"\\0\\0\\0\\1\", 4, 0, NULL, 0)    = 4\r\nsendto(5, \"\\v\", 1, 0, NULL, 0)          = 1\r\nrecvfrom(5, \"...\", 4, 0, NULL, NULL) = 4\r\nrecvfrom(5, \"...\"..., 569, 0, NULL, NULL) = 569\r\nsendto(4, \"...\"..., 64, MSG_NOSIGNAL, NULL, 0) = -1 EPIPE (Broken pipe)\r\nclose(5)                                = 0\r\nclose(5)                                = -1 EBADF (Bad file descriptor)\r\n```\r\n\r\n(contents of the reads and writes redacted in case the binary contains something sensitive…)\r\n\r\nRemoving the `url.git@github.com:.insteadOf` stanza from `.gitconfig` fixes it."},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/233002027","html_url":"https://github.com/rust-lang/cargo/issues/2845#issuecomment-233002027","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/2845","id":233002027,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T16:35:28Z","updated_at":"2016-07-15T16:35:28Z","body":"Ok, no worries. If you end up running out of time just let me know and I'll try to cook up a patch."}}
{"actor":{"display_login":"alexcrichton"}}