From 06736a2bd2797437d957725d600ef55bfa8da687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20So=C3=B3s?= Date: Mon, 11 Dec 2023 16:05:42 +0100 Subject: [PATCH] Force local built files when running fake server. (#7290) --- app/lib/fake/server/fake_server_entrypoint.dart | 2 +- app/lib/fake/tool/init_data_file.dart | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/fake/server/fake_server_entrypoint.dart b/app/lib/fake/server/fake_server_entrypoint.dart index 7e79c68a10..2addc896f9 100644 --- a/app/lib/fake/server/fake_server_entrypoint.dart +++ b/app/lib/fake/server/fake_server_entrypoint.dart @@ -66,6 +66,7 @@ class FakeServerCommand extends Command { final watch = argResults!['watch'] == true; setupDebugEnvBasedLogging(); + await updateLocalBuiltFilesIfNeeded(); final state = LocalServerState(); if (dataFile != null) { @@ -136,7 +137,6 @@ class FakeServerCommand extends Command { return shelf.Response.notFound('Not Found.'); } - await updateLocalBuiltFilesIfNeeded(); await Future.wait( [ storageServer.run(port: storagePort), diff --git a/app/lib/fake/tool/init_data_file.dart b/app/lib/fake/tool/init_data_file.dart index c5f51a3cb1..f93b484cab 100644 --- a/app/lib/fake/tool/init_data_file.dart +++ b/app/lib/fake/tool/init_data_file.dart @@ -65,6 +65,7 @@ class FakeInitDataFileCommand extends Command { final profile = TestProfile.fromYaml( await File(argResults!['test-profile'] as String).readAsString(), ); + await updateLocalBuiltFilesIfNeeded(); final archiveCachePath = p.join( resolveAppDir(),