Unverified Commit 273441ee authored by stuartmorgan's avatar stuartmorgan Committed by GitHub

Use downgraded analyze for flutter/packages (#130878)

Add the `--downgrade` flag to the flutter/packages analyze test, so that it won't get the latest version of dependencies, avoiding out-of-band failures in flutter/flutter due to package publishing events.

Fixes https://github.com/flutter/flutter/issues/129633
parent 0df683c0
......@@ -1460,6 +1460,13 @@ Future<void> _runFlutterPackagesTests() async {
'run',
toolScript,
'analyze',
// Fetch the oldest possible dependencies, rather than the newest, to
// insulate flutter/flutter from out-of-band failures when new versions
// of dependencies are published. This compensates for the fact that
// flutter/packages doesn't use pinned dependencies, and for the
// purposes of this test using old dependencies is fine. See
// https://github.com/flutter/flutter/issues/129633
'--downgrade',
'--custom-analysis=script/configs/custom_analysis.yaml',
],
workingDirectory: checkout.path,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment