Skip to content

Commit

Permalink
feat: check for unknown arch for casks
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Jun 27, 2024
1 parent 6d49157 commit d8bb0e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Library/Homebrew/cask/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,14 @@ def audit_rosetta
next
end

odebug result.merged_output

if result.merged_output !~ /arm64|x86_64/
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")

Expand Down

0 comments on commit d8bb0e1

Please sign in to comment.