buo / homebrew-cask-upgrade

A command line tool for upgrading every outdated app installed by Homebrew Cask
MIT License
2.4k stars 90 forks source link

Error on `brew cu` #103

Closed luispuerto closed 5 years ago

luispuerto commented 5 years ago
$ brew cu
==> Options
Include auto-update (-a): false
Include latest (-f): false
==> Updating Homebrew
Error: uninitialized constant Hbc::SystemCommand
Did you mean?  SystemCommand
/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/lib/extend/hbc.rb:56:in `brew_update'
/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/lib/bcu.rb:20:in `process'
/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/cmd/brew-cu.rb:34:in `<top (required)>'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/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:93:in `<main>'
ydesgagn commented 5 years ago

Same here.

singularitti commented 5 years ago

This same to happen after Homebrew commit #4517.

karanbhamra commented 5 years ago

I fixed it by editing the file: /usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/lib/extend/hbc.rb

on line 56 get rid of the Hbc:: before the SystemCommand and it should look like SystemCommand.run(HOMEBREW_BREW_FILE, args: ["update"], print_stderr: true, print_stdout: false)

save it and then run command again to check for update and it should work.

huntout commented 5 years ago

@karanbhamra thanks, it works. maybe you should pull a request.

KarlZeo commented 5 years ago

I fix it and create new pr

KarlZeo commented 5 years ago

@buo

ljakab commented 5 years ago

Same here.

ghost commented 5 years ago

@karanbhamra thx,it work.

KarlZeo commented 5 years ago

@buo please close this issues,because bug is fix