Skip to content

Commit

Permalink
Add missing parameter BuildTargets
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowei-guan committed Mar 21, 2024
1 parent b40c616 commit 706ac00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/executable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import 'package:flutter_tools/src/base/os.dart';
import 'package:flutter_tools/src/base/template.dart';
import 'package:flutter_tools/src/base/terminal.dart';
import 'package:flutter_tools/src/build_system/build_system.dart';
import 'package:flutter_tools/src/build_system/build_targets.dart';
import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/commands/analyze.dart';
import 'package:flutter_tools/src/commands/config.dart';
Expand All @@ -34,6 +35,7 @@ import 'package:flutter_tools/src/doctor.dart';
import 'package:flutter_tools/src/emulator.dart';
import 'package:flutter_tools/src/features.dart';
import 'package:flutter_tools/src/globals.dart' as globals;
import 'package:flutter_tools/src/isolated/build_targets.dart';
import 'package:flutter_tools/src/isolated/mustache_template.dart';
import 'package:flutter_tools/src/project_validator.dart';
import 'package:flutter_tools/src/runner/flutter_command.dart';
Expand Down Expand Up @@ -78,9 +80,7 @@ Future<void> main(List<String> args) async {
final bool verboseHelp = help && verbose;
final bool daemon = args.contains('daemon');
final bool runMachine = args.contains('--machine') && args.contains('run');

Cache.flutterRoot = join(rootPath, 'flutter');

await runner.run(
<String>[
'--suppress-analytics',
Expand Down Expand Up @@ -202,6 +202,7 @@ Future<void> main(List<String> args) async {
logger: globals.logger,
processManager: globals.processManager,
),
BuildTargets: () => const BuildTargetsImpl(),
Logger: () {
final LoggerFactory loggerFactory = LoggerFactory(
outputPreferences: globals.outputPreferences,
Expand Down

0 comments on commit 706ac00

Please sign in to comment.