Skip to content

Commit df675f4

Browse files
authored
Fix Fuchsia build (flutter#7105)
1 parent 56f4fe4 commit df675f4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/flutter_tools/bin/fuchsia_builder.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import '../lib/src/base/config.dart';
1212
import '../lib/src/base/context.dart';
1313
import '../lib/src/base/logger.dart';
1414
import '../lib/src/base/os.dart';
15+
import '../lib/src/base/process_manager.dart';
1516
import '../lib/src/cache.dart';
1617
import '../lib/src/flx.dart';
1718
import '../lib/src/globals.dart';
@@ -36,6 +37,7 @@ Future<Null> main(List<String> args) async {
3637
executableContext.setVariable(Logger, new StdoutLogger());
3738
executableContext.runInZone(() {
3839
// Initialize the context with some defaults.
40+
context.putIfAbsent(ProcessManager, () => new ProcessManager());
3941
context.putIfAbsent(Logger, () => new StdoutLogger());
4042
context.putIfAbsent(Cache, () => new Cache());
4143
context.putIfAbsent(Config, () => new Config());

packages/flutter_tools/lib/executable.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ Future<Null> main(List<String> args) async {
9696
// Make the context current.
9797
_executableContext.runInZone(() {
9898
// Initialize the context with some defaults.
99+
// NOTE: Similar lists also exist in `bin/fuchsia_builder.dart` and
100+
// `test/src/context.dart`. If you update this list of defaults, look
101+
// in those locations as well to see if you need a similar update there.
102+
99103
// Seed these context entries first since others depend on them
100104
context.putIfAbsent(ProcessManager, () => new ProcessManager());
101105
context.putIfAbsent(Logger, () => new StdoutLogger());

0 commit comments

Comments
 (0)