From 204606a39efc75edc4d679a62287581818305cb2 Mon Sep 17 00:00:00 2001 From: Eric Windmill Date: Fri, 1 Aug 2025 14:57:50 -0400 Subject: [PATCH] fix dir location in ci_script.dart --- tool/ci_script.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tool/ci_script.dart b/tool/ci_script.dart index 3b0d61591..c87730eff 100644 --- a/tool/ci_script.dart +++ b/tool/ci_script.dart @@ -8,8 +8,9 @@ Future main() async { final pubspecContent = await pubspecFile.readAsString(); final pubspecYaml = loadYaml(pubspecContent); + // pub workspace, only run 'get' once final workspace = pubspecYaml['workspace'] as YamlList?; - await _runCommand('flutter', ['pub', 'get'], workingDirectory: rootDir.path); + await _runCommand('flutter', ['pub', 'get']); if (workspace == null) { print('No workspace found in pubspec.yaml'); exit(1); @@ -47,7 +48,7 @@ Future main() async { Future _runCommand( String executable, List arguments, { - required String workingDirectory, + String? workingDirectory, }) async { final process = await Process.start( executable,