-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
livecheck: Add ExtractPlist skip to SkipConditions #16968
livecheck: Add ExtractPlist skip to SkipConditions #16968
Conversation
The I'm specifically looking at the changes to |
It wasn't intentional and I had simply forgotten that |
Either of those options makes sense to me. |
When the `--extract-plist` option was added to livecheck, conditions were added in `#run_checks` to skip casks using `ExtractPlist` if the `--extract-plist` isn't used and the run involves multiple formulae/casks. This integrates the skip into the `SkipConditions` class.
From the description of the `--extract-plist` option, it would seem that the `ExtractPlist` strategy is only enabled when the option is used. Instead, livecheck automatically enables the strategy if the command is run on only one cask. This rewords descriptions of the option to clarify the behavior.
c82062d
to
111ac58
Compare
I updated the |
Thanks @samford! |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?When the
--extract-plist
option was added to livecheck (#16759), conditions were added in#run_checks
to skip casks usingExtractPlist
if the--extract-plist
isn't used and the run involves multiple formulae/casks. This integrates the skip into theSkipConditions
class.Outside of the organizational improvement, this also fixes a related issue with the livecheck
--json
output when anExtractPlist
cask is included in a multi-cask run without the--extract-plist
option. In this scenario, we wrongly get non-JSON output alongside the expected JSON data:With this change, we receive the expected JSON output:
Besides that, this updates the language around the
--extract-plist
flag (usage description, code comments) to clarify the behavior. From the description, it would seem that theExtractPlist
strategy is only enabled when--extract-plist
is used. Instead, livecheck automatically enables the strategy if the command is run on only one cask.