fix(ci): keep Crabbox pnpm hydration shims writable · openclaw/openclaw@bca1ac0
vincentkoc
·
2026-05-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -72,7 +72,7 @@ jobs:
|
72 | 72 | echo "PNPM_HOME=$PNPM_HOME" |
73 | 73 | } >> "$GITHUB_ENV" |
74 | 74 | |
75 | | - corepack enable |
| 75 | + corepack enable --install-directory "$PNPM_HOME" |
76 | 76 | node_bin="$(dirname "$(node -p 'process.execPath')")" |
77 | 77 | echo "NODE_BIN=$node_bin" >> "$GITHUB_ENV" |
78 | 78 | echo "$node_bin" >> "$GITHUB_PATH" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,6 +8,7 @@ Docs: https://docs.openclaw.ai
|
8 | 8 | |
9 | 9 | ### Fixes |
10 | 10 | - iMessage: mark authorized slash-command turns as text-sourced commands so `/status`, `/new`, and `/restart` acknowledgements return to the source conversation. (#82642) thanks @homer-byte. |
| 11 | +- Crabbox: install Corepack shims into the writable hydration `PNPM_HOME` so local AWS runner hydration no longer tries to overwrite `/usr/local/bin/pnpm`. |
11 | 12 | |
12 | 13 | |
13 | 14 | ## 2026.5.24 |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -118,7 +118,9 @@ describe("package acceptance workflow", () => {
|
118 | 118 | expect(hydrate.if).toBe("${{ inputs.crabbox_job != 'hydrate-github' }}"); |
119 | 119 | expect(workflowStep(hydrate, "Setup Node.js").uses).toBe("actions/setup-node@v6"); |
120 | 120 | expect(workflowStep(hydrate, "Setup Node.js").with?.["node-version"]).toBe("24"); |
121 | | -expect(workflowStep(hydrate, "Setup pnpm and dependencies").run).toContain("corepack enable"); |
| 121 | +expect(workflowStep(hydrate, "Setup pnpm and dependencies").run).toContain( |
| 122 | +'corepack enable --install-directory "$PNPM_HOME"', |
| 123 | +); |
122 | 124 | expect(workflowStep(hydrate, "Setup pnpm and dependencies").run).toContain("COREPACK_HOME"); |
123 | 125 | expect(workflowStep(hydrate, "Mark Crabbox ready").run).toContain("COREPACK_HOME"); |
124 | 126 | expect(workflowStep(hydrate, "Hydrate provider env helper").env).toBeUndefined(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。