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: consistency across formulae and casks #8395
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.
In the spirit of consistency it might also be nice to only list "Updated Casks" that have had a version change.
Please help me understand how this works with "Updated Formulae" -- given a formula, let's use zsh as an example, this will be listed as "updated" if and only if the first
is changed? So if this single stanza is unchanged, then no matter what else is changed in the formula's Is this correct? |
If
Yes. |
@MikeMcQuaid thank you for the clarification. This makes sense -- in a formula, a change to either the However, the situations where a change in a cask's
This is all the more complicated by those casks that have The point I am trying to make with these examples is this -- for formulae, monitoring changes to the However, for casks the sheer number of cases that do require/may require/may not require an update makes it much more complicated to know what specific change in the cask's In summary, I think the current status quo is the way to go; that is, showing all casks that have been altered in any way via I also personally prefer it this way, as I can then review exactly what has been changed in the cask's |
I think "an update may be required" should be covered by metadata e.g. a
In these cases: we're not going to show "Updated" when upstream has updated so it seems confusing to do that. Regardless, there could be a different behaviour for these cases if desired.
I don't agree that they are different. A formula can be changed and not
It is inconsistent with how formulae are being handled, though, and I still don't see a good reason for this inconsistency. What is the "action item" from your perspective for seeing "Updated casks" here? Run |
I agree, in theory -- having a cask stanza similar to the
Yep, complicated :)
Sorry, I took away from your earlier reply that unless there was a change in either
True, but in some ways casks are a bit more "tricky" than formula in the sense that there are a lot more stanzas to deal with that dictate both their install method and how they are "run". Again, complicated :)
I personally use Please also note that I am not trying to be difficult or argumentative here @MikeMcQuaid. |
Correct, it would not. That does not imply that the output of the formula hasn't been "updated", though.
Well, the complication in this case is: how many of these changing stanzas would result in an action from a user?
Yeh, I'd argue the typical user case for this output is "should I run
No, don't worry, I don't think you are being at all (me, on the other hand 😂). |
Ah, I see, thank you.
Good point -- I suppose for the vast majority of users they would only be interested in a version change, as is the case for formula.
I see your point, thank you.
You are not, so don't you worry either! I will have to think about how best to implement this and show a cask as "updated" only if the version changes. @MikeMcQuaid while I investigate this further would it be ok if you could merge this PR and my other one -- my other PR will require some updates to things in the cask repositories that I would like to deal with first. Thank you. |
Agreed 👍🏻
Sure thing 👍🏻 Thanks for making it! |
Thanks @MikeMcQuaid. |
brew style
with your changes locally?brew tests
with your changes locally?Currently, running
brew update
will list any new, updated or deleted formulae and any updated or deleted casks, but not new casks:In the spirit of consistency, this change prints a similar message for new casks, so now:
I have tested this change locally with fictitious new, updated and deleted formulae and casks in my personal tap, and everything works as I imagined -- hopefully I have not missed anything.
Thank you.