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.
This commit is contained in:
jochen
2026-10-06 22:06:16 +02:00
parent 14bff5dfd7
commit b86a6ca228
+6
View File
@@ -64,6 +64,12 @@ RUN npm prune --omit=dev
FROM compiling AS toolchain FROM compiling AS toolchain
COPY --from=lean /app/node_modules /app/runtime/node_modules COPY --from=lean /app/node_modules /app/runtime/node_modules
RUN printf '{"type":"module","private":true}\n' > /app/runtime/package.json 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 ------------------------------------------ # ---- runtime: what a module's own service may run in ------------------------------------------
FROM ${NODE_BASE} AS runtime FROM ${NODE_BASE} AS runtime