Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 6010090

Browse files
Don't use 'flutter upgrade' on Cirrus (#4213)
This command isn't intended for CI use, and is also slower due to downloading artifacts that will be immidately discarded. Cirrus portion of flutter/flutter#86037
1 parent 498df33 commit 6010090

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.cirrus.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
2020
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
2121
- git fetch origin
2222
# Switch to the requested branch.
23-
- flutter channel $CHANNEL
24-
- flutter upgrade
23+
- git checkout $CHANNEL
24+
# Reset to upstream branch, rather than using pull, since the base image
25+
# can sometimes be in a state where it has diverged from upstream (!).
26+
- git reset --hard @{u}
27+
# Run doctor to allow auditing of what version of Flutter the run is using.
28+
- flutter doctor -v
2529
<< : *TOOL_SETUP_TEMPLATE
2630

2731
macos_template: &MACOS_TEMPLATE

0 commit comments

Comments
 (0)