Skip to content

Fix musl detection using RID instead of distro name#1347

Merged
martindevans merged 1 commit intoSciSharp:masterfrom
m0nsky:fix/musl-rid-detection
Mar 4, 2026
Merged

Fix musl detection using RID instead of distro name#1347
martindevans merged 1 commit intoSciSharp:masterfrom
m0nsky:fix/musl-rid-detection

Conversation

@m0nsky
Copy link
Contributor

@m0nsky m0nsky commented Mar 4, 2026

Changes alpine to musl in the NativeLibraryUtils.

The runtime identifier on musl based distros (for example, alpine) is linux-musl-x64, not alpine-*, so the previous StartsWith("alpine") check failed, causing the loader to switch to linux-x64. Musl tests are passing after this change (tested on my fork).

@martindevans
Copy link
Member

Thanks!

@martindevans martindevans merged commit 21cc8c3 into SciSharp:master Mar 4, 2026
5 of 6 checks passed
@m0nsky m0nsky deleted the fix/musl-rid-detection branch March 4, 2026 19:23
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.

2 participants