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
[SR-8380] Crash when a dependency depends on itself (cycle) #5346
Comments
@swift-ci create |
This happens because one of the dependency is NozeIO/swift-nio-irc, which redirects to NozeIO/swift-nio-irc-client and it contains a dependency SwiftNIOExtras/swift-nio-irc. This should be fixed once we expand the package identity to include the username instead of just the basename. |
This bug also revealed another issue of detecting dependency cycles. It looks like if a dependency depends on itself, we see a similar crash. I was able to create a self contained reproducer. |
Comment by Helge Heß (JIRA) > NozeIO/swift-nio-irc, which redirects to NozeIO/swift-nio-irc-client That would be a GitHub bug. `NozeIO/swift-nio-irc` should redirect to `SwiftNIOExtras/swift-nio-irc` (the new org I moved it to). The new `NozeIO/swift-nio-irc-client` is a fork of the (moved) `SwiftNIOExtras/swift-nio-irc`. (I know all this is an edge case, but people do weird stuff like that 😉 ) |
We already have separate bugs for both problems hit in this bug report. |
Attachment: Download
Environment
Xcode 10b4, Swift 4.2 on the command line
10.13.6 (17G65)
Additional Detail from JIRA
md5: aac2eb4869d10b7cc4d885ba0ec82d73
relates to:
Issue Description:
When trying to build the SwiftNIO_XcodeImage w/ Xcode 10b4, SwiftPM segfaults:
Turns out that this is because the `Package.swift` contains GH dependencies which got moved to a new organisation:
When I fix this the URLs, it works. So presumably something is getting confused when GH redirects the old URL to the new location.
You should be able to reproduce this by checking out commit `43ae40d931ae957a7f17997f91a94e0509468a6e` of https://github.com/SwiftXcode/SwiftNIO_XcodeImage.git, and then run `swift build`.
The text was updated successfully, but these errors were encountered: