-
Notifications
You must be signed in to change notification settings - Fork 148
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
Add a hook to disable Git download and use Git distributed with OS #182
Comments
Just an idea; what if instead of disabling the download functionality (on |
As far as I know, Windows only supports symlinks on NTFS, and I'm not sure if Node.js has the appropriate WIN32 bindings to create them. However, this would still not address my 2nd point. Is there any implementation reason why it's problematic to just call out to the system |
We want to provide a consistent Git interface, even if the user doesn’t have it installed or has a really old version. |
I've avoided using the system Git at install time because Some other comments:
I've actually got an open issue for this, if someone wants to get involved: desktop/dugite-native#82
As a workaround, I was hoping |
I understand that your primary focus is the Desktop application, for which this approach makes sense.
Speaking as someone who runs CI for a multi-platform project where all the world's not a Linux container, this is a lot of work. There are no easy "CIaaS" setups for many of these platforms, unfortunately. Given that an automatic solution to use the system Git requires careful consideration on your part, I'd like to suggest a minimal "I know what I'm doing, just do it" solution for use-cases such as mine. This could be as simple as setting e.g. What do you think?
Yes, unfortunately the impact of that is unknown, and I'd prefer not to go further down the "what broke npm this time" rabbit hole. |
This seems fine.
We have an existing environment variable for you to be able to catch where To make it clear this is install time, could we avoid Lines 117 to 123 in 373dc3d
|
@shiftkey, are you still open for this change? We cannot include the following GPL-licensed files in the production: Thank you! |
@kittaakos I'm open to reviewing a PR |
Would it be possible to add a hook to
dugite
to disable any attempt at downloading a Git distribution at installation time and instead use thegit
binaries distributed with the system?My need for this is twofold:
dugite
(actually surf-build which depends on it in the latest betas) on platforms for which you don't distribute native binaries and probably never will (various BSDs).I'm aware of
LOCAL_GIT_DIRECTORY
andGIT_EXEC_PATH
, however those variables only have an effect at execution time, not atnpm install
time.FWIW, you should be able to easily script detecting if Git is already correctly installed by attempting to run e.g.
git --version
and if successful using the output ofgit --exec-path
.The text was updated successfully, but these errors were encountered: