-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
cask/audit: check pkg for minimum supported os version
#21375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
27959a4 to
aa2cb14
Compare
There was a problem hiding this 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 pull request adds functionality to check pkg artifacts for minimum supported macOS versions by examining their Distribution files. Previously, pkg artifacts without Info.plist files were not checked for minimum OS version requirements.
Key Changes:
- Adds pkg expansion and Distribution file parsing to extract os-version min attribute
- Implements cleanup of temporary directories using ensure blocks
- Skips Info.plist checking for pkg artifacts after Distribution file check
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
aa2cb14 to
6fdf6bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6fdf6bf to
dc32cf4
Compare
MikeMcQuaid
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Small style comment but happy to ship when it's working for you.
dc32cf4 to
db86073
Compare
brew lgtm(style, typechecking and tests) with your changes locally?When a
pkgdoes not contain aninfo.plistfile we are currently not checking for a minimum supported os version.The
pkginstaller itself can have a minimum specified in its distribution, so check it.I am not sure how we want to preference this, as we we may want it to only take effect if the existing method doesn't find anything. At the moment it utilises the new check first.