buildinspace / peru

a generic package manager, for including other people's code in your projects
MIT License
1.12k stars 69 forks source link

Issue with "Filename too long" #244

Open felipefoz opened 1 year ago

felipefoz commented 1 year ago

Hi,

In one of my projects, I am getting problems with branch names that are too long.

Unfortunately, this is something not within my reach to force users to make branch names with smaller lengths.

I was able to workaround with setting git configuration globally with "longpaths = true", but I don't like this solution, as it is a global setting, and could affect other repositories.

git config --global core.longpaths true

I tried a local repository setting git config core.longpaths true but peru obviously is not following the local repo configuraiton, only global.

I tried to manually change the git configuration for the repository inside the peru cache folder, and this works.

So, maybe we could have an extra configuration for this?

Any ideas on how to solve this?

Regards,