Runtime: installer: "really, really long file name" test folder is causing git clone failure

Created on 21 Nov 2019  路  4Comments  路  Source: dotnet/runtime

Here's the git clone output message:

PS D:\> git clone https://github.com/carlossanlop/runtime
Cloning into 'runtime'...
remote: Enumerating objects: 35, done.
remote: Counting objects: 100% (35/35), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 1186363 (delta 13), reused 24 (delta 12), pack-reused 1186328
Receiving objects: 100% (1186363/1186363), 217.94 MiB | 9.88 MiB/s, done.
Resolving deltas: 100% (876858/876858), done.
fatal: cannot create directory at 'src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/This is a really, really, really, really, really, really, really, really, really, really, really, really, really, really long file name for punctuation': Filename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
area-System.IO

Most helpful comment

Maybe we can rename the file
This is a really, really, really, really, really, really, really, really, really, really, really, really, really, really long file name for punctuation
to
If git clone fails with this message on Windows please run ``git config --system core.longpaths true`` and then try again ......................

All 4 comments

@swaroop-sridhar : your PR introduced this long folder: https://github.com/dotnet/core-setup/pull/5954
Can you please take a look?

Carlos, did you configure your machine according to https://github.com/dotnet/runtime/blob/master/docs/building/windows-requirements.md#enable-long-paths ?

As Stephen commented, long path support is a requirement for the runtime repo on Windows. Closing.

Maybe we can rename the file
This is a really, really, really, really, really, really, really, really, really, really, really, really, really, really long file name for punctuation
to
If git clone fails with this message on Windows please run ``git config --system core.longpaths true`` and then try again ......................

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jkotas picture jkotas  路  3Comments

noahfalk picture noahfalk  路  3Comments

chunseoklee picture chunseoklee  路  3Comments

Timovzl picture Timovzl  路  3Comments

aggieben picture aggieben  路  3Comments