diagnostic: cap OCLP tier when macOS is outdated#22154
Merged
MikeMcQuaid merged 1 commit intomainfrom May 6, 2026
Merged
Conversation
Signed-off-by: Patrick Linnane <patrick@linnane.io>
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts the macOS diagnostics messaging for OpenCore Legacy Patcher (OCLP) so that when the host macOS is an outdated release, the reported support tier is capped at Tier 3 (even on otherwise “modern” Intel CPUs). This aligns OCLP guidance with the existing “outdated macOS” support-tier policy.
Changes:
- Update
check_for_opencoreto return Tier 3 whenOS::Mac.version.outdated_release?is true. - Add RSpec coverage for
check_for_opencoretier selection across (modern CPU / old CPU) and (supported macOS / outdated macOS) scenarios.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
Library/Homebrew/extend/os/mac/diagnostic.rb |
Caps OCLP support tier at Tier 3 when running an outdated macOS release. |
Library/Homebrew/test/os/mac/diagnostic_spec.rb |
Adds unit tests validating Tier 2 vs Tier 3 selection for OCLP based on CPU features and outdated macOS state. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
brew lgtm(style, typechecking and tests) with your changes locally?Claude Code with local review and verification.
Fixes https://github.com/orgs/Homebrew/discussions/6835.