Closed
Description
Setup
- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
MinGit 2.38.0: https://github.com/git-for-windows/git/releases/download/v2.38.0.windows.1/MinGit-2.38.0-64-bit.zip
$ git --version --build-options
This fails to run.
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
Windows Nano Server container (mcr.microsoft.com/windows/nanoserver:ltsc2022-amd64)
$ cmd.exe /c ver
Microsoft Windows [Version 10.0.20348.1006]
- What options did you set as part of the installation? Or did you choose the
defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt
No options, used defaults.
- Any other interesting things about your environment that might be related
to the issue you're seeing?
This is a regression. It previously worked in version 2.37.3. There was likely a new dependency that was added to MinGit that's now causing this to fail in Nano Server because that dependency is not installed. Nano Server has a subset of the files that exist in other Windows SKUs. This issue does not occur in Windows Server Core, likely because it has the necessary dependency installed.
Here's a Dockerfile which can repro the issue:
# escape=`
FROM mcr.microsoft.com/windows/nanoserver:ltsc2022-amd64
ARG MINGIT_VERSION=2.38.0
# This version works
# ARG MINGIT_VERSION=2.37.3
RUN curl -SL --output mingit.zip https://github.com/git-for-windows/git/releases/download/v%MINGIT_VERSION%.windows.1/MinGit-%MINGIT_VERSION%-64-bit.zip `
&& mkdir "C:\Program Files\MinGit" `
&& tar -oxzf mingit.zip -C "C:\Program Files\MinGit"
USER ContainerAdministrator
RUN setx /M PATH "%PATH%;C:\Program Files\MinGit\cmd"
USER ContainerUser
RUN git version
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
CMD
- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git version
- What did you expect to occur after running these commands?
Outputs the version
- What actually happened instead?
Execution failed with an exit code of -1073741511
- If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
n/a
Metadata
Metadata
Assignees
Labels
No labels