-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Latest standalone GCM installation "fails" on Windows due to hard dependency on git.exe #770
Comments
GCM integrates with Git as a credential helper. Without a Git installation, GCM cannot function properly. Can you point me to the specific section of the WSL docs that specifies no Git installation is required? Also, are you trying to configure WSL or just install GCM for Windows? If the latter, is there a reason you're not installing Git for Windows (which automatically installs and configures GCM for you)? |
@ldennington That link was already in my original message. For completeness sake, let me quote from https://github.com/GitCredentialManager/git-credential-manager/blob/main/docs/wsl.md#configuring-wsl-without-git-for-windows:
The particular use case is transparent use of credentials from the Windows Credential Manager to git in WSL. This is a much friendlier user experience for people not versed in Linux, but who need to use WSL for projects via their Windows VS Code installation. (All credits to @mjcheetham for documenting this in the first place.) So there is a git installation, it just happens to reside within WSL and is made accessible via WSL's |
Just to confirm - the specific problem here is that the installer fails when you don't have a git executable on your Windows PATH because it lives inside WSL? @mjcheetham - heads up on this...is there a way to avoid calling |
@ldennington That is correct. So this is what you would get with .696: And since WSL in VS Code calls the WSL git, this works transparently. |
I encountered one more use case, independent of the GCM standalone installation.
Based on the implementation, However on Windows, search of executable is the done different compared to Linux - the current directory is checked before the In fact, "Git for Windows" places both |
@ivailop - are you using Windows or WSL? I'm not sure this can be considered a separate use case for the same issue if the former. |
I encountered the problem using WSL. While figuring out the issue, tried simply running:
And in both cases got the same error (as mentioned above) |
Trying to install (or uninstall)
gcmcore-win-x86-2.0.696.exe
on Windows 10 (21H1) "fails". You get this popup and wonder what is going wrong:All the files do get installed correctly into
C:\Program Files (x86)\Git Credential Manager
. Runninggit-credential-manager-core.exe
from that directory gives the following:This flies against what is documented at https://github.com/GitCredentialManager/git-credential-manager/blob/main/docs/wsl.md#configuring-wsl-without-git-for-windows since it seems to want to be able to find a
git.exe
. So somewhere some hardcoded dependency on git.exe has been added.Edit: the same problem exists in
gcm-win-x86-2.0.779.exe
as well.Edit2: Last known working version:
gcmcore-win-x86-2.0.194.40577.exe
. Started giving the above problems withgcmcore-win-x86-2.0.246.34937.exe
Edit3: Checking a comparison points me to this as the most obvious culprit (after adjusting for refactors): https://github.com/GitCredentialManager/git-credential-manager/blob/d6834d682396bfed06bebbc16cedfe4a25d00400/src/shared/Core/CommandContext.cs#L150-L180
The text was updated successfully, but these errors were encountered: