fix(crabbox): bound macos bun bootstrap fetches · openclaw/openclaw@2454acc
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1850,7 +1850,7 @@ function remoteAwsMacosJsBootstrap({ packageManager = false, bun = false } = {})
|
1850 | 1850 | 'if [ ! -x "$bun_root/bin/bun" ] || [ ! -f "$bun_ready_marker" ]; then', |
1851 | 1851 | 'rm -rf "$bun_root" || { status=$?; release_bun_install_lock; return "$status"; };', |
1852 | 1852 | 'mkdir -p "$bun_root" || { status=$?; release_bun_install_lock; return "$status"; };', |
1853 | | -'npm install --global --prefix "$bun_root" "bun@${bun_version}" || { status=$?; release_bun_install_lock; return "$status"; };', |
| 1853 | +'npm install --global --prefix "$bun_root" --fetch-timeout=120000 --fetch-retries=2 --fetch-retry-mintimeout=2000 --fetch-retry-maxtimeout=15000 "bun@${bun_version}" || { status=$?; release_bun_install_lock; return "$status"; };', |
1854 | 1854 | 'touch "$bun_ready_marker" || { status=$?; release_bun_install_lock; return "$status"; };', |
1855 | 1855 | "fi;", |
1856 | 1856 | "release_bun_install_lock;", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1006,7 +1006,7 @@ describe.concurrent("scripts/crabbox-wrapper", () => {
|
1006 | 1006 | expect(remoteCommand).toContain("bun_version=1.3.14"); |
1007 | 1007 | expect(remoteCommand).toContain('bun_root="$tool_root/bun-v${bun_version}"'); |
1008 | 1008 | expect(remoteCommand).toContain( |
1009 | | -'npm install --global --prefix "$bun_root" "bun@${bun_version}"', |
| 1009 | +'npm install --global --prefix "$bun_root" --fetch-timeout=120000 --fetch-retries=2 --fetch-retry-mintimeout=2000 --fetch-retry-maxtimeout=15000 "bun@${bun_version}"', |
1010 | 1010 | ); |
1011 | 1011 | expect(remoteCommand).toContain("bun --version >&2 || return 1"); |
1012 | 1012 | expect(remoteCommand).not.toContain("corepack enable"); |
@@ -1474,7 +1474,7 @@ describe.concurrent("scripts/crabbox-wrapper", () => {
|
1474 | 1474 | expect(result.status).toBe(0); |
1475 | 1475 | expect(output.scriptContent).toContain("bun_version=1.3.14"); |
1476 | 1476 | expect(output.scriptContent).toContain( |
1477 | | -'npm install --global --prefix "$bun_root" "bun@${bun_version}"', |
| 1477 | +'npm install --global --prefix "$bun_root" --fetch-timeout=120000 --fetch-retries=2 --fetch-retry-mintimeout=2000 --fetch-retry-maxtimeout=15000 "bun@${bun_version}"', |
1478 | 1478 | ); |
1479 | 1479 | expect(output.scriptContent).toContain("bun --version >&2 || return 1"); |
1480 | 1480 | expect(output.scriptContent).not.toContain("corepack enable"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。