From 783618b89ffa6f719408ed90354651465df48c93 Mon Sep 17 00:00:00 2001 From: nandithebull Date: Tue, 24 Nov 2026 23:38:40 -0800 Subject: [PATCH] build-modules: skip modules whose source isn't in the tree instead of failing just run depends on just modules; a component listed in components.txt without a built core module (pulse, tasks, layout, ...) aborted the whole build. It now warns and carries on, so the panel loads whichever modules do exist. Co-Authored-By: Claude Sonnet 5.5 --- scripts/build-modules.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build-modules.sh b/scripts/build-modules.sh index 76b7ec8..6d6e2e5 100755 --- a/scripts/build-modules.sh +++ b/scripts/build-modules.sh @@ -20,7 +20,11 @@ while read -r name world; do case "$world" in *-widget) ;; *) continue;; esac if [ ${#want[@]} -gt 0 ] && [[ ! " ${want[*]} " =~ " $name " ]]; then continue; fi core="_build/wasm/release/build/components/$name/gen/gen.wasm" - [ -f "$core" ] || { echo "error: $core missing" >&2; exit 1; } + if [ ! -f "$core" ]; then + # Listed in components.txt but its source isn't in the tree (yet): skip it, don't fail the build. + echo " $name: skipped (no source: $core missing)" >&2 + continue + fi out="build/components/$name.wasm" wasm-tools component embed wit "$core" --world "$world" --encoding utf16 -o "build/components/$name.embed.wasm" wasm-tools component new "build/components/$name.embed.wasm" -o "$out"