Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Update Git extension for BuildMaster to support paths longer than 260 characters?

    Scheduled Pinned Locked Moved Support
    3 Posts 1 Posters 10 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Unfortunately, some paths in my Git repository are longer than the Windows 'MAX_PATH' limit; I'm seeing errors in the build log like the following:

      Applying label '1.1.1'.
      Arguments: get "https://git-user-name:password@git-service.example.com/Code/Repositories/Group/my-repository.git" "refs/heads/master"
      Working Directory: C:\BuildMaster\_SVCTMP\GitRepositories\my-repository.git
      

      Executing C:\BuildMaster_SVCTMP\ExtTemp\Git\lilgit.exe
      An unhandled exception occurred while executing this action: System.InvalidOperationException: Failed to make directory 'C:/BuildMaster/_SVCTMP/GitRepositories/my-repository.git/this-was-a-really-long-path': The filename or extension is too long. at Inedo.BuildMasterExtensions.Git.Clients.LilGitClient.UpdateLocalRepo(IGitRepository repo, String branch, String tag) at Inedo.BuildMasterExtensions.Git.GitSourceControlProviderCommon.ApplyLabel(String label, String sourcePath) at Inedo.BuildMaster.Extensibility.Actions.SourceControl.ApplyLabelAction.Execute() at Inedo.BuildMaster.Extensibility.Actions.ProviderBasedAction`1.Execute(IActionCancellationToken cancellationToken) at Inedo.BuildMaster.Extensibility.Actions.ActionBase.Execute(IActionCancellationToken cancellationToken, ExecutionContext context, ExtensionConfigurerBase extensionConfigurer, Boolean resumeNextOnError, Boolean logErrorsAsWarnings)

      I'm guessing that the relevant code could be modified to use different Windows API methods that aren't limited to MAX_PATH.

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        We have considered adding support for this, but we've found that virtually no tools (including msbuild) will function with these long paths either.

        As a test, you may try switching to use the regular "git.exe" client with the source control provider; I'm not sure if we added support for that with the built-in client (lilgit.exe).

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          I am getting this same issue, i guess the best thing to do is to use a third party app like Long Path Tool. Just download it and use it to solve this issue. I hope this would help.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation