Add --downgrade to flutter/packages analysis

Closes https://github.com/dart-lang/sdk/pull/52989

GitOrigin-RevId: 0f3e9114c0afe23ebfda7d80e89e5cd46a4419fa
Change-Id: I7d0632c8efd34b414b47d1e8d80e7996a5d7726e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/314920
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
This commit is contained in:
stuartmorgan 2023-07-19 20:10:38 +00:00 committed by Commit Queue
parent a5936e404b
commit 69f95fa2cd

View file

@ -35,6 +35,10 @@ cd packages
(cd script/tool; dart analyze --suppress-analytics --fatal-infos)
# 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 \
--downgrade \
--analysis-sdk $sdk \
--custom-analysis=script/configs/custom_analysis.yaml