Build fails with "filename too long"

Philipp Wieseckel
Contributor
December 20, 2023

We try to build a .Net Application on a local runner on Windows Server 2019. Unfortunately the build fails with the error of "filename too long".

1 answer

0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 21, 2023

Hi Philip,

I don't think that issue will be specific to Bitbucket.

Windows has its own max lenght for file names. With GIT there are ways to circumvent this.

Do you know if the error occurs after executing a git command in the build? (clone, fetch, checkout, ...)

If it's the case you can follow this article to set core.longpath. The article for Bamboo but it should be the same for any Windows server using GIT.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events