-
Notifications
You must be signed in to change notification settings - Fork 26.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
Move corrupted zip to a separate handler and ask user #105054
Move corrupted zip to a separate handler and ask user #105054
Conversation
0c89547
to
bb6286e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just one question.
final Directory directory = globals.fs.directory(globals.fs.path.join(homeDir, '.gradle')); | ||
ErrorHandlingFileSystem.deleteIfExists(directory, recursive: true); | ||
if (homeDir == null) { | ||
globals.logger.printStatus("Could not delete .gradle directory because there isn't a HOME env variable"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of complete curiosity, how common would it be for someone to have moved it since the home directory is the default? If decently common, would it be reasonable to allow them provide the path to delete it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it is common. The user would need to do something different than what Gradle does by default: https://docs.gradle.org/current/userguide/directory_layout.html#dir:gradle_user_home
I'm also not sure if it's possible.- I'm not aware of a GRADLE_HOME variable or similar that would inform Gradle where this directory is.
On which Channel is this fix on because am still getting a re-download of gradle with flutter 3.0.2 - stable channel |
Still getting this issue |
I am still getting this error on flutter 3.0.4 |
@Genialngash @ziakhan110 @kudak3 Are any of you receiving the warning "Your .gradle directory under the home directory might be corrupted." before Gradle redownloads? |
Fixes #89959