Skip to content

Commit 009232e

Browse files
committed
Clone the wolfSSL ref instead of fetching into a shallow submodule
1 parent 455e081 commit 009232e

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/android.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,15 @@ jobs:
6767
# silently skipped this and every job built the 2024 submodule pin
6868
# while claiming to test master
6969
test -e wolfssl/.git || { echo "FAIL: wolfssl submodule not checked out"; exit 1; }
70-
cd wolfssl
71-
git fetch -q --depth 1 origin '${{ matrix.wolfssl_ref }}'
72-
git checkout -q FETCH_HEAD
73-
echo "wolfssl now at ${{ matrix.wolfssl_ref }}: $(git rev-parse --short HEAD)"
70+
# Replace the tree rather than fetching into it: checkout@v5 clones the
71+
# submodule shallow, and `git fetch --depth 1` then rewrites
72+
# .git/modules/*/shallow under git's own read -- "fatal: shallow file has
73+
# changed since we read it", which struck 1 leg in 6 while its identical
74+
# sibling passed.
75+
rm -rf wolfssl
76+
git clone -q --depth 1 --branch '${{ matrix.wolfssl_ref }}' \
77+
https://github.com/wolfSSL/wolfssl.git wolfssl
78+
echo "wolfssl now at ${{ matrix.wolfssl_ref }}: $(git -C wolfssl rev-parse --short HEAD)"
7479
7580
# The job title claims a ref; prove the tree matches it rather than
7681
# trusting that the checkout above did anything.

0 commit comments

Comments
 (0)