diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 1dd1d1f4033fa..76bd119b5a93b 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -712,6 +712,11 @@ def get_repo_data(regex) "vbindiff" => "3.0_beta", }.freeze + # used for formulae that are unstable but need CI run without being in homebrew/core + UNSTABLE_DEVEL_ALLOWLIST = { + "python@3.9" => "3.9.0rc", + }.freeze + GNOME_DEVEL_ALLOWLIST = { "libart" => "2.3", "gtk-mac-integration" => "2.1", @@ -784,6 +789,7 @@ def audit_specs matched = Regexp.last_match(1) version_prefix = stable_version_string.sub(/\d+$/, "") return if UNSTABLE_ALLOWLIST[formula.name] == version_prefix + return if UNSTABLE_DEVEL_ALLOWLIST[formula.name] == version_prefix problem "Stable version URLs should not contain #{matched}" when %r{download\.gnome\.org/sources}, %r{ftp\.gnome\.org/pub/GNOME/sources}i