Run deprecated cask tap check on all systems

This commit is contained in:
Rylan Polster 2025-06-21 17:41:24 +00:00
parent 031160936f
commit e1873d30d4
No known key found for this signature in database
2 changed files with 13 additions and 12 deletions

View File

@ -908,6 +908,19 @@ module Homebrew
EOS
end
def check_deprecated_cask_taps
tapped_caskroom_taps = ::Tap.select { |t| t.user == "caskroom" || t.name == "phinze/cask" }
.map(&:name)
return if tapped_caskroom_taps.empty?
<<~EOS
You have the following deprecated Cask taps installed:
#{tapped_caskroom_taps.join("\n ")}
Please remove them with:
brew untap #{tapped_caskroom_taps.join(" ")}
EOS
end
def check_cask_software_versions
add_info "Homebrew Version", HOMEBREW_VERSION

View File

@ -424,18 +424,6 @@ module OS
EOS
end
def check_deprecated_caskroom_taps
tapped_caskroom_taps = ::Tap.select { |t| t.user == "caskroom" || t.name == "phinze/cask" }
.map(&:name)
return if tapped_caskroom_taps.empty?
<<~EOS
You have the following deprecated, cask taps tapped:
#{tapped_caskroom_taps.join("\n ")}
Untap them with `brew untap`.
EOS
end
def check_if_supported_sdk_available
return unless ::DevelopmentTools.installed?
return unless MacOS.sdk_root_needed?