Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

unable to create file packages

Varun Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Sep 27, 2023
2
Cloning into 'C:\Users\Administrator\atlassian-bitbucket-pipelines-runner\bin\..\temp\72a91159-1101-5a49-8d06-9d84a88c1fef\1695799312869\build'...
3
error: unable to create file packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0/build/net45/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Extensions.props: Filename too long
4
error: unable to create file packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0/build/net46/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Extensions.props: Filename too long
5
Updating files: 72% (393/
Updating files: 100% (542/542), done.
35
fatal: unable to checkout working tree
36
warning: Clone succeeded, but checkout failed.
37
You can inspect what was checked out with 'git status'
38
and retry with 'git restore --source=HEAD :/'

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 28, 2023

Hello @Varun Kumar and welcome to the Community!

From the logs you have shared it seems you are using Bitbucket Windows self-hosted runners. The error message being returned "Filename too long" indicates this behavior is caused by a limitation in Windows OS, that by default only allows filenames/paths up to 260 characters. Since some files in your repository are exceeding that limit, when git is trying to save those files in the local folder, Windows is throwing the error.

I would suggest following the steps outlined in the below article to increase the filename limit on your Windows machine : 

Although the article was originally written for Bamboo, since these are OS-level and git configurations, it should apply to Bitbucket Windows Runners as well.

Let me know in case you have any questions.

Thank you, @Varun Kumar !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events