From 54289181987b4e6ccd0fe25eb1dad35202c21bcb Mon Sep 17 00:00:00 2001 From: lotherk Date: Mon, 23 Nov 2026 14:06:03 +0000 Subject: [PATCH] userland: the submodule filter must not stop the script under set -e grep exits 1 when every line is filtered out -- which is exactly the good case, every submodule at its pin. Under set -e the script died there in silence (measured 2026-11-23: step 2, exit 1, no message, no work done). `|| true' on the pipeline. --- tools/userland.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/userland.sh b/tools/userland.sh index 5ac1ba96d8..10922f68f3 100755 --- a/tools/userland.sh +++ b/tools/userland.sh @@ -444,9 +444,14 @@ ensure_submodules() # tens of gigabytes) that tools/srctree-stage.sh keeps out of the source # set and no build step reads. Checking them out turned a fresh clone's # `make release` into a 36 GB download (measured 2026-11-23). + # + # `|| true' on the pipeline: this script runs under `set -e', and grep + # exits 1 when the filter leaves nothing -- which is the good case, every + # submodule at its pin. Without it the build stopped here in silence + # (measured 2026-11-23: step 2, exit 1, no message). need=$(cd "$TOP" && git submodule status 2>/dev/null | awk 'substr($0, 1, 1) == "-" || substr($0, 1, 1) == "+" { print $2 }' | - grep -v '^refs/') + grep -v '^refs/' || true) [ -n "$need" ] || return 0 echo "userland: submodules at their pin: $(echo $need)" # A submodule that cannot be fetched (a private tree this build does not