Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(tasks): pin pnpm in the sandbox base image (#99451)

Alessandro Pogliaghi468e40efa486
diff --git a/products/tasks/backend/sandbox/images/Dockerfile.sandbox-base b/products/tasks/backend/sandbox/images/Dockerfile.sandbox-base
index 660eb10c8a5b..137de7de3913 100644
--- a/products/tasks/backend/sandbox/images/Dockerfile.sandbox-base
+++ b/products/tasks/backend/sandbox/images/Dockerfile.sandbox-base
@@ -84,7 +84,8 @@ RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
rm -rf /var/lib/apt/lists/*
# Install additional language package managers
-RUN npm install -g yarn pnpm typescript ts-node nodemon
+ARG PNPM_VERSION=10.34.5
+RUN npm install -g yarn "pnpm@${PNPM_VERSION}" typescript ts-node nodemon
# Install ruff and ty
# uv comes from its pinned, registry-verified official image (same pattern as the
diff --git a/products/tasks/backend/sandbox/images/bake-posthog-dev-stack.sh b/products/tasks/backend/sandbox/images/bake-posthog-dev-stack.sh
index bb70e26c2b29..fc3342869e39 100644
--- a/products/tasks/backend/sandbox/images/bake-posthog-dev-stack.sh
+++ b/products/tasks/backend/sandbox/images/bake-posthog-dev-stack.sh
@@ -201,7 +201,7 @@ log "warming pnpm store"
# store (under ~/.local/share/pnpm), which lives outside the checkout and survives the
# cleanup below — the task-time `pnpm install` becomes mostly a linking pass. Bake and
# task time run the same image's pnpm, so the store layout always matches.
-pnpm fetch --frozen-lockfile
+pnpm fetch
# Link a full node_modules once: it backfills anything fetch skipped (git/tarball
# resolutions) and provides the workspace-pinned playwright CLI for the browser
# install below. --ignore-scripts keeps third-party postinstall hooks from failing