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
Linux support missing from cross-platform? #17
Comments
@idcrook Thanks for the very detailed issue! Super awesome 🚀 I'd love for SwiftPlate to support Linux as well! 👍 One thing is that not all libraries can support Linux (for example, if you're building a framework that depends on |
I think that makes a lot of sense. 👍 I hadn't tried all the SwiftPM init types (current 3.0.1 bundled |
Alright, so let's go with that! 👍 Let me know if you want to do the implementation as well 😉 |
I'll look into it in a day or two if I can. |
@idcrook Awesome, no preasure - just post here if you start working on it - otherwise I (or someone else) might pick it up - would be a great feature to have 😄 |
I created PR #20 that add the Linux library testing support. However, there a a few caveats outlined in the PR. |
Closing, with PR #20 |
Noticed that Swift libraries that are to be run on Linux have one slight variation in the testing that is missing from SwiftPlate.
Swift Package Manager (
swift package init --type library
) does additionally the following:In
Tests/{PROJECT}Tests/{PROJECT}Tests.swift
it adds:the example assert is related to boilerplate code in the Sources/ implementation, but the allTests is more interesting, as that is the convention for the slightly different testing flow for Swift encountered under Linux.
For Linux it adds another, related file
Tests/LinuxMain.swift
. Its contents:Could the "cross-platformness" of SwiftPlate be updated to include libraries on Linux?
The text was updated successfully, but these errors were encountered: