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 msg during cleanup #61

Closed jrking123 closed 7 years ago

jrking123 commented 7 years ago

Hi, during the sequence:

brew cu --all --yes --cleanup
brew cask cleanup

The following error is returned. I've seen it on apps other than flux.

==> Found outdated apps
=================================================================
No.  Name   Cask  Current  Latest  Auto-Update  State
=================================================================
1/1  f.lux  flux  39.98    39.981  Y            forced to upgrade
=================================================================
==> Upgrading flux to 39.981
==> Downloading https://justgetflux.com/mac/Flux39.981.zip
######################################################################## 100.0%
==> Verifying checksum for Cask flux
==> Installing Cask flux
Warning: It seems there is already an App at '/Applications/Flux.app'; overwriting.
==> Removing App '/Applications/Flux.app'.
==> Moving App 'Flux.app' to '/Applications/Flux.app'.
🍺  flux was successfully installed!
Error: undefined method `default' for Hbc::CLI::Cleanup:Class
/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/lib/bcu.rb:47:in `process'
/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/cmd/brew-cu.rb:29:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Homebrew/Library/Homebrew/brew.rb:25:in `require?'
/usr/local/Homebrew/Library/Homebrew/brew.rb:106:in `<main>'
==> Removing cached downloads
/Users/jking/Library/Caches/Homebrew/Cask/flux--39.981.zip
==> This operation has freed approximately 1.7MB of disk space.
Homebrew-Cask 1.2.2-2-gb9cfd2cb5
caskroom/homebrew-cask (git revision a2b37; last commit 2017-06-05)
daylightbrightledlight commented 7 years ago

This bug still isn't fixed. I think this is related to https://github.com/buo/homebrew-cask-upgrade/commit/9d6c491398f94dcfb3a62a2e5788fa1a690a860f and https://github.com/buo/homebrew-cask-upgrade/issues/35.