-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
GitHub REST API checkout Windows long file path issues #1285
Comments
On a self-hosted runner, you can at least fix it with something like |
tried all the ways still facing the long path issue. |
Having same issue, for newer versions of Windows you can enable long paths like so: However in Windows Server 2012 r2 there is no option to do this. |
Similar to #1018, it would be nice to add this config directly to "checkout". |
Checking out PyTorch on Windows starts to fail after ROCm change #131004 in which one of the submodule path, `third_party/composable_kernel`, is getting too long https://hud.pytorch.org/pr/pytorch/pytorch/131004#31778700376 According to actions/checkout#1285, there is no fix in GHA checkout, but we can set `git config --system core.longpaths true` to enable long paths support in Git as a workaround. ### Testing Windows checkout is ok now https://github.com/pytorch/pytorch/actions/runs/11423112351/job/31781916540 Pull Request resolved: #138411 Approved by: https://github.com/wdvr
Checking out PyTorch on Windows starts to fail after ROCm change #131004 in which one of the submodule path, `third_party/composable_kernel`, is getting too long https://hud.pytorch.org/pr/pytorch/pytorch/131004#31778700376 According to actions/checkout#1285, there is no fix in GHA checkout, but we can set `git config --system core.longpaths true` to enable long paths support in Git as a workaround. ### Testing Windows checkout is ok now https://github.com/pytorch/pytorch/actions/runs/11423112351/job/31781916540 Pull Request resolved: #138411 Approved by: https://github.com/wdvr
When running on a Windows self hosted runner and using the GitHub REST API checkout method, I'm running into problems with long file names causing the unzip step to file. A big part of this is the generated folder structure that checkout creates in the format of
<uuid>\<owner>-<repo>-<hash>
. This creates 91 characters which is almost 35% of the Windows file path limit.It would be nice if we could at least customize this somehow to reduce the size of the folder path it unzips to.
The text was updated successfully, but these errors were encountered: