-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
audit
: check availability of URLs and HTTPS versions
#25403
Comments
Seems reasonable, and is a well-scoped feature |
@victorpopkov has recently created a cask-homepage script that is able to check if the Perhaps some ideas from his script could be used for this? |
@miccal That (and similar scripts) work only after the fact. This is about making it work directly in |
True, but doesn't |
But it’s done before submission and checked by Travis, which is what matters. |
I think I get what your saying - the cask-homepage script will only work on a Cask file that is already a part of Homebrew-Cask, while |
Yes, that’s exactly it. Plus, since |
Got it, thanks! |
I will have a look at implementing this feature. |
|
Reviewing old issues here - was this fixed by Homebrew/brew#3318? |
No. |
@vitorgalvao or @commitay - can you outline what's still missing? |
To test, I |
Just thought this might be a good addition to
audit
. Checking if URLs are accessible and HTTPS versions are available. Since we can’t take only 200 HTTP codes to mean success (since some servers have weird replies), I’m defining accessible as everything with 2-- and 3-- codes.Proposal. When auditing a cask check all
url
,appcast
, andhomepage
stanzas, and for each of them:Note that if a user provides an HTTPS URL and it redirects to an HTTP one,
audit
will always fail (with different messages), regardless of it being accessible or inaccessible. This is in line with our long-standing position of not inducing users in error.The text was updated successfully, but these errors were encountered: