{"action":"created","issue":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/15426","labels_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/15426/labels{/name}","comments_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/15426/comments","events_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/15426/events","html_url":"https://github.com/caskroom/homebrew-cask/pull/15426","id":119062780,"number":15426,"title":"generic_unar.rb: use -force-overwrite","user":{"login":"vitorgalvao","id":1699443,"avatar_url":"https://avatars.githubusercontent.com/u/1699443?v=3","gravatar_id":"","url":"https://api.github.com/users/vitorgalvao","html_url":"https://github.com/vitorgalvao","followers_url":"https://api.github.com/users/vitorgalvao/followers","following_url":"https://api.github.com/users/vitorgalvao/following{/other_user}","gists_url":"https://api.github.com/users/vitorgalvao/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorgalvao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorgalvao/subscriptions","organizations_url":"https://api.github.com/users/vitorgalvao/orgs","repos_url":"https://api.github.com/users/vitorgalvao/repos","events_url":"https://api.github.com/users/vitorgalvao/events{/privacy}","received_events_url":"https://api.github.com/users/vitorgalvao/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/caskroom/homebrew-cask/labels/awaiting%20maintainer%20feedback","name":"awaiting maintainer feedback","color":"ffdc00"},{"url":"https://api.github.com/repos/caskroom/homebrew-cask/labels/bug","name":"bug","color":"d83131"},{"url":"https://api.github.com/repos/caskroom/homebrew-cask/labels/core","name":"core","color":"b10dc9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-26T15:18:22Z","updated_at":"2015-12-09T21:22:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/pulls/15426","html_url":"https://github.com/caskroom/homebrew-cask/pull/15426","diff_url":"https://github.com/caskroom/homebrew-cask/pull/15426.diff","patch_url":"https://github.com/caskroom/homebrew-cask/pull/15426.patch"},"body":"Fixes https://github.com/caskroom/homebrew-cask/issues/15025.\r\n\r\nHowever, I’m not yet entirely sure why this is needed, and we should address that.\r\n\r\nUnder [`generic_unar`](https://github.com/caskroom/homebrew-cask/blob/master/lib/hbc/container/generic_unar.rb) we’re [creating a temporary directory](https://github.com/caskroom/homebrew-cask/blob/master/lib/hbc/container/generic_unar.rb#L14) where [we unpack to](https://github.com/caskroom/homebrew-cask/blob/master/lib/hbc/container/generic_unar.rb#L15). That is causing an error:\r\n\r\n```ruby\r\n==>   ./  (dir)... Skipping existing file.\r\n==> Extraction to directory \"/var/folders/s_/k7wmmgf93wqdvpkq39ng29z80000gn/T/d20151126-2381-18l87c7\" failed (1 file failed.)\r\nError: Command failed to execute!\r\n\r\n==> Failed command:\r\n[\"#<Pathname:/usr/local/bin/unar>\", \"-q\", \"-D\", \"-o\", \"/var/folders/s_/k7wmmgf93wqdvpkq39ng29z80000gn/T/d20151126-2381-18l87c7\", \"--\", \"#<Pathname:/Library/Caches/Homebrew/suspicious-package-latest.xip>\"]\r\n```\r\n\r\nIt was the `==>   ./  (dir)... Skipping existing file.` line that gave me the insight to try and force the unpacking. It seems to work for `suspicious-package` and not break the other `unar`-dependent casks.\r\n\r\nThe problem seems to lie somewhere with the creation of the temporary directory. At first look from my quick tests, it seems like it’s not even being created, but I’m messing it up somewhere there, since if it wasn’t being created, then this fix wouldn’t work and the other `unar`-dependent cask would also be broken."},"comment":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/comments/163395447","html_url":"https://github.com/caskroom/homebrew-cask/pull/15426#issuecomment-163395447","issue_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/15426","id":163395447,"user":{"login":"vitorgalvao","id":1699443,"avatar_url":"https://avatars.githubusercontent.com/u/1699443?v=3","gravatar_id":"","url":"https://api.github.com/users/vitorgalvao","html_url":"https://github.com/vitorgalvao","followers_url":"https://api.github.com/users/vitorgalvao/followers","following_url":"https://api.github.com/users/vitorgalvao/following{/other_user}","gists_url":"https://api.github.com/users/vitorgalvao/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorgalvao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorgalvao/subscriptions","organizations_url":"https://api.github.com/users/vitorgalvao/orgs","repos_url":"https://api.github.com/users/vitorgalvao/repos","events_url":"https://api.github.com/users/vitorgalvao/events{/privacy}","received_events_url":"https://api.github.com/users/vitorgalvao/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T21:22:28Z","updated_at":"2015-12-09T21:22:28Z","body":"@adityadalal924 is correct.\r\n\r\nWe know how to fix the issue, we’re just not sure *why* it fixes the issue, as there shouldn’t be one to begin with.\r\n\r\nThe fix does seem to have no side-effects, though, so we may merge it if no one has an insight, but it’d be better to understand the root cause of the problem."}}