@@ -29,10 +29,10 @@ flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
2929    - git fetch origin 
3030    #  Switch to the requested channel.
3131    - git checkout $TARGET_TREEISH 
32-     #  When using a branch rather than a hash, reset to the upstream branch 
33-     #  rather than using pull, since the base image can sometimes be in a state 
34-     #  where it has diverged from upstream (!).
35-     - if [[ "$TARGET_TREEISH" == "$CHANNEL" ]]; then 
32+     #  When using a branch rather than a hash or version tag , reset to the
33+     #  upstream branch  rather than using pull, since the base image can sometimes
34+     #  be in a state  where it has diverged from upstream (!).
35+     - if [[ "$TARGET_TREEISH" == "$CHANNEL" ]] && [[ "$CHANNEL" != *"."* ]] ; then 
3636    -   git reset --hard @{u} 
3737    - fi 
3838    #  Run doctor to allow auditing of what version of Flutter the run is using.
5555      always :
5656        format_script : ./script/tool_runner.sh format --fail-on-change 
5757        license_script : dart pub global run flutter_plugin_tools license-check 
58-         analyze_script : ./script/tool_runner.sh analyze --custom-analysis=web_benchmarks/testing/test_app,flutter_lints/example,rfw/example,metrics_center  
58+         analyze_script : ./script/tool_runner.sh analyze --custom-analysis=script/configs/custom_analysis.yaml  
5959        pubspec_script : ./script/tool_runner.sh pubspec-check 
60+     #  Does a sanity check that packages at least pass analysis on the N-1 and N-2
61+     #  versions of Flutter stable if the package claims to support that version.
62+     #  This is to minimize accidentally making changes that break old versions
63+     #  (which we don't commit to supporting, but don't want to actively break)
64+     #  without updating the constraints.
65+     #  Note: The versions below should be manually updated after a new stable
66+     #  version comes out.
67+     - name : legacy-version-analyze 
68+       depends_on : format+analyze 
69+       env :
70+         matrix :
71+           CHANNEL : " 2.5.3" 
72+           CHANNEL : " 2.8.1" 
73+       analyze_script :
74+         - ./script/tool_runner.sh analyze --skip-if-not-supporting-flutter-version="$CHANNEL" --custom-analysis=script/configs/custom_analysis.yaml 
6075    - name : publishable 
6176      env :
6277        #  TODO(stuartmorgan): Remove once the fix for https://github.com/dart-lang/pub/issues/3152
0 commit comments