Skip to content
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

Swift 5.5 and Linux Unit tests #10

Open
mikolasstuchlik opened this issue Oct 25, 2021 · 0 comments
Open

Swift 5.5 and Linux Unit tests #10

mikolasstuchlik opened this issue Oct 25, 2021 · 0 comments

Comments

@mikolasstuchlik
Copy link

Recently, it has come to my attention, that swift test no longer needs, nor allows the LinuxMain.swift file in the Tests/ directory.

futuredapp/FTAPIKit@3feab35

Using #if swift(>=5.5) && !os(Linux) statement in the LinuxMain.swift won't work, the compilation (or linking) will fail as long as the LinuxMain.swift file is present.

I suppose this is a bug in the SPM itself, since the SPM should ignore all files that are outside of the target structure.

This bug is relevant on Swift 5.5. Since the minimal compiler version of this package is Swift 5.4, I suggest taking no action at this time, since deleting the LinuxMain.swift file will break the tests on Swift 5.4.

@mikolasstuchlik mikolasstuchlik changed the title Swift 5.5 Linux Unit tests Swift 5.5 and Linux Unit tests Oct 25, 2021
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

No branches or pull requests

1 participant