From 703c6db22cd396f765a2075322dd4cbf7f673d4a Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 3 Jun 2026 13:34:26 -0700 Subject: [PATCH] fix(hexclave): rename STACK_SKIP_TEMPLATE_GENERATION env in Dockerfiles The preinstall hook now checks HEXCLAVE_SKIP_TEMPLATE_GENERATION, but the Docker builders still set the old STACK_ name, so the skip guard never matched and pnpm install tried to run ./scripts/generate-sdks.ts (not copied into the build layer), failing with ERR_MODULE_NOT_FOUND. --- docker/backend/Dockerfile | 2 +- docker/local-emulator/Dockerfile | 2 +- docker/server/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/backend/Dockerfile b/docker/backend/Dockerfile index 850658277..f5b6a1024 100644 --- a/docker/backend/Dockerfile +++ b/docker/backend/Dockerfile @@ -39,7 +39,7 @@ RUN turbo prune --scope=@hexclave/backend --docker FROM base AS builder # Skip generate-sdks.ts in preinstall hook (file not available in pruned output) -ENV STACK_SKIP_TEMPLATE_GENERATION=true +ENV HEXCLAVE_SKIP_TEMPLATE_GENERATION=true COPY --from=pruner /app/out/json/ . COPY --from=pruner /app/out/pnpm-lock.yaml . diff --git a/docker/local-emulator/Dockerfile b/docker/local-emulator/Dockerfile index 145a02df4..ddcb93fa1 100644 --- a/docker/local-emulator/Dockerfile +++ b/docker/local-emulator/Dockerfile @@ -36,7 +36,7 @@ RUN turbo prune --scope=@hexclave/backend --scope=@hexclave/dashboard --docker FROM node-base AS builder # Skip generate-sdks.ts in preinstall hook (file not available in pruned output) -ENV STACK_SKIP_TEMPLATE_GENERATION=true +ENV HEXCLAVE_SKIP_TEMPLATE_GENERATION=true # copy over package.json files and install dependencies COPY --from=pruner /app/out/json/ . diff --git a/docker/server/Dockerfile b/docker/server/Dockerfile index b16b91271..afab625f4 100644 --- a/docker/server/Dockerfile +++ b/docker/server/Dockerfile @@ -34,7 +34,7 @@ RUN turbo prune --scope=@hexclave/backend --scope=@hexclave/dashboard --docker FROM base AS builder # Skip generate-sdks.ts in preinstall hook (file not available in pruned output) -ENV STACK_SKIP_TEMPLATE_GENERATION=true +ENV HEXCLAVE_SKIP_TEMPLATE_GENERATION=true # copy over package.json files and install dependencies COPY --from=pruner /app/out/json/ .