From 689ff373d8acfa557cf095179b5cc42b856ccd10 Mon Sep 17 00:00:00 2001 From: Eric Knibbe Date: Wed, 11 Jun 2025 15:45:24 -0400 Subject: [PATCH] cask/audit: skip caveats check for Intel-only casks --- Library/Homebrew/cask/audit.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index 4f8bae5c14..f1d83deed9 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -653,11 +653,12 @@ module Cask supports_arm = result.merged_output.include?("arm64") mentions_rosetta = cask.caveats.include?("requires Rosetta 2") + requires_intel = cask.depends_on.arch&.any? { |arch| arch[:type] == :intel } if supports_arm && mentions_rosetta add_error "Artifacts do not require Rosetta 2 but the caveats say otherwise!", location: url.location - elsif !supports_arm && !mentions_rosetta + elsif !supports_arm && !mentions_rosetta && !requires_intel add_error "Artifacts require Rosetta 2 but this is not indicated by the caveats!", location: url.location end