-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
allow option for using git CLI for git downloads #2448
Conversation
b2928b5
to
65384af
Compare
44e1790
to
eb02393
Compare
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.
LGTM
This is great. Now if we delete all the stuff that uses LibGit2, we'll really be getting somewhere! |
Hehe, work hard to remove all external download commands in favor of a library when it comes to downloading via HTTP, and then work hard to remove a library for an external command when it comes to downloading via Git :P. But seriously, I don't think we want to be bundling the Git executable and I think it is nice that the package manager doesn't require git to fully work. Using a library gives us nice progress bars and a nice API, and it works well in the vast majority of cases. Having an escape hatch to the CLI is probably enough. |
Yeah, I definitely agree that Pkg shouldn't require that the user has Git installed on their system for normal usage.
Personally, I would like us to bundle Git_jll with Julia. But as @giordano has pointed out in a different thread, Git_jll is not small (e.g. approximately 50 MiB on Windows). |
Unlike libcurl, which is complex but ultimately well designed and capable, the more I've dug into libgit2, the worse my opinion of it has become. It is, for example, impossible to use it securely without patching it. I think that we should preferentially use a |
Could we merge this PR now, and then we can make a separate PR that implements this:
Then, in that PR, we can continue the discussion about whether or not we want to default to the But it would be good to get this PR merged so at least people have the ability to opt-in to the Git CLI. |
ENV var should be added to docs when #2453 is fixed. |
(cherry picked from commit 623625b, PR#2448)
(cherry picked from commit 623625b, PR#2448)
No description provided.