os/mac/diagnostic: suggest untapping phinze/cask.

As seen in https://github.com/Homebrew/brew/issues/7605.
This commit is contained in:
Mike McQuaid 2020-05-20 10:05:23 +01:00
parent d254730e78
commit 0ea2c5f15b
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -347,12 +347,13 @@ module Homebrew
end end
def check_deprecated_caskroom_taps def check_deprecated_caskroom_taps
tapped_caskroom_taps = Tap.select { |t| t.user == "caskroom" }.map(&:repo) tapped_caskroom_taps = Tap.select { |t| t.user == "caskroom" || t.name == "phinze/cask" }
.map(&:name)
return if tapped_caskroom_taps.empty? return if tapped_caskroom_taps.empty?
<<~EOS <<~EOS
You have the following deprecated, cask taps tapped: You have the following deprecated, cask taps tapped:
Caskroom/homebrew-#{tapped_caskroom_taps.join("\n Caskroom/homebrew-")} #{tapped_caskroom_taps.join("\n ")}
Untap them with `brew untap`. Untap them with `brew untap`.
EOS EOS
end end