-
-
Notifications
You must be signed in to change notification settings - Fork 716
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
check for long file paths #760
Comments
yeah this might be an interesting idea -- I'm not sure how we would pick a good lower bound though (since it kind of depends on where the repository gets cloned to) it might also be possible just with #589 kinda stalled, not really sure what's up with that and I wouldn't want to tie the two together |
Yeah, for some of the projects I've worked on there's a standardized path recommended for checkouts, like Using Somehow in my thinking about this, the clone location issue slipped my mind. Makes me think this might not be quite as generally valuable as I originally thought. I suppose maybe it could be paired with a hook to warn you if your repo clone location is invalid according to some ruleset, based on length or maybe other rules. |
I'm going out on a limb here, but |
probably not really doable I think |
Depending on what you're doing, Windows can have a path length limit of 260 characters. It's kind of complicated and there are a number of workarounds but this limit is true in many cases.
My proposal is to write a simple hook that checks each path for its length as an absolute path and errors if the path exceeds a configurable value that defaults to 260 chars.
This might make the most sense as part of the Windows illegal filenames check - if so I'm happy to just copy this request into that issue. #589
References
(I did search for dupes and didn't find any similar proposals or requests, but of course if this has come up before and I missed it, please forgive me :) )
The text was updated successfully, but these errors were encountered: