Homebrew / brew

🍺 The missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
40.87k stars 9.59k forks source link

Something just broke `brew home` #2633

Closed chdiza closed 7 years ago

chdiza commented 7 years ago

brew home git gives:

--: https://git-scm.com: No such file or directory

The same is true of any formula. This just started something within the last several hours.

HOMEBREW_VERSION: 1.2.0-84-ge0ab162f8
ORIGIN: https://github.com/Homebrew/brew
HEAD: e0ab162f82921077cfb899637fdd39e426adfc9b
Last commit: 2 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 12c41349fe2bed50228d9678f6aec7e5c36fa197
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/hb
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit ivybridge
Homebrew Ruby: 2.0.0-p648
Clang: 8.1 build 802
Git: 2.13.0 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: N/A
macOS: 10.12.4-x86_64
Xcode: 8.3.2
CLT: 8.3.2.0.1.1492020469
X11: N/A

"Ready to brew".

chdiza commented 7 years ago

It's commit 8205e61e6493f7c0a91, by trial and error.

chdiza commented 7 years ago

In particular, the addtion of BROWSER to line 50 of /bin/brew is the cause of this breakage.

chdiza commented 7 years ago

I don't have $BROWSER set in my environment; I think the aforementioned code then makes HOMEBREW_BROWSER empty, and thus brew home barfs.

If I temporarily set BROWSER to open -a safari, then brew home starts working again.