Skip to content

Commit e551bdf

Browse files
Ensure pub get is ran for all packages for flutter customer tests (#9270)
1 parent bfae3fe commit e551bdf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tool/flutter_customer_tests/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export DEVTOOLS_TOOL_FLUTTER_FROM_PATH=true
1818
cd tool
1919
flutter pub get
2020

21-
dt pub-get --upgrade
22-
dt generate-code --no-pub-get
21+
# This will run `dt pub-get --upgrade` before generating code with build_runner.
22+
dt generate-code --upgrade
2323

2424
cd ..

tool/lib/commands/generate_code.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class GenerateCodeCommand extends Command {
6767
final upgrade = argResults![_upgradeFlag] as bool;
6868
if (pubGet) {
6969
await processManager.runProcess(
70-
CliCommand.tool(['pub-get', '--only-main', if (upgrade) '--upgrade']),
70+
CliCommand.tool(['pub-get', if (upgrade) '--upgrade']),
7171
);
7272
}
7373

0 commit comments

Comments
 (0)