-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Should audit check appcast shasums? #15831
Should audit check appcast shasums? #15831
Conversation
I don't think there's much point in verifying the appcast until we actually have a use for it. Personally, I'm still not entirely clear on exactly how it would be used for upgrades. I know @vitorgalvao and others have talked about it before, but it's not clear to me how we would extract updated information if the appcast itself has to be updated. |
@jawshooah The first thing that comes to mind is to use a changed appcast shasum as the trigger for a Cask version update - it wouldn't permit automatic updates, but it would allow a notice that the Cask does need to be updated. I could see this being used in sort of an "automated" cask-repair script, but again, that would still be somewhat manual (because someone would need to look over the PR). |
Yes, the idea was somewhat in line with what @adityadalal924 said. It could actually be completely automated if we knew the structure of the appcast well, which is why we have types for them. The idea was to understand how each type behaves, and then have rules for them. That explains why so many casks have appcasts, but the feature isn’t working. We needed to collect a lot of real appcasts first to understand how to best tackle the problem. I agree there isn’t much point in this as of now, but since this shows a warning instead of an error, it could be merged. However, I’d be against it right now, simply because we actively discourage people from updating appcast shasums most of the time (so they don’t waste time with it), and having the system telling them one thing and the maintainers another could get confusing. |
Yeah, I'm fine with all that @vitorgalvao, figured it was worth taking the temperature of the crew. It's a cheap fix to ensure no issues down the line, but I do agree it's of little value and would send the wrong message to a user getting a |
We can probably just fix those 6 Casks if you have a list handy (or open up another PR :) |
Okay, so here's what I understand so far (assuming we don't want
Would anyone care to fill in the blanks? |
Simply put, the only case that should exist is the one you already understand completely: As for the second row ( As for |
Seems like we’re all in agreement, so closing this. |
I don't usually go mucking about in ruby, so this is meant more to open the question.
Is it worth having
cask audit
also run through any sums in theappcast
stanza? Officially,audit
is to "verify installability", and theappcast
stanza has no impact on that[1]. Still, it's cheap, and if the appcast stanza is to exist this would be valuable in the future.[1]: Not that it matters, but in light of that these checks warn on failure instead of error.