-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
cask/audit: improve sparkle minimum version audit #14298
Conversation
Review period will end on 2022-12-29 at 04:20:28 UTC. |
Co-authored-by: Rylan Polster <[email protected]>
Review period skipped due to |
@@ -582,8 +582,9 @@ def check_livecheck_min_os | |||
|
|||
return if cask_min_os == min_os_string | |||
|
|||
min_os_symbol = cask_min_os&.to_sym.inspect || "no minimal OS version" |
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.
@Rylan12 I think that adding the &
in the first half means that min_os_symbol
becomes "nil", instead of the nicer error message.
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.
Oops, good catch 😅
There's a fix in #14302
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?This is a continuation of #14297 - where the cask doesn't specify a minimum
depends_on
the audit was erroring out with a type error. This now returns an appropriate message.Related: Homebrew/homebrew-cask#138667