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

Check for long paths on Windows #236

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

jpenilla
Copy link
Member

@jpenilla jpenilla commented Mar 10, 2024

Check registry and git configs to see if long paths are likely to be a problem, and print a warning if so.

@jpenilla jpenilla marked this pull request as draft March 10, 2024 18:13
Copy link
Member

@MiniDigger MiniDigger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't work:
image

we might have to check git settings and registry (via reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled or powershell Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled")

or we need to git add the file (--f --dry-run)

I also found precedent on github for just checking if path > 240 or > 255 (the android gradle plugin does this for example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Command finished with 128 exit code / Filename too long [Windows]
2 participants