-
-
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 --extract-plist #16759
Conversation
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.
Out of curiosity I looked it up and this would affect 275 core casks. Outside of memory savings is this faster as well?
Either way this seems reasonable to me.
@apainintheneck I have my own script locally that runs livecheck on a tap after filtering out the |
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.
Running
brew livecheck --cask --eval-all
downloads all casks using theExtractPlist
strategy. This takes up a significant amount (~20GB) of bandwidth and cache space.
I really appreciate the PR (great work @razvanazamfirei!) but: the above described behaviour makes no sense.
I'd argue instead that it should instead be one of:
--extract-plist
is added instead so it's opt-in--eval-all
never attempts to extract plists- something else where the above behaviour doesn't manifest
Maybe this could work similarly to |
I like this idea. Do we have to worry about backwards compatibility with this command though. If so, we'll have to go through the whole deprecation cycle and the way it's currently written would be the fastest way to get access to it. It seems like more of an internal command so we're probably fine though. |
100% not.
Agreed. |
We could even perhaps have a documented policy that some/all developer commands do not require deprecation periods at all. |
f66d8cc
to
bf76e51
Compare
Thank you all for the suggestions! I've reworked this.
|
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.
The code looks good to me now. I left a nit but, of course, you can ignore that.
There does seem to be a problem with the generated man page and shell completions. It's deleting info related to a few commands. I think these were commands that @dduugg moved to the new command DSL recently so maybe that's related somehow. I really have no idea.
I ran the following and it changed some settings locally too but it tried to remove information related to a different command: brew bump-unversioned-casks
$ brew generate-man-completions
Writing completions to /usr/local/Homebrew/completions
Manpage and completions updated.
$ git diff --stats
completions/bash/brew | 24 ------------------------
completions/fish/brew.fish | 14 --------------
completions/zsh/_brew | 19 -------------------
docs/Manpage.md | 21 ---------------------
manpages/brew.1 | 14 --------------
5 files changed, 92 deletions(-)
$ git log -1
commit 7b2bfee3638cba1571157f07fd447d9949bd0a6a (HEAD -> master, origin/master, origin/HEAD)
Merge: 0e981bd8f4 74aea8e92d
Author: Kevin <[email protected]>
Date: Wed Mar 20 20:40:26 2024 -0700
Merge pull request #16903 from apainintheneck/prevent-unexpected-network-calls-in-tests
Prevent unexpected network calls in tests
Now I'm even more confused.
dc4669d
to
4129200
Compare
Thanks @razvanazamfirei! |
Thanks for flagging, i'll take a look. |
Looks like I fat-fingered |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Running
brew livecheck --cask --eval-all
downloads all casks using theExtractPlist
strategy. This takes up a significant amount (~20GB) of bandwidth and cache space.If this flag is added, it will allow maintainers to check taps more quickly and with less resources consumed.