Questions on Homebrew's third-party mirroring policy #1906
Replies: 4 comments 8 replies
-
Have you tried using |
Beta Was this translation helpful? Give feedback.
-
@taoky It was not my intention to remove all support for mirroring homebrew-core binaries. Was I removed it because we've had a bunch of reports of it being set and being broken. |
Beta Was this translation helpful? Give feedback.
-
Some follow-ups on this discussion:
|
Beta Was this translation helpful? Give feedback.
-
Some other context to help with the BOTTLE_DOMAIN vs ARTIFACT_DOMAIN control logic. I know we have had issues leveraging a caching proxy for ARTIFACT because it needs to handle both OCI registry (ideally) for bottles and arbitrary HTTPS for the casks. Basically our existing solution (Artifactory) works for standard formulas via a OCI registry proxy for ghcr.io and Casks just fail. And this puts aside arbitrary URLs being a security concern unless deny lists and usage auditing are implemented to prevent misuse of the proxy functionality. Looking into BOTTLE though I have not figured out a good way to steer requests to the correct GithubPackage spec reliably. The BOTTLE var is parsed in software_spec in root_url which I believe occurs before detector is called so it goes to Curl. For ARTIFACT though it is done in download_spec just before download so the root_url remains github up to the last moment I think. I feel a bit uninformed on the design decisions in both cases so missing context to open a good PR. I know supporting Docker for BOTTLE was attempted as part of #11339, but I recognize it was not merged. Even the URL scheme code and some of the init logic for Authorization header may be all that is needed. CC @yahavi |
Beta Was this translation helpful? Give feedback.
-
Hi Homebrew staff,
Since the PR Homebrew/brew#11781 got merged into brew master, it is now impossible for third-party mirrors to properly mirror homebrew/linuxbrew bottles while providing files to users as-is. I'm now curious that how should we mirror homebrew-core, homebrew-cask, etc. , and homebrew/linuxbrew bottles, to speed up brew in certain region or intranet? Or are they not intended to be mirrored?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions