mxcl/homebrew — Issue #8258: brew update failed, did git reset, now brew upgrade fails
Author: fjarlq
Created: 2011-10-24 06:01:02+00:00
State: open

Running OSX 10.7.2 with the latest Xcode.

https://gist.github.com/1308441

Log files of what transpired are in the gist. Here's the story:

1) I ran "brew install dict" and this went fine.

2) Figured I'd update. Ran "brew update" and got the complaint you see in the gist about a bunch of .rb files that supposedly have local changes. I have never touched those files though.

3) "brew doctor" had no advice for me about local changes to .rb files.

4) I checked on Homebrew's Common Issues page, and it said do a git reset when encountering the overwriting problem. So I did.

5) Now brew update works. Yay. But...

6) brew upgrade fails, and it instructed me to file this bug. See the gist, but the error text is:

> brew upgrade
Error: undefined method `include?' for nil:NilClass
Please report this bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
/usr/local/Library/Homebrew/formula.rb:393:in `canonical_name'
/usr/local/Library/Homebrew/formula.rb:425:in `factory'
/usr/local/Library/Contributions/examples/brew-upgrade.rb:7
/usr/local/Library/Contributions/examples/brew-upgrade.rb:7:in `map'
/usr/local/Library/Contributions/examples/brew-upgrade.rb:7
/usr/local/bin/brew:46:in `require'
/usr/local/bin/brew:46:in `require?'
/usr/local/bin/brew:79

7) Don't know enough about Homebrew to know how to proceed from here.
Fortunately, dict *did* get installed as I wanted, before all this went down....