-
-
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
Add head_only?
to Formula, replace head?
in livecheck
#8680
Conversation
You can try adding
|
As suggested by Sam (and discussed previously), I've added I've also added a comment stating that all formulae will have normal checks carried out unless they are HEAD-only (worded almost exactly like Sam's comment in their review) to The only issue that remains to be solved is that of the downloader continuing to be verbose, I'll implement Dawid's suggestion and let you all know if it solves the problem. Do let me know if anything has to be modified. Thanks! |
--installed
head_only?
to Formula, replace head?
in livecheck
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.
changed the value of
current
toformula.stable.version
, and that seems to solve the issue
I tested this and can confirm that the reported version for a formula with stable
and head
that's installed using --head
is the HEAD commit hash when running brew livecheck --installed
. Using formula.stable.version
instead of formula.version
addresses this and makes sense to me 👍
Sorry for the delay, was slightly occupied with some other work. With the latest push:
|
brew style
with your changes locally?brew tests
with your changes locally?The
brew livecheck --installed
command is supposed to runlivecheck
for all formulae that have been installed. Aslivecheck
reports new versions of software from upstream (compared to the homebrew-core version and not the system-installed version), one would expect this command to work just likebrew livecheck
does but only limits the Formulae checked.However,
This happens because I have a
HEAD
-version ofarduino-cli
installed, despite it not being a HEAD-only formula.This PR fixes the
--installed
flag to check only installed formulae, but report their stable version instead (if it exists).For a HEAD-only formula, we continue to report HEAD version updates.
One problem still persists, for HEAD-only formulae, the output of
fetch_latest_commit
is not silenced despite theformula.head.downloader.shutup!
. While I tried looking throughContext
andAbstractDownloadStrategy
, I wasn't able to come up with a fix. It seems like setting@quiet = true
isn't working. Any idea why?