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

Path too long for default W10 backups #29023

Open
Visca87 opened this issue May 2, 2024 · 1 comment
Open

Path too long for default W10 backups #29023

Visca87 opened this issue May 2, 2024 · 1 comment
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

Comments

@Visca87
Copy link

Visca87 commented May 2, 2024

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

@Visca87 Visca87 added a:chore Minor issue without significant impact to-triage labels May 2, 2024
@ljacomet ljacomet added the re:windows Issue related to using Gradle on Windows label May 13, 2024
@ljacomet
Copy link
Member

Are you able to exclude elements from the backup?
As indicated early on in the path, those are caches and are not worth backing up.

@ljacomet ljacomet added the pending:feedback Indicates that changes or additional info are required, and the issue will be closed without them label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants