KEMBAR78
cask/audit: fix min_os audit on arm64 by bevanjkay · Pull Request #20899 · Homebrew/brew · GitHub
Skip to content

Conversation

bevanjkay
Copy link
Member

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

On arm hardware we were always skipping the audit result when there was no cask_min_os set, because it is automatically set to Catalina. This line adds an additional check for cases where a newer version is required by the application that is set by the cask before skipping.

@Copilot Copilot AI review requested due to automatic review settings October 18, 2025 10:20
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the minimum macOS version audit for casks on ARM64 hardware. Previously, the audit was incorrectly skipping validation when a cask had on_system blocks on ARM, even when the application required a newer macOS version than what the cask specified.

Key changes:

  • Modified the audit skip condition to compare app_min_os with cask_min_os instead of checking if cask_min_os < macOS 11

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@p-linnane p-linnane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@p-linnane p-linnane added this pull request to the merge queue Oct 18, 2025
Merged via the queue into main with commit 3a5e3fc Oct 18, 2025
37 checks passed
@p-linnane p-linnane deleted the cask-min-os-audit branch October 18, 2025 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants