Move corrupted zip to a separate handler and ask user#105054
Move corrupted zip to a separate handler and ask user#105054fluttergithubbot merged 4 commits intoflutter:masterfrom
Conversation
0c89547 to
bb6286e
Compare
camsim99
left a comment
There was a problem hiding this comment.
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.
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.
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