From 7533d042bf4bf7220cf79433873dfe5486caa8f2 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 27 Mar 2025 02:12:21 -0700 Subject: [PATCH] Specify the base branch when running "flutter_plugin_tools analyze" flutter_plugin_tools is now querying FETCH_HEAD by default after the changes in https://github.com/flutter/packages/commit/8c287e99d62396402f9a8eb89d9704a5ba6cb8c0 This causes issues for the analyze_flutter_packages.sh script, which creates a clone of the flutter/packages repository that does not have a FETCH_HEAD. With the --base-branch flag flutter_plugin_tools will instead query the head of the main branch. Change-Id: I5aa69b80789fdf85497974cf29d25a66166ddc3e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/418200 Reviewed-by: Slava Egorov Commit-Queue: Slava Egorov --- tools/bots/flutter/analyze_flutter_packages.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/bots/flutter/analyze_flutter_packages.sh b/tools/bots/flutter/analyze_flutter_packages.sh index a5ac62d5504..79c0b79a8b4 100755 --- a/tools/bots/flutter/analyze_flutter_packages.sh +++ b/tools/bots/flutter/analyze_flutter_packages.sh @@ -41,4 +41,5 @@ cd packages dart run script/tool/bin/flutter_plugin_tools.dart analyze \ --downgrade \ --analysis-sdk $sdk \ - --custom-analysis=script/configs/custom_analysis.yaml + --custom-analysis=script/configs/custom_analysis.yaml \ + --base-branch=main