{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/38818","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38818/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38818/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38818/events","html_url":"https://github.com/Homebrew/homebrew/issues/38818","id":69410410,"number":38818,"title":"Shall we run `brew update` automatically?","user":{"login":"mikemcquaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemcquaid","html_url":"https://github.com/mikemcquaid","followers_url":"https://api.github.com/users/mikemcquaid/followers","following_url":"https://api.github.com/users/mikemcquaid/following{/other_user}","gists_url":"https://api.github.com/users/mikemcquaid/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemcquaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemcquaid/subscriptions","organizations_url":"https://api.github.com/users/mikemcquaid/orgs","repos_url":"https://api.github.com/users/mikemcquaid/repos","events_url":"https://api.github.com/users/mikemcquaid/events{/privacy}","received_events_url":"https://api.github.com/users/mikemcquaid/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":47,"created_at":"2015-04-19T10:35:39Z","updated_at":"2015-12-09T14:18:29Z","closed_at":null,"body":"This would fix a lot of issues people have. Obviously we'd need to catch/handle the \"no internet connection\" case but otherwise it seems sensible to me."},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/163251738","html_url":"https://github.com/Homebrew/homebrew/issues/38818#issuecomment-163251738","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38818","id":163251738,"user":{"login":"xu-cheng","id":3105373,"avatar_url":"https://avatars.githubusercontent.com/u/3105373?v=3","gravatar_id":"","url":"https://api.github.com/users/xu-cheng","html_url":"https://github.com/xu-cheng","followers_url":"https://api.github.com/users/xu-cheng/followers","following_url":"https://api.github.com/users/xu-cheng/following{/other_user}","gists_url":"https://api.github.com/users/xu-cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/xu-cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xu-cheng/subscriptions","organizations_url":"https://api.github.com/users/xu-cheng/orgs","repos_url":"https://api.github.com/users/xu-cheng/repos","events_url":"https://api.github.com/users/xu-cheng/events{/privacy}","received_events_url":"https://api.github.com/users/xu-cheng/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T14:18:28Z","updated_at":"2015-12-09T14:18:28Z","body":"> I'd really like if we can have no Ruby code executed before the update.\r\n\r\nThat's little paranoid and impossible. We at least need Ruby code to do minimal doctor check and git existence checking (maybe install git for non-Xcode/CLT installation). And I see little harm to execute Ruby code here, since you will always execute `brew.rb` at first place. Also I don't like to repeat code in Bash and Ruby when can be avoided.\r\n\r\n> This means there will need to be two (or more) invocations of brew.rb which has a non-trivial overhead.\r\n\r\nBoth of these two scripts are standalone. i.e. none of them will invoke brew.rb. The overhead is already at minimum. "}}