-
Notifications
You must be signed in to change notification settings - Fork 141
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
Race condition in Build? #421
Comments
This does not seem likely to be a timing issue per-se: I don't see how a timing window is likely to lead to that header being present or not present. However, in either case this seems likely to be a swift-package-manager issue more than a swift-nio-ssl issue, can you file an appropriate issue on that repository and link it here? |
Sounds like it might be a missing dependency arc somewhere; in parallel builds, those turn into race conditions and issues where things build when clean, or build on the second attempt and so on. |
You think the dependency arc is missing in Clang's headers? |
Not certain where the problem is, but it's usually the reason for "flaky" builds. It'd be nice if there were a more explanatory error — this is very much a "something didn't work" :-( |
@Lukasa We're having the same issues with flaky builds here, but for a different reason It's not currently possible to do it only with SPM, but would love to have swift-nio and all it's dependencies packed into a static library, I wasn't able to do it only with Swift Modules because of some non-swift code like |
@al45tair @Lukasa |
This seems to be fundamentally different than the original issue here. That looks to me like a SwiftPM problem: how are you trying to build? What build command are you running? |
We have a normal Xcode iOS app that depends on some local SPM modules, one of those modules depends on Also, all the |
Hrm, this seems like an Xcode issue. Can you file a bug report using feedbackassistant.apple.com and provide the FB number here?
There is no way to provide pre-built releases in the SwiftPM ecosystem today unfortunately. This would be a good feature request for SwiftPM though! |
Going to file a bug report then. Got it, some libraries does it, but I think the dependency resolving times are really slow though. |
We deliberately do not offer |
I have a project that implicitly depends on swift-nio-ssl (through GRPC and PostgresNIO I believe). When I am building on Linux Arm64 (not yet checked on amd64) through docker I sometimes get the following error:
The reasons I believe this is a race:
swift build
after this happens seem to resolve the issueThe text was updated successfully, but these errors were encountered: