{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/brew/issues/3783","repository_url":"https://api.github.com/repos/Homebrew/brew","labels_url":"https://api.github.com/repos/Homebrew/brew/issues/3783/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/brew/issues/3783/comments","events_url":"https://api.github.com/repos/Homebrew/brew/issues/3783/events","html_url":"https://github.com/Homebrew/brew/pull/3783","id":296086792,"number":3783,"title":"diagnostic: implement cache size check","user":{"login":"DomT4","id":6998367,"avatar_url":"https://avatars0.githubusercontent.com/u/6998367?v=4","gravatar_id":"","url":"https://api.github.com/users/DomT4","html_url":"https://github.com/DomT4","followers_url":"https://api.github.com/users/DomT4/followers","following_url":"https://api.github.com/users/DomT4/following{/other_user}","gists_url":"https://api.github.com/users/DomT4/gists{/gist_id}","starred_url":"https://api.github.com/users/DomT4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DomT4/subscriptions","organizations_url":"https://api.github.com/users/DomT4/orgs","repos_url":"https://api.github.com/users/DomT4/repos","events_url":"https://api.github.com/users/DomT4/events{/privacy}","received_events_url":"https://api.github.com/users/DomT4/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":37,"created_at":"2018-02-10T09:12:02Z","updated_at":"2018-02-13T11:15:29Z","closed_at":"2018-02-12T08:53:12Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Homebrew/brew/pulls/3783","html_url":"https://github.com/Homebrew/brew/pull/3783","diff_url":"https://github.com/Homebrew/brew/pull/3783.diff","patch_url":"https://github.com/Homebrew/brew/pull/3783.patch"},"body":"- [x] Have you followed the guidelines in our [Contributing](https://github.com/Homebrew/brew/blob/master/CONTRIBUTING.md) document?\r\n- [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/Homebrew/brew/pulls) for the same change?\r\n- [x] Have you added an explanation of what your changes do and why you'd like us to include them?\r\n- [ ] Have you written new tests for your changes? [Here's an example](https://github.com/Homebrew/homebrew/pull/49031).\r\n- [x] Have you successfully run `brew style` with your changes locally?\r\n- [x] Have you successfully run `brew tests` with your changes locally?\r\n\r\n-----\r\n\r\nHaven't worked up a test yet because I suspect there's going to be some discussion on this & how to implement it, if at all.\r\n\r\nIt has been a repetitive theme that people don't know about `brew cleanup` and have no idea how much space `HOMEBREW_CACHE` is occupying, which can be a significant chunk, especially on Macs with smaller storage capacities. Seriously, do any search on Twitter for `brew cleanup` as a starting data point.\r\n\r\nThis attempts to shine some light on the situation for users, whilst carving out an exemption for CI where massive caches are expected & in some way desirable. I stuck it in `diagnostic` but it could have a place in `brew config` or even `brew --cache` somewhere. Opinions on everything welcome."},"comment":{"url":"https://api.github.com/repos/Homebrew/brew/issues/comments/365236076","html_url":"https://github.com/Homebrew/brew/pull/3783#issuecomment-365236076","issue_url":"https://api.github.com/repos/Homebrew/brew/issues/3783","id":365236076,"user":{"login":"MikeMcQuaid","id":125011,"avatar_url":"https://avatars2.githubusercontent.com/u/125011?v=4","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},"created_at":"2018-02-13T11:15:29Z","updated_at":"2018-02-13T11:15:29Z","author_association":"OWNER","body":"I think we should alert users to `brew cleanup` and run it automatically for them if/when we can but I don't think a `brew doctor` warning is the right place for this any more, sorry @DomT4."}}
{"actor":{"display_login":"MikeMcQuaid"}}