-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fixing Swift 6 Compatibility on Linux Issues #107
Conversation
Can we embed the |
Sources/OpenAPIRuntime/Multipart/MultipartFramesToRawPartsSequence.swift
Show resolved
Hide resolved
@czechboy0 I'm not sure in the case
Let me if I'm missing something or looking at the wrong thing. |
Let me ask around about this. They are both Sendable on Darwin platforms, so if they're truly not on Linux, that'd require our code to account for the difference. But let's exhaust this path first. |
corelibs-foundation's It appears that swift-foundation has yet to implement So we likely have to move on with some workarounds in OpenAPIRuntime for now, at least for |
Done. |
I chatted with the Foundation folks and let's wait a week or two, their WIP PRs should land and have this fixed (Sendability of these two types). Please separate the async sequence changes into a separate PR, we can land those. |
Done #108 Any thoughts on how to move forward in the meantime regarding building my app in Swift 6? |
Yes, split out the generated code into a separate module/target, and use Swift 5 language mode on it. You can keep using Swift 6 in the rest of your codebase. |
Our current plan is to not move to Swift 6 language mode yet, as we support 3 latest released Swift compilers (5.9, 5.10, 6.0). If there are any warnings/errors produced when building with the Swift 6 compiler in Swift 5 language mode, with strict concurrency flags enabled, please open a new PR fixing just those. Apologies we didn't make this clear earlier, it took us a bit of time to figure out what our approach for libraries that need to support pre-6.0 compilers would be. |
Motivation
Fixing Issues with Building in Swift 6 for Linux
Modifications
Result
Compatability with Swift 6 on Linux
Test Plan
TBD