From c55e9ce84019e2a0c9f863f259f01fa28fbcb1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=81=D0=B5=D0=BB=D1=8C?= Date: Sat, 14 Nov 2026 00:45:42 +0500 Subject: [PATCH] CI: install pnpm and openspec into a job-local prefix (concurrent jobs collided in the toolcache) Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a523b9f9..ac6ffd4f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -35,7 +35,10 @@ jobs: - name: tools run: | apt-get update -qq && apt-get install -y -qq tmux >/dev/null - npm install -g pnpm@12.18.0 @fission-ai/openspec@2.0.0 >/dev/null + # Job-local prefix: the node toolcache is shared between jobs running at the same time + # (PR + push of one commit), and two global installs into it collide (ENOTEMPTY/EEXIST). + npm install -g --prefix "$RUNNER_TEMP/tools" pnpm@12.18.0 @fission-ai/openspec@2.0.0 >/dev/null + echo "$RUNNER_TEMP/tools/bin" >> "$GITHUB_PATH" - id: install name: install run: bash .gitea/peppa-check.sh install