{"action":"created","issue":{"url":"https://api.github.com/repos/buo/homebrew-cask-upgrade/issues/95","repository_url":"https://api.github.com/repos/buo/homebrew-cask-upgrade","labels_url":"https://api.github.com/repos/buo/homebrew-cask-upgrade/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/buo/homebrew-cask-upgrade/issues/95/comments","events_url":"https://api.github.com/repos/buo/homebrew-cask-upgrade/issues/95/events","html_url":"https://github.com/buo/homebrew-cask-upgrade/issues/95","id":330875405,"node_id":"MDU6SXNzdWUzMzA4NzU0MDU=","number":95,"title":"Error: undefined method `caskroom' for Hbc:Module","user":{"login":"agross","id":16245,"node_id":"MDQ6VXNlcjE2MjQ1","avatar_url":"https://avatars1.githubusercontent.com/u/16245?v=4","gravatar_id":"","url":"https://api.github.com/users/agross","html_url":"https://github.com/agross","followers_url":"https://api.github.com/users/agross/followers","following_url":"https://api.github.com/users/agross/following{/other_user}","gists_url":"https://api.github.com/users/agross/gists{/gist_id}","starred_url":"https://api.github.com/users/agross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agross/subscriptions","organizations_url":"https://api.github.com/users/agross/orgs","repos_url":"https://api.github.com/users/agross/repos","events_url":"https://api.github.com/users/agross/events{/privacy}","received_events_url":"https://api.github.com/users/agross/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2018-06-09T10:40:51Z","updated_at":"2018-09-07T07:51:01Z","closed_at":"2018-06-11T06:19:59Z","author_association":"NONE","body":"```sh\r\n$ brew cu\r\nError: undefined method `caskroom' for Hbc:Module\r\n/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/lib/extend/hbc.rb:1:in `<top (required)>'\r\n/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3_2/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3_2/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/lib/bcu.rb:6:in `<top (required)>'\r\n/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3_2/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3_2/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/cmd/brew-cu.rb:32:in `<top (required)>'\r\n/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3_2/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3_2/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n/usr/local/Homebrew/Library/Homebrew/utils.rb:18:in `require?'\r\n/usr/local/Homebrew/Library/Homebrew/brew.rb:105:in `<main>'\r\n\r\n$ brew --version\r\nHomebrew 1.6.7-56-g9ebcef7\r\nHomebrew/homebrew-core (git revision 512758; last commit 2018-06-09)\r\n\r\n$ brew cask --version\r\nHomebrew-Cask 1.6.7-56-g9ebcef7\r\nHomebrew/homebrew-cask (git revision c97f0; last commit 2018-06-09)\r\n\r\n$ brew irb\r\n=> Interactive Homebrew Shell\r\nExample commands available with: brew irb --examples\r\nirb(main):001:0> Hbc.methods.grep /cask/\r\n=> []\r\n```"},"comment":{"url":"https://api.github.com/repos/buo/homebrew-cask-upgrade/issues/comments/419354458","html_url":"https://github.com/buo/homebrew-cask-upgrade/issues/95#issuecomment-419354458","issue_url":"https://api.github.com/repos/buo/homebrew-cask-upgrade/issues/95","id":419354458,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTM1NDQ1OA==","user":{"login":"vitorgalvao","id":1699443,"node_id":"MDQ6VXNlcjE2OTk0NDM=","avatar_url":"https://avatars1.githubusercontent.com/u/1699443?v=4","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":"2018-09-07T07:51:01Z","updated_at":"2018-09-07T07:51:01Z","author_association":"NONE","body":"> I basically want to include apps that have `auto_updates true` in the upgrade. (…) As far as I can see, I could kind of get that using `brew cask upgrade --greedy`, but that'll always include `version :latest` apps.\r\n\r\nI’ve seen other people that want the upgrade to include `auto_updates true` but not `version :latest`. It’s the exact opposite of what you should want, and you’re letting supposed download time get in the way. Add `&& exit` and walk away.\r\n\r\n`version :latest` are exactly the casks we can’t control the version of. By excluding those from the upgrade, you’re letting them sit in a permanently outdated mode. That’s may not be too bad, and we try to remove `:latest` whenever possible.\r\n\r\nWhen you `upgrade` `auto_updates true` casks, however, *you may be getting a downgrade*. Naturally, we can only upgrade you to the latest version in the cask, and that may be earlier than what you have (it’s common for upstream to release updates selectively).\r\n\r\nEven if you’re upgrading to the correct version, you’re also spending the bandwidth to download `auto_updates true` casks before you need them (and again, don’t forget it might be an accidental downgrade, wasting further), and you may not even use that version. So I don’t really get the argument: you want to save time/bandwidth by not upgrading `version :latest`, but then you’re wasting it on upgrading `auto_updates true`. If anything, you should always do the reverse.\r\n\r\n> Having additional authenticity checks using checksums from a third-party source\r\n\r\nPlease don’t trust us as “additional authenticity checks”, [because we’re not](https://github.com/Homebrew/homebrew-cask/issues/48862):\r\n\r\n> It’s impossible for us to know when an app was tampered with and we need to set expectations accordingly.\r\n\r\nThe `sha256` verification we do should always be viewed as an integrity check (i.e. did it download correctly), not a security (let alone authenticity) feature. The one feature we added that provided true security (quarantining) might need to be rolled back, because [the way Apple went about it is all good intentions and bad implementation](https://github.com/Homebrew/homebrew-cask/issues/51554#issuecomment-419276372)."}}
{"actor":{"display_login":"vitorgalvao"}}