Skip to content
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

/usr/local/Cellar/brew-cask/0.49.0 not getting updated? #7961

Closed
mkillianey opened this issue Dec 10, 2014 · 3 comments
Closed

/usr/local/Cellar/brew-cask/0.49.0 not getting updated? #7961

mkillianey opened this issue Dec 10, 2014 · 3 comments

Comments

@mkillianey
Copy link

Not sure if this is a homebrew issue or a homebrew-cask issue, but here's the report:

The command brew cask install intellij-idea stopped working for me, and in trying to debug the problem, it looks like there's two out-of-sync copies of this repo, one at /usr/local/Cellar/brew-cask/0.49.0 and one at /usr/local/Library/Taps/caskroom/homebrew-cask. The one in the Cellar is not getting updated.

Here's the error I see when trying to install intellij-idea:

brew cask install intellij-idea
==> Caveats
intellij-idea may require Java 7 (an older version) available from the
caskroom-versions repository via

  brew cask install caskroom/versions/java7

Alternatively, intellij-idea can be modified to use Java 8 as described in

  https://github.com/caskroom/homebrew-cask/issues/4500#issuecomment-43955932

==> Downloading http://download.jetbrains.com/idea/ideaIU-14.0.2.dmg
Already downloaded: /Library/Caches/Homebrew/intellij-idea-14.0.2.dmg
Error: no implicit conversion of nil into String
Please report this bug:
    https://github.com/caskroom/homebrew-cask/issues
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/digest.rb:44:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/digest.rb:44:in `open'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/digest.rb:44:in `file'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/digest.rb:29:in `file'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/download.rb:40:in `block in _check_sums'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/download.rb:38:in `each'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/download.rb:38:in `_check_sums'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/download.rb:31:in `perform'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/installer.rb:74:in `download'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/installer.rb:51:in `install'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/cli/install.rb:20:in `block in install_casks'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/cli/install.rb:17:in `each'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/cli/install.rb:17:in `install_casks'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/cli/install.rb:6:in `run'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/cli.rb:81:in `run_command'
/usr/local/Cellar/brew-cask/0.49.0/rubylib/cask/cli.rb:121:in `process'
/usr/local/bin/brew-cask.rb:42: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/Library/brew.rb:59:in `require?'
/usr/local/Library/brew.rb:142:in `<main>'

Here's showing that the two copies are out of sync:

$ find /usr/local -name intellij-idea.rb
/usr/local/Cellar/brew-cask/0.49.0/Casks/intellij-idea.rb
/usr/local/Library/Taps/caskroom/homebrew-cask/Casks/intellij-idea.rb
$ diff $(find /usr/local -name intellij-idea.rb)   
2,3c2,3
<   version '14.0.1'
<   sha256 'd2883c183b0dec1466c7b2bb3b105af48884da88c580207402a4b1a0d0c0a2d2'

---
>   version '14.0.2'
>   sha256 'cfab01c2b5b7265f0cf7b365872180261154a5e3ff1fc710c545d36e1f936a7b'
19a20
>   # todo: transitional, replace #{self.name...} with #{token}
21c22
<     #{title} may require Java 7 (an older version) available from the

---
>     #{self.name.sub(/^KlassPrefix/,'').gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').downcase} may require Java 7 (an older version) available from the
26c27
<     Alternatively, #{title} can be modified to use Java 8 as described in

---
>     Alternatively, #{self.name.sub(/^KlassPrefix/,'').gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').downcase} can be modified to use Java 8 as described in

Here's the output of brew version, brew doctor and brew cask doctor:

$ brew --version
0.9.5
$ brew cask --version
0.49.0
$ brew doctor
Your system is ready to brew.
$ brew cask doctor
==> OS X Version:
10.10.1
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p481
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
==> Homebrew Version:
0.9.5
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew Repository Path:
/usr/local
==> Homebrew Origin:
https://github.com/Homebrew/homebrew
==> Homebrew-cask Version:
0.49.0
==> Homebrew-cask Install Location:
/usr/local/Cellar/brew-cask/0.49.0
==> Homebrew-cask Staging Location:
/opt/homebrew-cask/Caskroom
==> Homebrew-cask Cached Downloads:
/Library/Caches/Homebrew
/Library/Caches/Homebrew/Casks
0 files
0.00 megs
==> Homebrew-cask Default Tap Path:
/usr/local/Library/Taps/caskroom/homebrew-cask
==> Homebrew-cask Alternate Cask Taps:
<NONE>
==> Homebrew-cask Default Tap Cask Count:
2155
==> Contents of $LOAD_PATH:
/usr/local/Cellar/brew-cask/0.49.0/rubylib
/usr/local/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin14
/Library/Ruby/Site/2.0.0/universal-darwin14
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin14
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin14
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin14
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14
==> Contents of $RUBYLIB Environment Variable:
<NONE>
==> Contents of $RUBYOPT Environment Variable:
<NONE>
==> Contents of $RUBYPATH Environment Variable:
<NONE>
==> Contents of $RBENV_VERSION Environment Variable:
<NONE>
==> Contents of $CHRUBY_VERSION Environment Variable:
<NONE>
==> Contents of $GEM_HOME Environment Variable:
<NONE>
==> Contents of $GEM_PATH Environment Variable:
<NONE>
==> Contents of $BUNDLE_PATH Environment Variable:
<NONE>
==> Contents of $PATH Environment Variable:
PATH="/usr/local/bin:/usr/local/opt/rbenv/shims:/usr/local/opt/rbenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/Library/ENV/scm"
==> Contents of $SHELL Environment Variable:
SHELL="/bin/zsh"
==> Contents of Locale Environment Variables:
LANG="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
==> Running As Privileged User:
No
@mkillianey
Copy link
Author

The following sequence seems to have made it possible for me to install the intellij-idea cask:

brew untap caskroom/cask
brew uninstall brew-cask
brew install caskroom/cask/brew-cask
brew cask install intellij-idea

FWIW, after doing this, I still see two copies of the repo:

$ find /usr/local -name intellij-idea.rb
/usr/local/Cellar/brew-cask/0.50.0/Casks/intellij-idea.rb
/usr/local/Library/Taps/caskroom/homebrew-cask/Casks/intellij-idea.rb

And they seem to be out of sync:

$ diff -q -r /usr/local/Library/Taps/caskroom/homebrew-cask /usr/local/Cellar/brew-cask/0.50.0
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: .git
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: .gitignore
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: .rspec
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: .travis.yml
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: CONDUCT.md
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: CONTRIBUTING.md
Files /usr/local/Library/Taps/caskroom/homebrew-cask/Casks/darktable.rb and /usr/local/Cellar/brew-cask/0.50.0/Casks/darktable.rb differ
Files /usr/local/Library/Taps/caskroom/homebrew-cask/Casks/xld.rb and /usr/local/Cellar/brew-cask/0.50.0/Casks/xld.rb differ
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: Gemfile
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: Gemfile.lock
Only in /usr/local/Cellar/brew-cask/0.50.0: INSTALL_RECEIPT.json
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: Rakefile
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: USAGE.md
Files /usr/local/Library/Taps/caskroom/homebrew-cask/bin/brew-cask.rb and /usr/local/Cellar/brew-cask/0.50.0/bin/brew-cask.rb differ
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: brew-cask.rb
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: developer
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: doc
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: lib
Only in /usr/local/Cellar/brew-cask/0.50.0: rubylib
Only in /usr/local/Cellar/brew-cask/0.50.0: share
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: spec
Only in /usr/local/Library/Taps/caskroom/homebrew-cask: test

Hope that helps anyone who experiences a similar problem?

@rolandwalker
Copy link
Contributor

Hi!

This is a duplicate of #7946.

We just merged a fix and cut release v0.50.0. The following command should fix the issue:

$ brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup

@mkillianey
Copy link
Author

Thanks for the quick response!

@miccal miccal removed the duplicate label Dec 23, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants