Merge pull request #20141 from botantony/enable_no_autobump

tap: rely on new autobump list
This commit is contained in:
Mike McQuaid 2025-06-18 14:34:08 +00:00 committed by GitHub
commit 99a8e3a288
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -988,19 +988,20 @@ class Tap
# Array with autobump names
sig { returns(T::Array[String]) }
def autobump
# TODO: uncomment when official taps are prepared to use new autobump system
#
# autobump_packages = if core_cask_tap?
# Homebrew::API::Cask.all_casks
# elsif core_tap?
# Homebrew::API::Formula.all_formulae
# else
# {}
# end
#
# @autobump ||= autobump_packages.select do |_, p|
# p["autobump"] == true && !p["skip_livecheck"] && !(p["deprecated"] || p["disabled"])
# end.keys
autobump_packages = if core_cask_tap?
Homebrew::API::Cask.all_casks
elsif core_tap?
Homebrew::API::Formula.all_formulae
else
{}
end
@autobump ||= autobump_packages.select do |_, p|
next if p["deprecated"] || p["disabled"]
next if p["skip_livecheck"]
p["autobump"] == true
end.keys
if @autobump.blank?
@autobump = if (autobump_file = path/HOMEBREW_TAP_AUTOBUMP_FILE).file?