From 71beff367adb0838707d6625c4f68e04b7f44b99 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Thu, 26 Nov 2020 15:18:06 -0500 Subject: [PATCH] Migrate UNSTABLE_ALLOWLIST --- Library/Homebrew/formula_auditor.rb | 20 +------------------- Library/Homebrew/test/dev-cmd/audit_spec.rb | 1 - 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 3369d5adcc..c982fb6a77 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -477,24 +477,6 @@ module Homebrew [user, repo] end - UNSTABLE_ALLOWLIST = { - "aalib" => "1.4rc", - "automysqlbackup" => "3.0-rc", - "aview" => "1.3.0rc", - "elm-format" => "0.6.0-alpha", - "ftgl" => "2.1.3-rc", - "hidapi" => "0.8.0-rc", - "libcaca" => "0.99b", - "premake" => "4.4-beta", - "pwnat" => "0.3-beta", - "recode" => "3.7-beta", - "speexdsp" => "1.2rc", - "sqoop" => "1.4.", - "tcptraceroute" => "1.5beta", - "tiny-fugue" => "5.0b", - "vbindiff" => "3.0_beta", - }.freeze - # Used for formulae that are unstable but need CI run without being in homebrew/core UNSTABLE_DEVEL_ALLOWLIST = { }.freeze @@ -570,7 +552,7 @@ module Homebrew when /[\d._-](alpha|beta|rc\d)/ matched = Regexp.last_match(1) version_prefix = stable_version_string.sub(/\d+$/, "") - return if UNSTABLE_ALLOWLIST[formula.name] == version_prefix + return if tap_audit_exception :unstable_allowlist, formula.name, version_prefix return if UNSTABLE_DEVEL_ALLOWLIST[formula.name] == version_prefix problem "Stable version URLs should not contain #{matched}" diff --git a/Library/Homebrew/test/dev-cmd/audit_spec.rb b/Library/Homebrew/test/dev-cmd/audit_spec.rb index c4e02baa8f..c1a17089f4 100644 --- a/Library/Homebrew/test/dev-cmd/audit_spec.rb +++ b/Library/Homebrew/test/dev-cmd/audit_spec.rb @@ -1010,7 +1010,6 @@ module Homebrew end end - include_examples "formulae exist", described_class::UNSTABLE_ALLOWLIST.keys include_examples "formulae exist", described_class::GNOME_DEVEL_ALLOWLIST.keys end end