Finding the last time brew update
was ran (perhaps for a tap)
#3257
Unanswered
nemith
asked this question in
Tap maintenance and brew development
Replies: 2 comments
-
as 'brew update' fetches the state of the git repo of the brew formulas, we can check, when git in that repo was last run by e.g. executing the following: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Implicit execution is not supported, but you can bypass the check every time.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to come up with a strategy for deploying some internal tools and homebrew + a private tap seems like a good idea, however I want my CLI tools to inform the user when they are outdated.
I can run
brew outdated <tap/formula> --json
pretty easily but that assumes the user has ranbrew update
recently. It would be nice to force abrew update
on behalf of the user if it hasn't been updated in some time frame like 24hrs. I don't want to runbrew update
on every call.The push here is really to cut down on support tickets coming into my (small) team and making sure users are using the latest internal tool binaries on their system.
Also open to other options for doing an out-of-date version check.
Beta Was this translation helpful? Give feedback.
All reactions