Skip to content

Commit 59bcd6b

Browse files
committed
Revert "ci: Remove --depth=1000 in doing Flutter clone, to be added back later"
This reverts commit 2b99578. Fixes: #1204 Signed-off-by: Zixuan James Li <[email protected]>
1 parent 5d0da50 commit 59bcd6b

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
@@ -18,9 +18,12 @@ jobs:
1818
distribution: temurin
1919

2020
- name: Clone Flutter SDK
21-
# TODO(#1204) reinstate shallow clone with --depth=1000 and its corresponding comment here
21+
# We can't do a depth-1 clone, because we need the most recent tag
22+
# so that Flutter knows its version and sees the constraint in our
23+
# pubspec is satisfied. It's uncommon for flutter/flutter to go
24+
# more than 100 commits between tags. Fetch 1000 for good measure.
2225
run: |
23-
git clone -b main https://github.com/flutter/flutter ~/flutter
26+
git clone --depth=1000 -b main https://github.com/flutter/flutter ~/flutter
2427
TZ=UTC git --git-dir ~/flutter/.git log -1 --format='%h | %ci | %s' --date=iso8601-local
2528
echo ~/flutter/bin >> "$GITHUB_PATH"
2629

0 commit comments

Comments
 (0)