-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
various: tidy up S3 URLs #175197
various: tidy up S3 URLs #175197
Conversation
All failures seem unrelated to these updates:
|
I'm not sure how much it matters either way, but I would suggest that most of these instances were consistent with what is broadcast by the vendor, whether it be linked from their homepage, appcast or other medium. I don't feel strongly whether we should stick to a standard, or mirror what is used upstream. But if we are going to use a standard then this should be added to either |
I think requiring changes here will complicate contributions. I can't imagine it'll be easy if you want to make a cask, copy an upstream download link and |
The prefixed URLs are the ones recommened by Amazon (for a long time now). I've been doing similar updates for a few years way back when. These URLs also play better with corporate (or non-corporate) firewalls. Region-agnostic URLs most likely play better (faster) when downloading from a different region, and one of the points of S3. I'm not sure how this complicates controbutions. There is no enforcement for this AFAIK. |
I don't think it's realistic to expect me to push through an brew audit update for this. I haven't done it for a long time and don't have the guts or time to touch it. Furthermore region-agnostic URLs almost always need manual checks, because S3 can be configured to play bad with them, and in a few rare cases, they do. I haven't touched S3 URLs in the last 5 years and 50-ish fallouts that accumulated throughout this time isn't that much to justify a brew audit effort IMO. |
version bumped will delete commits for the 2 broken casks. |
The remaining issues are still unrelated to this PR, and they also seem to be detection issues:
|
634a397
to
73c83f4
Compare
drop for pre-existing issues: |
Sigh, failure because one cask received a version update, detected by livecheck. |
If no one has objections to this, I'm fine for ✅, but do want to solve some automated way of identifying these going forward. |
A rough sketch for the multi-step URL transformation:
Double-check |
/rebase |
This looks great! 👍 Thanks so much for your contribution! Without contributions like yours, it'd be impossible to keep our project going. |
/rebase |
Also drop dualstack subdomain.
Important: Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.
In the following questions
<cask>
is the token of the cask you're submitting.After making any changes to a cask, existing or new, verify:
brew audit --cask --online <cask>
is error-free.brew style --fix <cask>
reports no offenses.Additionally, if adding a new cask:
brew audit --cask --new <cask>
worked successfully.HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <cask>
worked successfully.brew uninstall --cask <cask>
worked successfully.Prefer:
<prefix>.s3.amazonaws.com
(modern) URL flavour overs3.amazonaws.com/<prefix>
.(this is always supported by S3 for dotless, lowercase prefixes.)
s3-<region>.amazonaws.com
overs3.<region>.amazonaws.com
.All hand checked.