infra: Use built SDK when analyzing flutter packages

Change-Id: Ie1cae3bd803b1608a4ce70971e8d94c0d19a2daa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/498023
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
This commit is contained in:
Sam Rawlins
2026-04-24 10:52:37 -07:00
committed by Samuel Rawlins
parent 03fd5927a4
commit 335ab1588d
+3 -3
View File
@@ -63,15 +63,15 @@ analyze_flutter_packages() {
pushd packages
echo "Validating the tool's source"
(cd script/tool; dart pub --suppress-analytics get)
(cd script/tool; dart analyze --suppress-analytics --fatal-infos)
(cd script/tool; $dart pub --suppress-analytics get)
(cd script/tool; $dart analyze --suppress-analytics --fatal-infos)
echo Analyzing flutter/packages...
# Invoke the repo's analysis script.
# Use --downgrade to avoid potential breakage from transitive
# dependency publishing. See
# https://github.com/flutter/flutter/issues/129633
dart run script/tool/bin/flutter_plugin_tools.dart analyze \
$dart run script/tool/bin/flutter_plugin_tools.dart analyze \
--downgrade \
--analysis-sdk $sdk \
--custom-analysis=script/configs/custom_analysis.yaml \