Do not check the executable status of gen_snapshot if it has not yet been downloaded (#52574)
This commit is contained in:
@@ -640,7 +640,8 @@ class FlutterValidator extends DoctorValidator {
|
||||
globals.artifacts.getArtifactPath(Artifact.genSnapshot);
|
||||
|
||||
// Check that the binaries we downloaded for this platform actually run on it.
|
||||
if (!_genSnapshotRuns(genSnapshotPath)) {
|
||||
if (globals.fs.file(genSnapshotPath).existsSync()
|
||||
&& !_genSnapshotRuns(genSnapshotPath)) {
|
||||
final StringBuffer buf = StringBuffer();
|
||||
buf.writeln(userMessages.flutterBinariesDoNotRun);
|
||||
if (globals.platform.isLinux) {
|
||||
|
||||
Reference in New Issue
Block a user