Case sensitivity issues when cloning repo #1525

Open
opened 2026-01-30 22:29:34 +00:00 by claunia · 0 comments
Owner

Originally created by @JohanM84 on GitHub (Jun 5, 2019).

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.145]

git --version
git version 2.21.0.windows.1

Steps to reproduce

Download and install: https://github.com/git-for-windows/git/releases/download/v2.21.0.windows.1/Git-2.21.0-64-bit.exe

Open new command prompt as administrator:

git clone https://github.com/microsoft/terminal.git
cd terminal
git submodule update --init --recursive

then apply this patch:

diff --git a/tools/razzle.cmd b/tools/razzle.cmd
index 923d1a4..de1f1fb 100644
--- a/tools/razzle.cmd
+++ b/tools/razzle.cmd
@@ -21,7 +21,7 @@ rem Add nuget to PATH
 set PATH=%PATH%%OPENCON%\dep\nuget;

 rem Run nuget restore so you can use vswhere
-nuget restore %OPENCON% -Verbosity quiet
+nuget.exe restore %OPENCON% -Verbosity quiet^M

 rem Find vswhere
 rem from https://github.com/microsoft/vs-setup-samples/blob/master/tools/vswhere.cmd

then

.\tools\razzle.cmd
bcz.cmd

Build fails with this error:

         C:\repos\terminal\src\cascadia\TerminalCore\lib\TerminalCore-lib.vcxproj.metaproj : error MSB3202: The project
        file "C:\repos\terminal\src\cascadia\TerminalCore\lib\TerminalCore-lib.vcxproj" was not found.

Search for the missing file:

C:\repos\terminal>dir TerminalCore-lib.vcxproj /s
 Volume in drive C is Windows
 Volume Serial Number is F045-5139
File Not Found

Search all lower case:

terminal>dir terminalcore-lib.vcxproj /s
 Volume in drive C is Windows
 Volume Serial Number is F045-5139

 Directory of C:\repos\terminal\src\cascadia\TerminalCore\lib

2019/06/05  09:18             2 930 terminalcore-lib.vcxproj
               1 File(s)          2 930 bytes

     Total Files Listed:
               1 File(s)          2 930 bytes
               0 Dir(s)  320 402 259 968 bytes free

The file name changed to all lower case when the repo was cloned.

Expected behavior

The case of the files should not be changed and the command line build should complete successfully.

Actual behavior

The case was changed to all lower case and the build fails.

Note

I have WSL installed and I'm running Ubuntu. However, in this case I did touch any files with WSL. Also see issue 1035. this might influence it somehow.

Originally created by @JohanM84 on GitHub (Jun 5, 2019). # Environment ``` Windows build number: Microsoft Windows [Version 10.0.18362.145] git --version git version 2.21.0.windows.1 ``` # Steps to reproduce Download and install: https://github.com/git-for-windows/git/releases/download/v2.21.0.windows.1/Git-2.21.0-64-bit.exe Open new command prompt as administrator: ``` git clone https://github.com/microsoft/terminal.git cd terminal git submodule update --init --recursive ``` then apply this patch: ``` diff --git a/tools/razzle.cmd b/tools/razzle.cmd index 923d1a4..de1f1fb 100644 --- a/tools/razzle.cmd +++ b/tools/razzle.cmd @@ -21,7 +21,7 @@ rem Add nuget to PATH set PATH=%PATH%%OPENCON%\dep\nuget; rem Run nuget restore so you can use vswhere -nuget restore %OPENCON% -Verbosity quiet +nuget.exe restore %OPENCON% -Verbosity quiet^M rem Find vswhere rem from https://github.com/microsoft/vs-setup-samples/blob/master/tools/vswhere.cmd ``` then ``` .\tools\razzle.cmd bcz.cmd ``` Build fails with this error: ``` C:\repos\terminal\src\cascadia\TerminalCore\lib\TerminalCore-lib.vcxproj.metaproj : error MSB3202: The project file "C:\repos\terminal\src\cascadia\TerminalCore\lib\TerminalCore-lib.vcxproj" was not found. ``` Search for the missing file: ``` C:\repos\terminal>dir TerminalCore-lib.vcxproj /s Volume in drive C is Windows Volume Serial Number is F045-5139 File Not Found ``` Search all lower case: ``` terminal>dir terminalcore-lib.vcxproj /s Volume in drive C is Windows Volume Serial Number is F045-5139 Directory of C:\repos\terminal\src\cascadia\TerminalCore\lib 2019/06/05 09:18 2 930 terminalcore-lib.vcxproj 1 File(s) 2 930 bytes Total Files Listed: 1 File(s) 2 930 bytes 0 Dir(s) 320 402 259 968 bytes free ``` The file name changed to all lower case when the repo was cloned. # Expected behavior The case of the files should not be changed and the command line build should complete successfully. # Actual behavior The case was changed to all lower case and the build fails. # Note I have WSL installed and I'm running Ubuntu. However, in this case I did touch any files with WSL. Also see [issue 1035](https://github.com/microsoft/terminal/issues/1035). this might influence it somehow.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1525