Search code examples
node.jsgitbotframeworkmicrosoft-teams

Issue while cloning BotBuilder-Samples GitHub repository


I tried to clone the BotBuilder repository but it gives the following error:

fatal: cannot create directory at
'composer-samples/csharp_dotnetcore/pipelines/CICDPipelineSample/BasicAssistant/BasicAssistant/dialogs/imported/Microsoft.Bot.Components.HelpAndCancel/CancelDialog/knowledge-base':
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 :/'

Solution

  • It looks like a 260 character max path limit

    Check first if a git config --global core.longpaths true helps.

    Check if you can implement some of the remediation, although it is not clear how a "Microsoft Team" environment would influence that.