From 1f2cf1e13c1ea750f9db325a73faa7069c3ddee4 Mon Sep 17 00:00:00 2001 From: Dorian Date: Mon, 13 Jul 2026 21:11:59 +0100 Subject: [PATCH] fix(iso): wrapper missed repo-root ../../ rewrites, breaking version + source paths b8002885 moved the archived builder's repo-root refs to ../../ (correct for direct _archived/ execution) but the wrapper pins SCRIPT_DIR to image-recipe/ and only rewrote the ../../scripts form. core, neode-ui, docker, apps, demo, web and the $(cd "$SCRIPT_DIR/../..") expressions all resolved one level above the repo, so wrapper builds ran with an empty BUILD_VERSION and would have failed at the backend/web-UI steps. Rewrite the ../../ prefix generically. Co-Authored-By: Claude Fable 5 --- image-recipe/build-debian-iso.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/image-recipe/build-debian-iso.sh b/image-recipe/build-debian-iso.sh index 6908a223..d8e0a96f 100644 --- a/image-recipe/build-debian-iso.sh +++ b/image-recipe/build-debian-iso.sh @@ -27,14 +27,11 @@ cp "$ARCHIVED_BUILDER" "$TMP_BUILDER" # The archived builder lived one directory deeper at image-recipe/_archived/. # Rewrite only path expressions that were relative to that old location. perl -0pi -e 's#SCRIPT_DIR="\$\(cd "\$\(dirname "\$0"\)" && pwd\)"#SCRIPT_DIR="__ARCHIPELAGO_IMAGE_RECIPE_DIR__"#g' "$TMP_BUILDER" -perl -0pi -e 's#\$SCRIPT_DIR/\.\./\.\./scripts#\$SCRIPT_DIR/../scripts#g' "$TMP_BUILDER" +# Repo-root references: _archived/../../X becomes image-recipe/../X. +perl -0pi -e 's#\$SCRIPT_DIR/\.\./\.\./#\$SCRIPT_DIR/../#g' "$TMP_BUILDER" +perl -0pi -e 's#\$SCRIPT_DIR/\.\./\.\."#\$SCRIPT_DIR/.."#g' "$TMP_BUILDER" +# configs/ lives inside image-recipe/ itself: _archived/../configs becomes image-recipe/configs. perl -0pi -e 's#\$SCRIPT_DIR/\.\./configs#\$SCRIPT_DIR/configs#g' "$TMP_BUILDER" -perl -0pi -e 's#\$SCRIPT_DIR/\.\./docker#\$SCRIPT_DIR/../docker#g' "$TMP_BUILDER" -perl -0pi -e 's#\$SCRIPT_DIR/\.\./neode-ui#\$SCRIPT_DIR/../neode-ui#g' "$TMP_BUILDER" -perl -0pi -e 's#\$SCRIPT_DIR/\.\./web#\$SCRIPT_DIR/../web#g' "$TMP_BUILDER" -perl -0pi -e 's#\$SCRIPT_DIR/\.\./demo#\$SCRIPT_DIR/../demo#g' "$TMP_BUILDER" -perl -0pi -e 's#\$SCRIPT_DIR/\.\./apps#\$SCRIPT_DIR/../apps#g' "$TMP_BUILDER" -perl -0pi -e 's#\$SCRIPT_DIR/\.\./core#\$SCRIPT_DIR/../core#g' "$TMP_BUILDER" perl -0pi -e 's#"\$\(dirname "\$0"\)/\.\./\.\./scripts#"$(dirname "$0")/../scripts#g' "$TMP_BUILDER" perl -0pi -e "s#__ARCHIPELAGO_IMAGE_RECIPE_DIR__#${SCRIPT_DIR}#g" "$TMP_BUILDER"