Use "flutter pub get" to resolve packages when building the docs snippets tool (#170381)

"flutter pub get" should be used instead of "dart pub get" for packages
within the Flutter pub workspace.

This was causing issues for some runs of the docs_test builder on CI.

(example:
https://ci.chromium.org/ui/p/flutter/builders/try/Linux%20docs_test/68448/overview)
This commit is contained in:
Jason Simmons 2025-06-10 15:51:23 -07:00 committed by GitHub
parent d1f63480c4
commit 3f99c8d192
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,7 +113,7 @@ function build_snippets_tool() (
echo "Building snippets tool executable."
command cd "$snippets_dir"
mkdir -p "$output_dir"
dart pub get
"$FLUTTER" pub get
dart compile exe -o "$output_dir/snippets" bin/snippets.dart
)