-
-
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
cmd/update-report: report outdated count & suggest brew upgrade
#10581
Conversation
Review period will end on 2021-02-10 at 20:51:22 UTC. |
Can you benchmark (ideally with We should definitely ensure this code isn't run on autoupdates. |
If there has been updates (and thus ReporterHub's updated formula report has printed) then this costs <0.1s because caching. It's ~0.45s without but it perhaps depends on the number of formulae installed. (Tested with ~250 formulae, though only 2 casks) |
Cool. I'd suggest skipping when there's not been updates, then, or at least skipping when there's not been updates and it's an autoupdate. |
I was leaning on the latter if we could afford it because "Already up-to-date" might be seen as confusing, but then I realised that message can be printed through |
50e99a1
to
0e732d3
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.
Looks good so far!
Review period ended. |
Could this message be excluded if |
Possibly. The |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?brew man
locally and committed any changes?I've been wanting to do this for a while now.
This helps with the confusion people may have with the differences between
brew update
andbrew upgrade
.With this change,
brew update
(viaupdate-report
) will now report how many installed formulae and casks are outdated and points the user tobrew upgrade
to update them.