fix(parallels): bound windows smoke downloads · openclaw/openclaw@98a7741
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -125,7 +125,7 @@ if (Test-Path $portableGit) {
|
125 | 125 | Remove-Item $portableGit -Recurse -Force |
126 | 126 | } |
127 | 127 | New-Item -ItemType Directory -Force -Path $portableGit | Out-Null |
128 | | -curl.exe -fsSL ${psSingleQuote(minGitUrl)} -o $archive |
| 128 | +curl.exe -fsSL --connect-timeout 10 --max-time 120 --retry 2 --retry-delay 2 ${psSingleQuote(minGitUrl)} -o $archive |
129 | 129 | tar.exe -xf $archive -C $portableGit |
130 | 130 | Remove-Item $archive -Force -ErrorAction SilentlyContinue |
131 | 131 | $env:PATH = "$portableGit\\cmd;$portableGit\\mingw64\\bin;$portableGit\\usr\\bin;$env:PATH" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -542,7 +542,7 @@ ${cleanScript}`,
|
542 | 542 | const versionArg = this.installVersion ? ` -Tag ${psSingleQuote(this.installVersion)}` : ""; |
543 | 543 | this.guestPowerShell( |
544 | 544 | `$ErrorActionPreference = 'Stop' |
545 | | -$script = Invoke-RestMethod -Uri ${psSingleQuote(this.options.installUrl)} |
| 545 | +$script = Invoke-RestMethod -Uri ${psSingleQuote(this.options.installUrl)} -TimeoutSec 120 |
546 | 546 | & ([scriptblock]::Create($script))${versionArg} -NoOnboard |
547 | 547 | if ($LASTEXITCODE -ne 0) { throw "installer failed with exit code $LASTEXITCODE" } |
548 | 548 | Invoke-OpenClaw --version |
@@ -559,7 +559,7 @@ if ($LASTEXITCODE -ne 0) { throw "openclaw --version failed with exit code $LAST
|
559 | 559 | this.guestPowerShell( |
560 | 560 | `$ErrorActionPreference = 'Stop' |
561 | 561 | $tgz = Join-Path $env:TEMP ${psSingleQuote(tempName)} |
562 | | -curl.exe -fsSL ${psSingleQuote(tgzUrl)} -o $tgz |
| 562 | +curl.exe -fsSL --connect-timeout 10 --max-time 120 --retry 2 --retry-delay 2 ${psSingleQuote(tgzUrl)} -o $tgz |
563 | 563 | npm.cmd install -g $tgz --no-fund --no-audit --loglevel=error |
564 | 564 | if ($LASTEXITCODE -ne 0) { throw "npm install failed with exit code $LASTEXITCODE" } |
565 | 565 | Invoke-OpenClaw --version |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1275,6 +1275,10 @@ if (isPrlctl) {
|
1275 | 1275 | expect(windowsGit.indexOf('"MinGit-2.53.0.2-64-bit.zip"')).toBeLessThan( |
1276 | 1276 | windowsGit.indexOf('"MinGit-2.53.0.2-arm64.zip"'), |
1277 | 1277 | ); |
| 1278 | +expect(combined.match(/curl\.exe -fsSL --connect-timeout 10 --max-time 120 --retry 2/g)) |
| 1279 | +.toHaveLength(2); |
| 1280 | +expect(script).toContain("Invoke-RestMethod -Uri"); |
| 1281 | +expect(script).toContain("-TimeoutSec 120"); |
1278 | 1282 | expect(windowsGit).toContain('if "-64-bit." in name:'); |
1279 | 1283 | expect(windowsGit).toContain('elif "-arm64." in name:'); |
1280 | 1284 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。