[tool] Use 'flutter pub get' for Flutter packages (#4397)

Extracts common logic for running `pub get`, and switches commands to use it. The common logic always uses `flutter pub get` for Flutter packages, rather than `dart pub get`, since the latter will fail if someone has a non-Flutter `dart` in their path before `flutter` (e.g., Dart team members contributing PRs).
This commit is contained in:
stuartmorgan
2023-07-07 16:22:19 -04:00
committed by GitHub
parent 958750d1fa
commit 12ec9fe3f0
11 changed files with 179 additions and 52 deletions

View File

@ -429,7 +429,7 @@ dev_dependencies:
expect(
output,
containsAllInOrder(<Matcher>[
contains('dart pub get failed'),
contains('Fetching dependencies failed'),
contains('Failed to update pigeon files'),
]),
);
@ -545,7 +545,7 @@ dev_dependencies:
expect(
output,
containsAllInOrder(<Matcher>[
contains('dart pub get failed'),
contains('Fetching dependencies failed'),
contains('Failed to update mocks'),
]),
);