-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support external git? #49
Comments
You can already do it: https://docs.binarybuilder.org/stable/jll/#Overriding-the-artifacts-in-JLL-packages |
That's nice but I have a hard time figuring out how to use it. I fail to get any effect at all from an
and I can't see that my system git installation matches the directory structure of the artifact. Doing |
You need a prefix which has |
This is my attempt with Overrides:
and this is the result with preferences:
|
|
You need |
I do have |
Ah, ok, then probably we want to opt out of all the env vars in https://github.com/JuliaVersionControl/Git.jl/blob/259dc047e11ee326b7d2cac63cb09ceeb8f4711b/src/git_function.jl if the product is overridden, as we basically trust the outer environment is appropriately set. |
I think the issue is that everything is calculated based off of |
What is the preferred way to determine whether it has been overridden? (Oh, well, all this stuff seems too complicated from a user point of view. It will be less work for me to just add a keyword argument to specify a custom git than to document how people should go about changing it through Git_jll preferences.) |
Still seems tricky to line that up. The artifact has |
Yeah, that's why I think we should just not do anything here when the artifact is overridden, but I don't know how to test that condition. |
I followed some bread crumbs and found that it's intentional, see second last section of JuliaLang/julia#37791 (comment). It is a very annoying limitation. |
Would it be reasonable to add a Preferences controlled option to call an external git instead of the jll?
Rationale is that I want to use the Git package for LocalRegistry but it would be nice to give the users an option to run their own git (older version, newer version, locally patched version, whatever) if they for some reason should need to.
The text was updated successfully, but these errors were encountered: