From 8bc2416da003b924b599737c5a71e4b40aba576c Mon Sep 17 00:00:00 2001 From: david Date: Wed, 30 Sep 2026 16:22:53 +0200 Subject: [PATCH] build: fetch git dependency submodules (libplacebo glad) --- ci/build-libmpv-mingw64.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/build-libmpv-mingw64.sh b/ci/build-libmpv-mingw64.sh index 7c48b1f..1a9c1d7 100644 --- a/ci/build-libmpv-mingw64.sh +++ b/ci/build-libmpv-mingw64.sh @@ -115,9 +115,12 @@ function gettar { } # Clone a git dependency at a pinned tag (shallow, tag-checked-out). +# Submodules are fetched shallow too: libplacebo needs its bundled `glad`, +# ffmpeg/dav1d/others carry submodules needed for the build. function gitpin { local url=$1 dest=$2 tag=$3 - [ -d "$dest" ] || git clone --depth=1 --branch "$tag" "$url" "$dest" + [ -d "$dest" ] || git clone --depth=1 --branch "$tag" \ + --recurse-submodules --shallow-submodules "$url" "$dest" pushd "$dest" git checkout --quiet "$tag" popd