-
-
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
Switch to HTTPS for 360 Casks #16134
Conversation
Hmm travis fails:
So creating 362 PR is the way to go? |
The tests failed before it ever got that far:
|
9990843
to
58bdd79
Compare
Fixed the test, at least the tests seem to work know. Audit is still running. |
There are merge conflicts that need to be solved.
I have a few scripts that are regularly used by some maintainers (and even users) here, but I keep them in my own repo for a few reasons. Some of them aren’t homebrew-cask specific and can easily benefit other projects and the one that is specific to us ( Up to you if you want to submit it here, but it seems like you do, and it could be a nice addition. Looking through the script, I was amazed at how much our style for bash scripting is alike (even down to when to use No problem there, naturally, they are public domain, after all. But I wonder if it should duplicate so much functionality (like fetching casks), since it is non-essential functionality and it means the script will essentially have to “catch up” that part of the code to Perhaps it should be more focused in checking the availability of
|
|
Every changed URL was reachable using valid HTTPS and returned a StatusCode of 200.
58bdd79
to
18f1402
Compare
Rebased.
Great, I will then create a PR.
Yes, this script is intentionally based on your
I cleaned the script to focus on https, by default it performs the verify now and runs on all casks (with the option to run an individual cask if provided). |
Checked manually and everything seems to be fine. Nice going on also fixing references to alfred’s url on the documentation and tests. For future reference, github diffing limits. Seems like two PRs would’ve been enough, here, for us to at least be able to see all the files in the preview. |
Switch to HTTPS for 360 Casks
Every changed URL was:
I did not verify the whole download, as I'm currently on limited bandwidth. Some casks redirect from HTTPS to HTTP (e.q. sourceforge links) those are left with HTTP.
Should I add more verification?
The script used can be found at cask-switch-https. Does this script also fit somewhere into homebrew-cask? I would happily create a pull request.
Log testing all Casks with a http url/appcast/homepage: https://gist.github.com/tsparber/da281e1912fc0a1ced20
As usually there should be one PR per changed cask: Should I create 360 separate PRs?