os/mac/diagnostic: check for deprecated cask taps.

We keep seeing users popping up with these (#7449) so advise an untap.
This commit is contained in:
Mike McQuaid 2020-05-08 09:18:55 +01:00
parent 29abc81f51
commit 2b224a66a5
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -345,6 +345,17 @@ module Homebrew
directory on the same volume as your Cellar.
EOS
end
def check_deprecated_caskroom_taps
tapped_caskroom_taps = Tap.select { |t| t.user == "caskroom" }.map(&:repo)
return if tapped_caskroom_taps.empty?
<<~EOS
You have the following deprecated, cask taps tapped:
Caskroom/homebrew-#{tapped_caskroom_taps.join("\n Caskroom/homebrew-")}
Untap them with `brew untap`.
EOS
end
end
end
end