fix(installer): detect musl linux shells · openclaw/openclaw@acfed37
vincentkoc
·
2026-05-25
·
via Recent Commits to openclaw:main
| 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 | |
| 11 | +- Installer: detect musl Linux shells such as Alpine as Linux instead of rejecting them before npm install. |
11 | 12 | - Control UI: split large build-time runtime dependencies into stable chunks so Linux/Docker install and package builds stay below the app chunk warning threshold. |
12 | 13 | - Scripts: run the optional Discord native opus installer through the shared pnpm launcher and Windows CI coverage so native Windows installs avoid shell-mode package-manager shims. |
13 | 14 | - Agents/MCP: bound bundled MCP `tools/list` catalog discovery so hung MCP servers do not block session tool materialization. (#85063) Thanks @nxmxbbd. |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -284,7 +284,7 @@ detect_os_or_die() {
|
284 | 284 | OS="unknown" |
285 | 285 | if [[ "$OSTYPE" == "darwin"* ]]; then |
286 | 286 | OS="macos" |
287 | | -elif [[ "$OSTYPE" == "linux-gnu"* ]] || [[ -n "${WSL_DISTRO_NAME:-}" ]]; then |
| 287 | +elif [[ "$OSTYPE" == "linux"* ]] || [[ -n "${WSL_DISTRO_NAME:-}" ]]; then |
288 | 288 | OS="linux" |
289 | 289 | fi |
290 | 290 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -34,6 +34,11 @@ describe("install.sh", () => {
|
34 | 34 | expect(rawAptInstalls).toStrictEqual([]); |
35 | 35 | }); |
36 | 36 | |
| 37 | +it("accepts GNU and musl Linux shells in OS detection", () => { |
| 38 | +expect(script).toContain('[[ "$OSTYPE" == "linux"* ]]'); |
| 39 | +expect(script).not.toContain('[[ "$OSTYPE" == "linux-gnu"* ]]'); |
| 40 | +}); |
| 41 | + |
37 | 42 | it("clears npm freshness filters for package installs", () => { |
38 | 43 | expect(script).toContain("env -u NPM_CONFIG_BEFORE -u npm_config_before"); |
39 | 44 | expect(script).toContain('freshness_flag="--min-release-age=0"'); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。