惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
V
V2EX
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
The Cloudflare Blog
T
Tailwind CSS Blog
H
Help Net Security
腾讯CDC
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
D
DataBreaches.Net
C
Check Point Blog
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(install): use repo pnpm for git installs · openclaw/o...
vincentkoc · 2026-06-21 · via Recent Commits to openclaw:main

@@ -158,6 +158,63 @@ describe("install-cli.sh", () => {

158158

expect(script).toContain('activate_repo_pnpm_version "$repo_dir"');

159159

});

160160161+

it("uses the repo Corepack pnpm when a global pnpm version is already present", () => {

162+

const tmp = mkdtempSync(join(tmpdir(), "openclaw-install-cli-pnpm-version-"));

163+

const bin = join(tmp, "bin");

164+

const outer = join(tmp, "outer");

165+

const repo = join(tmp, "repo");

166+

mkdirSync(bin, { recursive: true });

167+

mkdirSync(outer, { recursive: true });

168+

mkdirSync(repo, { recursive: true });

169+

writeFileSync(

170+

join(outer, "package.json"),

171+

'{\n "packageManager": "yarn@4.5.0"\n}\n',

172+

);

173+

writeFileSync(

174+

join(repo, "package.json"),

175+

'{\n "packageManager": "pnpm@11.2.2+sha512.test"\n}\n',

176+

);

177+

writeFileSync(

178+

join(bin, "pnpm"),

179+

["#!/bin/bash", '[[ "${1:-}" == "--version" ]] && echo "11.8.0"', ""].join("\n"),

180+

);

181+

writeFileSync(

182+

join(bin, "corepack"),

183+

[

184+

"#!/bin/bash",

185+

'if [[ "${1:-}" == "prepare" ]]; then exit 0; fi',

186+

'if [[ "${1:-}" == "pnpm" && "${2:-}" == "--version" ]]; then',

187+

' if grep -q "pnpm@11.2.2" package.json 2>/dev/null; then echo "11.2.2"; else exit 1; fi',

188+

" exit 0",

189+

"fi",

190+

"exit 1",

191+

"",

192+

].join("\n"),

193+

);

194+

chmodSync(join(bin, "pnpm"), 0o755);

195+

chmodSync(join(bin, "corepack"), 0o755);

196+197+

try {

198+

const result = runInstallCliShell(

199+

[

200+

`cd ${JSON.stringify(process.cwd())}`,

201+

`source ${JSON.stringify(SCRIPT_PATH)}`,

202+

`cd ${JSON.stringify(outer)}`,

203+

`activate_repo_pnpm_version ${JSON.stringify(repo)}`,

204+

'printf "cmd=%s\\n" "${PNPM_CMD[*]}"',

205+

`printf "run=%s\\n" "$(run_pnpm -C ${JSON.stringify(repo)} --version)"`,

206+

].join("\n"),

207+

{ PATH: `${bin}:${process.env.PATH ?? ""}` },

208+

);

209+210+

expect(result.status).toBe(0);

211+

expect(result.stdout).toContain(`cmd=${join(bin, "corepack")} pnpm`);

212+

expect(result.stdout).toContain("run=11.2.2");

213+

} finally {

214+

rmSync(tmp, { force: true, recursive: true });

215+

}

216+

});

217+161218

it("links an existing usable Alpine/musl Node runtime without sudo", () => {

162219

const tmp = mkdtempSync(join(tmpdir(), "openclaw-install-cli-alpine-"));

163220

const bin = join(tmp, "bin");