aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/compilers/flutter/patches/dev/disable-auto-update.patch
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/compilers/flutter/patches/dev/disable-auto-update.patch')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/compilers/flutter/patches/dev/disable-auto-update.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/compilers/flutter/patches/dev/disable-auto-update.patch b/infra/libkookie/nixpkgs/pkgs/development/compilers/flutter/patches/dev/disable-auto-update.patch
new file mode 100644
index 000000000000..f9ac00d1d323
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/compilers/flutter/patches/dev/disable-auto-update.patch
@@ -0,0 +1,31 @@
+diff --git a/bin/internal/shared.sh b/bin/internal/shared.sh
+index 22efe87443..c6954575c5 100644
+--- a/bin/internal/shared.sh
++++ b/bin/internal/shared.sh
+@@ -212,8 +212,6 @@ function shared::execute() {
+ # FLUTTER_TOOL_ARGS="--enable-asserts $FLUTTER_TOOL_ARGS"
+ # FLUTTER_TOOL_ARGS="$FLUTTER_TOOL_ARGS --observe=65432"
+
+- upgrade_flutter 7< "$PROG_NAME"
+-
+ BIN_NAME="$(basename "$PROG_NAME")"
+ case "$BIN_NAME" in
+ flutter*)
+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 fb1616ba96..b973b3fd58 100644
+--- a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
++++ b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
+@@ -291,13 +291,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();