Skip to content

Error: undefined method `path' for Hbc::Caskroom:Module #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
electriquo opened this issue Jun 11, 2018 · 14 comments
Closed

Error: undefined method `path' for Hbc::Caskroom:Module #97

electriquo opened this issue Jun 11, 2018 · 14 comments

Comments

@electriquo
Copy link

electriquo commented Jun 11, 2018

i am running brew cu -y -a daily. since today, i got the following error

$ brew cu -y -a
Error: undefined method `path' for Hbc::Caskroom:Module
/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/lib/extend/hbc.rb:1:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/lib/bcu.rb:6:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/cmd/brew-cu.rb:32:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Homebrew/Library/Homebrew/utils.rb:18:in `require?'
/usr/local/Homebrew/Library/Homebrew/brew.rb:101:in `<main>'

clearly it has something to do with this commit.

when i revert the commit, everything works as expected.
any idea?

@SkyRaker
Copy link

I met the same issue TAT.

@TomorrowWu
Copy link

I met the same thing

@randpop
Copy link

randpop commented Jun 11, 2018

Same here...

@ondrejfuhrer
Copy link
Collaborator

Hey @y0y0z , try running brew update before, seems like you have old version of brew running with the new version of brew-cask-upgrade

@zym013579
Copy link

@ondrejfuhrer In my opinion, seems like he have old version of brew-cask-upgrade running with the new version of brew

@ghost
Copy link

ghost commented Jun 11, 2018

I have the same

@ghost
Copy link

ghost commented Jun 11, 2018

me too

@alioguz
Copy link

alioguz commented Jun 11, 2018

Try running cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update

@ondrejfuhrer
Copy link
Collaborator

@zym013579 Nope, since the Hbc::Caskroom.path is the new way of getting the caskroom path 🙂

@alioguz Was just writing the same thing 👍

@SkyRaker
Copy link

@alioguz Cooooool!

@zym013579
Copy link

@ondrejfuhrer got it, thanks

@randpop
Copy link

randpop commented Jun 11, 2018

I did run brew update before, but no luck with that.
@alioguz: that did the trick! 👍

@marioleed marioleed mentioned this issue Jun 11, 2018
@GentleHoneyLover
Copy link

Had the same problem. Solution by @alioguz fixed it (thanks!)

@buo
Copy link
Owner

buo commented Jun 11, 2018

I fixed this issue in the commit 36b26b3 by trying to call both Hbc.caskroom and Hbc::Caskroom.path. Thanks!

@buo buo closed this as completed Jun 11, 2018
@Kamik423 Kamik423 mentioned this issue Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants