From b5448c070b7d8d0129f42929715df4029b48b954 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 24 Dec 2020 13:22:28 +0000 Subject: [PATCH] Add HOMEBREW_REQUIRE_BOTTLED_ARM temporary environment variable If `HOMEBREW_REQUIRE_BOTTLED_ARM` is set then don't build a given formula and just skip it. This allows Homebrew/core to prevent ARM bottles from regressing or not being updated while allowing new bottles from being built/tested in the dispatch workflow. --- lib/tests/formulae.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/tests/formulae.rb b/lib/tests/formulae.rb index c2ed502f..b46d1c8c 100644 --- a/lib/tests/formulae.rb +++ b/lib/tests/formulae.rb @@ -575,6 +575,15 @@ def formula!(formula_name, args:) return end + if Hardware::CPU.arm? && + ENV["HOMEBREW_REQUIRE_BOTTLED_ARM"] && + !formula.bottled? && + !formula.bottle_unneeded? + opoo "#{formula.full_name} has not yet been bottled on ARM!" + skip formula.name + return + end + deps = [] reqs = []