diff --git a/ct/paperclip.sh b/ct/paperclip.sh index 47bec8d18..ff3e4ad60 100644 --- a/ct/paperclip.sh +++ b/ct/paperclip.sh @@ -50,7 +50,10 @@ function update_script() { cd /opt/paperclip-ai export HUSKY=0 export NODE_OPTIONS="--max-old-space-size=8192" - $STD pnpm install --frozen-lockfile + $STD pnpm install --frozen-lockfile || { + msg_warn "The lockfile of this release is out of date, resolving dependencies without it" + $STD pnpm install --no-frozen-lockfile + } $STD pnpm build unset NODE_OPTIONS msg_ok "Rebuilt Paperclip" diff --git a/install/paperclip-install.sh b/install/paperclip-install.sh index e763eeedd..351fa46c0 100644 --- a/install/paperclip-install.sh +++ b/install/paperclip-install.sh @@ -31,7 +31,11 @@ msg_info "Building Paperclip" cd /opt/paperclip-ai export HUSKY=0 export NODE_OPTIONS="--max-old-space-size=8192" -$STD pnpm install --frozen-lockfile +# Upstream tags ship with a stale pnpm-lock.yaml now and then (paperclipai/paperclip#13923). +$STD pnpm install --frozen-lockfile || { + msg_warn "The lockfile of this release is out of date, resolving dependencies without it" + $STD pnpm install --no-frozen-lockfile +} $STD pnpm build unset NODE_OPTIONS msg_ok "Built Paperclip"