From 6cf72495cb22b76a856c08535b9d1ddaf43d91d2 Mon Sep 17 00:00:00 2001 From: Chris Chua Date: Sat, 23 Mar 2024 10:40:16 +0800 Subject: [PATCH] set fetch depth 1000 to let flutter know what version it is on --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ecd9519724..3ed9d329a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,12 @@ jobs: uses: actions/checkout@v3 with: submodules: true + # This is only needed for the flutter submodule. + # We can't do a depth-1 clone, because we need the most recent tag + # so that Flutter knows its version and sees the constraint in our + # pubspec is satisfied. It's uncommon for flutter/flutter to go + # more than 100 commits between tags. Fetch 1000 for good measure. + fetch-depth: 1000 - name: Add vendored flutter to PATH run: |