-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
formula_installer: always pre-install formulae required for fetching sources #12296
formula_installer: always pre-install formulae required for fetching sources #12296
Conversation
Review period will end on 2021-10-25 at 00:53:23 UTC. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'd be good to use Homebrew's Subversion instead of silencing reducing security on the use of the system Subversion in these cases. Thoughts?
I suspected that might come up, which is why I was looking into how to get SVN to auto-install for #11724. |
Review period ended. |
The formula side of it should be trivial since we already have a system in place for >= Catalina which we can remove the restriction from. |
The issue, though, is that >= Catalina doesn't auto-install SVN. It'd be nice if it did. |
Agreed. |
Ah yes, all that sort of stuff is currently test-bot specific for now: https://github.com/Homebrew/homebrew-test-bot/blob/6b596cf15dd3aceb7e83a4c1b1dc31a618ae7c40/lib/tests/formulae.rb#L285-L287 The reason being that our FormulaInstaller fetches everything before installing, but we need subversion installed before fetching. |
This comment has been minimized.
This comment has been minimized.
b99a4bd
to
6da847e
Compare
798fd71
to
3c9ece3
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work so far @EricFromCanada!
c0a4f19
to
1af42a2
Compare
1af42a2
to
964c2ee
Compare
Would this allow skipping the preinstallation of |
@EricFromCanada I think so? Can try it either in this or another PR. Are you 👍🏻 to merge this? |
That 👍 button probably don't yield a notification/email. |
Stock SVN on macOS 10.14 and earlier now throws errors with some certificate providers.
964c2ee
to
e510968
Compare
Just removing |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?This fixes two similar issues:
svn
on macOS 10.14 and earlier is unable to access repositories hosted on SourceForge (i.e. svn.code.sf.net) and possibly others, so thesubversion
formula needs to always be installed before attempting to download and build from source any formula that gets its source from SVN. (Also, if a formula URL is marked withtrust_cert: true
, any unknown or outdated certificate errors will still be ignored.)curl
doesn't (yet) properly handle TLS 1.3 connections, so for installing from source any formulae using such sites (e.g. xiph.org) that are marked withusing: :homebrew_curl
, brewedcurl
needs to be installed first.`svn` before:
`svn` after:
`curl` before:
`curl` after:
xref. Homebrew/homebrew-core#87527, #11724 (cask SVN dependencies not yet handled)