問題
ruby 3.2.1がリリースされたので、rbenvで3.2.1をインストールしようとし、brewの更新で失敗した。
$ rbenv install 3.2.1
ruby-build: definition not found: 3.2.1
See all available versions with `rbenv install --list'.
If the version you need is missing, try upgrading ruby-build:
brew update && brew upgrade ruby-build
$ brew update && brew upgrade ruby-build
fatal: couldn't find remote ref refs/heads/master
Error: Fetching /usr/local/Homebrew/Library/Taps/mono0926/homebrew-license-plist failed!
Updated 2 taps (heroku/brew and homebrew/core).
==> New Formulae
astgen juicefs libsolv soplex symlinks touca youplot
crfsuite kuttl micromamba spek tl-expected utftex zsh-autocomplete
==> Outdated Formulae
aom gdbm heroku jpeg-xl node postgresql@14 sdl2
carthage git-flow heroku-node libffi nodebrew python@3.9 swiftlint
cmake gobject-introspection jpeg libx11 openjdk rswift wget
freetype gradle jpeg-turbo license-plist openssl@1.1 ruby-build
You have 27 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
Error: Some taps failed to update!
The following taps can not read their remote branches:
mono0926/license-plist
This is happening because the remote branch was renamed or deleted.
解決
フェッチできないブランチを削除し、再度クローンし直した。
$ cd /usr/local/Homebrew/Library/Taps/mono0926/
$ rm -rf homebrew-license-plist
$ git clone git@github.com:mono0926/homebrew-license-plist.git
$ brew tap --repair // これは必要であるかわからないが試していく過程で実行した
$ brew update && brew upgrade ruby-build
$ rbenv install --list
2.7.7
3.0.5
3.1.3
3.2.1
jruby-9.4.1.0
mruby-3.1.0
picoruby-3.0.0
truffleruby-22.3.1
truffleruby+graalvm-22.3.1
Only latest stable releases for each Ruby implementation are shown.
Use 'rbenv install --list-all / -L' to show all local versions.