From 8e570a0e9bc1bef19d6dcaec911dff2d956c99e8 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Thu, 27 Jun 2024 20:36:51 +0200 Subject: [PATCH] feat: check for unknown arch for casks --- Library/Homebrew/cask/audit.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index f0ed98b2da..4b8bd523e1 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -590,6 +590,14 @@ module Cask next end + odebug result.merged_output + + unless /arm64|x86_64/.match?(result.merged_output) + add_error "Artifacts architecture is no longer supported by macOS!", + location: cask.url.location + next + end + supports_arm = result.merged_output.include?("arm64") mentions_rosetta = cask.caveats.include?("requires Rosetta 2")