brew updateでHOMEBREW_CORE_FORMULA_REGEX云々のエラー

久々にbrew updateを実行した際に

1
2
3
4
5
6
7
8
9
10
11
brew update
Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:260:in `loader_for'
/usr/local/Library/Homebrew/formulary.rb:205:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:173:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:159:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:159:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:140:in `<main>'

のようなエラーが出てしまった。

結論から言えば、もう一度brew updateすると無事処理が完了した。

cf. Error: uninitialized constant Formulary::HOMEBREW_CORE_FORMULA_REGEX · Issue #42553 · Homebrew/homebrew · GitHub