fix(image/build): propagate INFINITO_VENV_DIR to docker build

scripts/image/build.sh drives 'make build' and the test-environment
matrix's dev-image build, but missed the new INFINITO_VENV_DIR build
arg. Dockerfile's ARG resolved to empty, ENV set INFINITO_VENV_DIR=""
in the image, and entry.sh's assert tripped on first --compile.

Adds the assert and the matching --build-arg, parallel to the
INFINITO_SRC_DIR plumbing already in this file and to the equivalent
plumbing in scripts/image/push.sh.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 4.7 committed 2026-05-28 22:33:15 +02:00
1 parent ec5b775f11
commit c680be12ea
1 file changed
+2
+2
View File
@@ -230,9 +230,11 @@ echo "------------------------------------------------------------"
# Common build args
: "${INFINITO_SRC_DIR:?INFINITO_SRC_DIR must be set; source scripts/meta/env/load.sh}"
: "${INFINITO_VENV_DIR:?INFINITO_VENV_DIR must be set; source scripts/meta/env/load.sh}"
build_args=(
--build-arg "INFINITO_PARENT_IMAGE=${INFINITO_PARENT_IMAGE}"
--build-arg "INFINITO_SRC_DIR=${INFINITO_SRC_DIR}"
--build-arg "INFINITO_VENV_DIR=${INFINITO_VENV_DIR}"
--build-arg "NIX_CONFIG=${NIX_CONFIG:-}"
)