19 lines
1.1 KiB
Diff
19 lines
1.1 KiB
Diff
diff --git a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
|
|
index 21be933e1..2ea73c4c0 100644
|
|
--- a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
|
|
+++ b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
|
|
@@ -294,13 +294,6 @@ class FlutterCommandRunner extends CommandRunner<void> {
|
|
globals.flutterUsage.suppressAnalytics = true;
|
|
}
|
|
|
|
- try {
|
|
- await globals.flutterVersion.ensureVersionFile();
|
|
- } on FileSystemException catch (e) {
|
|
- globals.printError('Failed to write the version file to the artifact cache: "$e".');
|
|
- globals.printError('Please ensure you have permissions in the artifact cache directory.');
|
|
- throwToolExit('Failed to write the version file');
|
|
- }
|
|
final bool machineFlag = topLevelResults['machine'] as bool;
|
|
if (topLevelResults.command?.name != 'upgrade' && topLevelResults['version-check'] as bool && !machineFlag) {
|
|
await globals.flutterVersion.checkFlutterVersionFreshness();
|