mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-22 05:21:01 +02:00
Paperclip: fall back to a non-frozen install when the release lockfile is stale (#17922)
v2026.1012.0 ships a pnpm-lock.yaml that does not match server/package.json, so pnpm install --frozen-lockfile fails on every install (#17913).
This commit is contained in:
committed by
GitHub
parent
7ff45b7555
commit
2aaf103e32
+4
-1
@@ -50,7 +50,10 @@ function update_script() {
|
|||||||
cd /opt/paperclip-ai
|
cd /opt/paperclip-ai
|
||||||
export HUSKY=0
|
export HUSKY=0
|
||||||
export NODE_OPTIONS="--max-old-space-size=8192"
|
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
|
$STD pnpm build
|
||||||
unset NODE_OPTIONS
|
unset NODE_OPTIONS
|
||||||
msg_ok "Rebuilt Paperclip"
|
msg_ok "Rebuilt Paperclip"
|
||||||
|
|||||||
@@ -31,7 +31,11 @@ msg_info "Building Paperclip"
|
|||||||
cd /opt/paperclip-ai
|
cd /opt/paperclip-ai
|
||||||
export HUSKY=0
|
export HUSKY=0
|
||||||
export NODE_OPTIONS="--max-old-space-size=8192"
|
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
|
$STD pnpm build
|
||||||
unset NODE_OPTIONS
|
unset NODE_OPTIONS
|
||||||
msg_ok "Built Paperclip"
|
msg_ok "Built Paperclip"
|
||||||
|
|||||||
Reference in New Issue
Block a user