From e9204d759d1d99cd553ebb95cf63dbd54bd73eac Mon Sep 17 00:00:00 2001 From: = <44577551+jm-avila@users.noreply.github.com> Date: Tue, 27 Jan 2026 13:29:53 +0100 Subject: [PATCH] Update Dockerfile to relax version constraints for all extension package.json files This change broadens the version relaxation patch to include all package.json files in the extensions directory, accommodating the workspace protocol. The previous implementation was limited to specific files. --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 184cfeaeb..876b9180d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,15 +25,11 @@ ARG CLAWDBOT_GIT_REF=main RUN git clone --depth 1 --branch "${CLAWDBOT_GIT_REF}" https://github.com/clawdbot/clawdbot.git . # Patch: relax version requirements for packages that may reference unpublished versions. -# Scope this narrowly to avoid surprising dependency mutations. +# Apply to all extension package.json files to handle workspace protocol (workspace:*). RUN set -eux; \ - for f in \ - ./extensions/memory-core/package.json \ - ./extensions/googlechat/package.json \ - ; do \ - if [ -f "$f" ]; then \ - sed -i -E 's/"clawdbot"[[:space:]]*:[[:space:]]*">=[^"]+"/"clawdbot": "*"/g' "$f"; \ - fi; \ + find ./extensions -name 'package.json' -type f | while read -r f; do \ + sed -i -E 's/"clawdbot"[[:space:]]*:[[:space:]]*">=[^"]+"/"clawdbot": "*"/g' "$f"; \ + sed -i -E 's/"clawdbot"[[:space:]]*:[[:space:]]*"workspace:[^"]+"/"clawdbot": "*"/g' "$f"; \ done RUN pnpm install --no-frozen-lockfile