Skip to content

Add StdioTransport support for Linux with musl #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Conversation

mattt
Copy link
Contributor

@mattt mattt commented Apr 10, 2025

Follow up to #61

The Swift Static Linux SDK allows Swift code to be built as a fully statically linked executables. Notably, this allows a package to be usable in executables built for Alpine Linux, which uses musl instead of glibc.

The actual implementation (f3f4cfd) is, theoretically, straightforward — just another conditional compilation #canImport. The tricky part has been testing this in CI. Because Swift isn't currently supported on Alpine Linux, we need to build an executable with the Swift Static Linux SDK in a separate job. However, this approach fails because of an apparent lack of support for Swift Testing:

error: no such module 'Testing'

As a workaround, we can create an example binary executable and run that as a substitute for our test suite. But that's more than I want to bite off right now, so I'll convert this to draft for now.

@mattt mattt force-pushed the mattt/musl-linux branch from 148b001 to 08d6c28 Compare April 10, 2025 12:48
@mattt mattt force-pushed the mattt/musl-linux branch from 9d10730 to 1a876ca Compare April 10, 2025 13:20
@mattt mattt marked this pull request as draft April 10, 2025 13:33
@mattt mattt changed the title Add support for Linux with Musl Add StdioTransport support for Linux with musl Apr 10, 2025
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