Skip to content

feat: add Linux musl managed install targets#179

Merged
patchloom-release[bot] merged 1 commit into
mainfrom
feat/musl-managed-install
Jun 30, 2026
Merged

feat: add Linux musl managed install targets#179
patchloom-release[bot] merged 1 commit into
mainfrom
feat/musl-managed-install

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Summary

Add musl-libc support to the managed installer, covering the two new Linux musl targets added in Patchloom v0.7.0. This completes platform parity between the CLI release assets and the VS Code extension.

Changes

Auto-detection

detectManagedInstallTarget() now accepts an optional isMusl parameter. When not provided on Linux, it auto-detects musl by checking for /lib/ld-musl-<arch>.so.1 (the musl dynamic linker). Falls back to glibc (gnu) targets when musl is not detected.

New targets

Target Use case
aarch64-unknown-linux-musl Alpine ARM64 dev containers, Raspberry Pi with musl
x86_64-unknown-linux-musl Alpine x86_64 dev containers, musl-based CI runners

Platform parity

All 8 Patchloom release targets are now supported:

Target Status
aarch64-apple-darwin existing
x86_64-apple-darwin existing
aarch64-unknown-linux-gnu existing
x86_64-unknown-linux-gnu existing
aarch64-unknown-linux-musl new
x86_64-unknown-linux-musl new
x86_64-pc-windows-msvc existing
aarch64-pc-windows-msvc added in #177

Testing

5 new tests covering musl target selection, glibc fallback, non-Linux platform behavior, and unsupported architectures. 266/266 tests pass.

Add aarch64-unknown-linux-musl and x86_64-unknown-linux-musl target
triples for managed install. Auto-detects musl by checking for the
/lib/ld-musl-<arch>.so.1 dynamic linker. Falls back to glibc (gnu)
targets when musl is not detected.

This enables managed install on Alpine-based dev containers and
Remote SSH sessions to musl-based Linux hosts.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@SebTardif SebTardif marked this pull request as ready for review June 30, 2026 19:25
@patchloom-release patchloom-release Bot enabled auto-merge (squash) June 30, 2026 19:25
@patchloom-release patchloom-release Bot merged commit 4d46a70 into main Jun 30, 2026
21 checks passed
@patchloom-release patchloom-release Bot deleted the feat/musl-managed-install branch June 30, 2026 19:29
patchloom-release Bot pushed a commit that referenced this pull request Jun 30, 2026
docs: refresh AGENTS.md test counts for binary.test.ts and patchloomCli.test.ts

binary.test.ts: 54 -> 59 (5 musl detection tests added in PR #179)
patchloomCli.test.ts: 36 -> 34 (2 tests removed in prior session)

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant