Skip to content

Commit

Permalink
Force local built files when running fake server. (dart-lang#7290)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Dec 11, 2023
1 parent c66bd1a commit 06736a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/fake/server/fake_server_entrypoint.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class FakeServerCommand extends Command {
final watch = argResults!['watch'] == true;

setupDebugEnvBasedLogging();
await updateLocalBuiltFilesIfNeeded();

final state = LocalServerState();
if (dataFile != null) {
Expand Down Expand Up @@ -136,7 +137,6 @@ class FakeServerCommand extends Command {
return shelf.Response.notFound('Not Found.');
}

await updateLocalBuiltFilesIfNeeded();
await Future.wait(
[
storageServer.run(port: storagePort),
Expand Down
1 change: 1 addition & 0 deletions app/lib/fake/tool/init_data_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 06736a2

Please sign in to comment.