{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/install/issues/48","repository_url":"https://api.github.com/repos/Homebrew/install","labels_url":"https://api.github.com/repos/Homebrew/install/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/install/issues/48/comments","events_url":"https://api.github.com/repos/Homebrew/install/issues/48/events","html_url":"https://github.com/Homebrew/install/issues/48","id":166138601,"number":48,"title":"error creating HOMEBREW_CACHE tree","user":{"login":"graemej","id":4717622,"avatar_url":"https://avatars.githubusercontent.com/u/4717622?v=3","gravatar_id":"","url":"https://api.github.com/users/graemej","html_url":"https://github.com/graemej","followers_url":"https://api.github.com/users/graemej/followers","following_url":"https://api.github.com/users/graemej/following{/other_user}","gists_url":"https://api.github.com/users/graemej/gists{/gist_id}","starred_url":"https://api.github.com/users/graemej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemej/subscriptions","organizations_url":"https://api.github.com/users/graemej/orgs","repos_url":"https://api.github.com/users/graemej/repos","events_url":"https://api.github.com/users/graemej/events{/privacy}","received_events_url":"https://api.github.com/users/graemej/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-18T16:41:58Z","updated_at":"2016-07-20T23:10:12Z","closed_at":"2016-07-20T23:10:12Z","body":"It looks like this change (https://github.com/Homebrew/install/commit/d7423c3feec9ca8b0f0c15ef3f7a84dcfd9da406)  to `HOMEBREW_CACHE` causes a path through the installer to fail due to missing directories.\r\n\r\nI believe the root cause is the cache location changing from `/Library/Caches/Homebrew` to `$HOME/Library/Caches`.\r\n\r\nThere's no guarantee that the user will have a `~/Library/Caches` directory so the setup fails at the first `mkdir` call.  The commands issued look like:\r\n\r\n```\r\n  /usr/bin/sudo /bin/chmod g+rwx /usr/local/.\r\n  /usr/bin/sudo /usr/sbin/chown myuser /usr/local/.\r\n  /usr/bin/sudo /usr/bin/chgrp mygroup /usr/local/.\r\n  /usr/bin/sudo /bin/mkdir /Users/myuser/Library/Caches/Homebrew\r\n  mkdir: /Users/myuser/Library/Caches: No such file or directory\r\n```\r\n\r\nIf moving the cache from a shared to user-specific location was intentional the the `mkdir` invocation should probably have a `-p` to create missing parent directories.  ping: @xu-cheng. "},"comment":{"url":"https://api.github.com/repos/Homebrew/install/issues/comments/234111627","html_url":"https://github.com/Homebrew/install/issues/48#issuecomment-234111627","issue_url":"https://api.github.com/repos/Homebrew/install/issues/48","id":234111627,"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},"created_at":"2016-07-20T23:10:12Z","updated_at":"2016-07-20T23:10:12Z","body":"> OS X creates ~/Library/Caches before a user even logs in for the first time, so that sounds like a packer bug to me.\r\n\r\nAgreed, sorry!"}}
{"actor":{"display_login":"MikeMcQuaid"}}