Skip to content

fix: remove redundant platform check from musl detection - #64

Merged
spiral-ladder merged 1 commit into
mainfrom
gr/musl-test-failed
Jul 27, 2026
Merged

fix: remove redundant platform check from musl detection#64
spiral-ladder merged 1 commit into
mainfrom
gr/musl-test-failed

Conversation

@GrapeBaBa

@GrapeBaBa GrapeBaBa commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Motivation

getTarget(platform, arch) used the requested platform for target selection, but musl detection also checked the test process's process.platform. On non-Linux hosts this returned early, so the ARM64 musl target test selected the GNU target without consulting its mocked /usr/bin/ldd.

Description

Remove the redundant host-platform check from isMusl(). The helper is only called from the Linux branch of getTarget(), so this keeps the napi-rs detection flow while ensuring the platform passed to target resolution controls whether musl detection runs.

@GrapeBaBa
GrapeBaBa force-pushed the gr/musl-test-failed branch from 6326d05 to 701d2a8 Compare July 27, 2026 05:21
@GrapeBaBa GrapeBaBa changed the title fix: use target platform for musl detection fix: remove redundant platform check from musl detection Jul 27, 2026
@spiral-ladder
spiral-ladder merged commit 0d4829c into main Jul 27, 2026
9 of 10 checks passed
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.

3 participants