Skip to content

Commit 37af86d

Browse files
committed
ci: Work around accidental desync of Flutter main branch
This infra issue in Flutter is currently causing our CI to fail.
1 parent 742320c commit 37af86d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,18 @@ jobs:
2323
# pubspec is satisfied. It's uncommon for flutter/flutter to go
2424
# more than 100 commits between tags. Fetch 1000 for good measure.
2525
run: |
26-
git clone --depth=1000 -b main https://github.com/flutter/flutter ~/flutter
26+
# TODO temp hack 2025-07-08 as Flutter's `main` is broken but `master` works:
27+
# https://github.com/zulip/zulip-flutter/pull/1688#issuecomment-3050661097
28+
# https://discord.com/channels/608014603317936148/608021351567065092/1392301750383415376
29+
git clone --depth=1000 -b master https://github.com/flutter/flutter ~/flutter
2730
TZ=UTC git --git-dir ~/flutter/.git log -1 --format='%h | %ci | %s' --date=iso8601-local
2831
echo ~/flutter/bin >> "$GITHUB_PATH"
2932
3033
# The Flutter tool assumes the tip of tree is "origin/master"
3134
# (or "upstream/master"):
3235
# https://github.com/flutter/flutter/issues/160626
3336
# TODO(upstream): make workaround unneeded
34-
git --git-dir ~/flutter/.git update-ref refs/remotes/origin/master origin/main
37+
# TODO, see temp hack above: git --git-dir ~/flutter/.git update-ref refs/remotes/origin/master origin/main
3538
3639
- name: Download Flutter SDK artifacts (flutter precache)
3740
run: flutter precache --universal

0 commit comments

Comments
 (0)