mxcl/homebrew — Issue #8777: brew upgrade fails with Ruby error
Author: jlieske
Created: 2011-11-24 20:57:31+00:00
State: open

I wanted to upgrade some of my Homebrew-installed packages. I've done this before without incident, but today the process failed.

sudo -u admin brew update
--- succeeded, did a git pull and listed new packages
sudo -u admin brew upgrade
--- failed with the following message:
Error: undefined method `include?' for nil:NilClass

See the Gist at https://gist.github.com/1392249 for the full `brew upgrade` and `brew doctor` logs.

----
Note that I use `sudo -u admin` to install Homebrew packages. My normal user doesn't have admin privileges and I don't want it to have write access to /usr/local, so I install Homebrew packages as administrator. The only tricky bit was making sure admin could write to ~/Library/Caches/Homebrew. Everything else has seemed to work automatically.