Closed hactar closed 6 years ago
Looks like this PR broke it - the tests were failing when the PR was merged.
Can we not merge PRs that fail CI? It kinda defeats the point of having CI if you ignore the results and breaks it for people like above
I don't think that PR actually broke it, if you take a look at the PR its just a readme update. What I think happened is that the CI invisibly updated to swift 4.2 between builds, and now it's failing. I've taken a deeper look and I've noticed that and from what I see is that swift build
on swift linux 4.2 works, but swift build -c release
fails, so this may be a swift linux issue... I'm not a SIL expert I'm afraid.
Didn't link the PR! It was this one - https://github.com/scinfu/SwiftSoup/pull/97/
That set the swift tools version to 4.2. The Dockerfile is pulling in swift:latest
so when 4.2 was released it used that.
Having said that, there has been an issue raised with Vapor as well for old Vapor 2 code failing to compile on Linux in release mode. People are looking at it
Ah, cool, yeah.
I think I've found a workaround (removing the "saves a void hit." optimization) - doing a few more tests. I'm not sure why it solves the problem as the code looks good, but it might be a workaround until the issue can be properly resolved.
When trying to build a project that includes SwiftSoup on Swift-Linux 4.2, the compilation fails:
This appears to be happening on SwiftSoups own TravisCI too:
https://travis-ci.org/scinfu/SwiftSoup/jobs/438795328