Path too long for default W10 backups #29023
Labels
a:chore
Minor issue without significant impact
pending:feedback
Indicates that changes or additional info are required, and the issue will be closed without them
re:windows
Issue related to using Gradle on Windows
to-triage
Issue type
Polishing
Problem description
I just installed a new Windows 10 with some tools, among them visual studio code and android studio, one of which likely installed Gradle without me noticing.
I also activated the in-built backup system of W10 that uses the "File History" method (something granted by the usage of NTFS filesystem). This has a limit of 185 characters filenames (including the path). The backup system spewed hundreds of errors all related to Gradle due to this reason.
This is one of the hundreds of problematic files:
C:\Users\USERNAME\.gradle\caches\transforms-3\82188b1b3f1b5ffbea4c8cb0d9d036b8\transformed\unzipped-distribution\gradle-8.4\build-logic\binary-compatibility\src\main\groovy\gradlebuild\binarycompatibility\rules\SinceAnnotationMissingRuleCurrentGradleVersionSetup.java
It's 268 characters long, out of 185.
I'm not moving or reinstalling Gradle because frankly I would provably mess with something else. If anything ever happens I'd just deal with it. I just wanted to give you the heads up that your program is likely not being able to be backup in systems without specific solutions that don't rely in "File History".
Also, hundreds of red "X" in the event viewer looks threatening (it shows 1020 errors for me). If I didn't know my installation was squeaky clean and I just manually activated the backups, I'd provably had assumed a virus corrupted everything.
Context (optional)
No response
The text was updated successfully, but these errors were encountered: