Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long file names fail under Windows #199

Closed
Freymaurer opened this issue Jun 26, 2024 · 6 comments
Closed

Long file names fail under Windows #199

Freymaurer opened this issue Jun 26, 2024 · 6 comments
Assignees
Labels
Type: Feature Request This item is confirmed by the maintainers to be a request for a new feature

Comments

@Freymaurer
Copy link
Collaborator

Hey! So for now we added the git terminal view to remove silent fails!

Image

The issue with long file names still persists but is visible!

Image

At the moment, we are undecided on how to approach this. Should we apply settings to git for the user or should we just return a sensible error?

I will close this issue and open a new issue, in which this can be discussed!

Originally posted by @Freymaurer in #183

@github-actions github-actions bot added the Status: Needs Triage This item is up for investigation. label Jun 26, 2024
@Freymaurer
Copy link
Collaborator Author

@eik-dahms @micwij

@Freymaurer Freymaurer moved this to In discussion in ARCStack Jun 26, 2024
@Freymaurer Freymaurer added Type: Feature Request This item is confirmed by the maintainers to be a request for a new feature and removed Status: Needs Triage This item is up for investigation. labels Jun 26, 2024
@Freymaurer Freymaurer added this to the ARCitect v0.0.37 milestone Jun 26, 2024
@eik-dahms
Copy link
Contributor

I would suggest to do this on start up.
Check if windows -> check global config core.longpaths is set to true if not do ->

git config --global core.longpaths true

this should set the config globally for the current user. This should not require additional permissions and will be read by any git command executed by the current user.

this should be working without changing the windows settings, but should be tested anyways.

Alternatively:

  • this could be done in each repository separately. But this would be more complex and error prone.

  • there could also be a length limit on filenames, but that is rather impractical. especially if the filenames are generated external entities where you can not influence how things are named.

@eik-dahms
Copy link
Contributor

@kMutagene the mentioned "\?" prefix is what git uses if you turn set the core.longpaths to true.

git/git@0f634d0

@JonasLukasczyk JonasLukasczyk removed this from the ARCitect v0.0.37 milestone Oct 9, 2024
@Brilator
Copy link
Member

Just a reminder, that people (esp. on windows) keep running into this issue and the ARCitect cannot handle it.
git config --global core.longpaths true. This worked for me.

@JonasLukasczyk
Copy link
Collaborator

this flag has been added since 0.0.51

@github-project-automation github-project-automation bot moved this from In discussion to Done in ARCStack Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Request This item is confirmed by the maintainers to be a request for a new feature
Projects
Status: Done
Development

No branches or pull requests

5 participants