From b86a6ca228b2dc6bb337bccfec384e4d7afa0668 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 6 Oct 2026 22:06:16 +0200 Subject: [PATCH] Give the TypeScript toolchain git, for the merge checks that run in it (hq ADR 0237) A repository's own merge-check.sh may declare this toolchain, and a suite that reads a repository's history failed with spawnSync git ENOENT. Nothing compiled here calls it. --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0b317d2..636a8cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,6 +64,12 @@ RUN npm prune --omit=dev FROM compiling AS toolchain COPY --from=lean /app/node_modules /app/runtime/node_modules RUN printf '{"type":"module","private":true}\n' > /app/runtime/package.json +# **git, because a pull request's merge check runs in this image too** (novox/hq ADR 0237): a repository's +# own merge-check.sh that declares this toolchain runs here, and a suite that reads a repository's history +# (the lab's last-run record) ran into "spawnSync git ENOENT". Nothing compiled here calls it. +RUN apt-get update \ + && apt-get install -y --no-install-recommends git \ + && rm -rf /var/lib/apt/lists/* # ---- runtime: what a module's own service may run in ------------------------------------------ FROM ${NODE_BASE} AS runtime