{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/1941","repository_url":"https://api.github.com/repos/facebook/flow","labels_url":"https://api.github.com/repos/facebook/flow/issues/1941/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/1941/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/1941/events","html_url":"https://github.com/facebook/flow/pull/1941","id":160070617,"number":1941,"title":"Avoid frozen build when `git` or `.git/`+`hg` are unavailable","user":{"login":"popham","id":1271170,"avatar_url":"https://avatars.githubusercontent.com/u/1271170?v=3","gravatar_id":"","url":"https://api.github.com/users/popham","html_url":"https://github.com/popham","followers_url":"https://api.github.com/users/popham/followers","following_url":"https://api.github.com/users/popham/following{/other_user}","gists_url":"https://api.github.com/users/popham/gists{/gist_id}","starred_url":"https://api.github.com/users/popham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/popham/subscriptions","organizations_url":"https://api.github.com/users/popham/orgs","repos_url":"https://api.github.com/users/popham/repos","events_url":"https://api.github.com/users/popham/events{/privacy}","received_events_url":"https://api.github.com/users/popham/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/flow/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/facebook/flow/labels/CLA%20Signed","name":"CLA Signed","color":"eeeeee"},{"url":"https://api.github.com/repos/facebook/flow/labels/Windows%20support","name":"Windows support","color":"b60205"}],"state":"closed","locked":false,"assignee":{"login":"gabelevi","id":1887264,"avatar_url":"https://avatars.githubusercontent.com/u/1887264?v=3","gravatar_id":"","url":"https://api.github.com/users/gabelevi","html_url":"https://github.com/gabelevi","followers_url":"https://api.github.com/users/gabelevi/followers","following_url":"https://api.github.com/users/gabelevi/following{/other_user}","gists_url":"https://api.github.com/users/gabelevi/gists{/gist_id}","starred_url":"https://api.github.com/users/gabelevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabelevi/subscriptions","organizations_url":"https://api.github.com/users/gabelevi/orgs","repos_url":"https://api.github.com/users/gabelevi/repos","events_url":"https://api.github.com/users/gabelevi/events{/privacy}","received_events_url":"https://api.github.com/users/gabelevi/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-06-14T00:00:59Z","updated_at":"2016-06-21T16:59:11Z","closed_at":"2016-06-18T08:46:31Z","pull_request":{"url":"https://api.github.com/repos/facebook/flow/pulls/1941","html_url":"https://github.com/facebook/flow/pull/1941","diff_url":"https://github.com/facebook/flow/pull/1941.diff","patch_url":"https://github.com/facebook/flow/pull/1941.patch"},"body":"This came up in IRC earlier. An [unofficial package](https://aur.archlinux.org/packages/flow/) maintainer for Archlinux had his/her build freezing at `ocaml -I scripts -w -3 unix.cma scripts/gen_build_id.ml _build/hack/utils/get_build_id.gen.c`. The build is from a tarball, so the `.git/` directory is unavailable.\r\n\r\nThe user didn't have Mercurial installed. After the `git` case under `gen_build_id.ml` failed, a read under the `hg` case from stdout/stderr would not stop blocking. It looks like `create_process` doesn't recognize exit 127 when `hg` isn't found, so an `input_line` call doesn't break. This PR substitutes the `open_process_full` function which recognizes that the command doesn't exist and interrupts the `input_line` call. I suspect that the same problem arises in environments without `git` installed regardless of whether `hg` is installed."},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/227503736","html_url":"https://github.com/facebook/flow/pull/1941#issuecomment-227503736","issue_url":"https://api.github.com/repos/facebook/flow/issues/1941","id":227503736,"user":{"login":"mroch","id":3012,"avatar_url":"https://avatars.githubusercontent.com/u/3012?v=3","gravatar_id":"","url":"https://api.github.com/users/mroch","html_url":"https://github.com/mroch","followers_url":"https://api.github.com/users/mroch/followers","following_url":"https://api.github.com/users/mroch/following{/other_user}","gists_url":"https://api.github.com/users/mroch/gists{/gist_id}","starred_url":"https://api.github.com/users/mroch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroch/subscriptions","organizations_url":"https://api.github.com/users/mroch/orgs","repos_url":"https://api.github.com/users/mroch/repos","events_url":"https://api.github.com/users/mroch/events{/privacy}","received_events_url":"https://api.github.com/users/mroch/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T16:59:11Z","updated_at":"2016-06-21T16:59:11Z","body":"i think this works around it: 72759d80a884a6d870cd98792952cb7b0ba66dbb\r\n\r\nthanks for figuring out the cause!"}}
{"actor":{"display_login":"mroch"}}