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

[SR-11025] Cyclic Dependencies Crash SwiftPM #4690

Open
CodaFi opened this issue Jun 26, 2019 · 1 comment
Open

[SR-11025] Cyclic Dependencies Crash SwiftPM #4690

CodaFi opened this issue Jun 26, 2019 · 1 comment
Labels

Comments

@CodaFi
Copy link
Member

CodaFi commented Jun 26, 2019

Previous ID SR-11025
Radar rdar://problem/52209227
Original Reporter @CodaFi
Type Bug
Environment

Apple Swift version 5.1 (swiftlang-1100.0.43.3 clang-1100.0.26.3)
Target: x86_64-apple-darwin19.0.0

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 55f1cdcb5869f5ce9a6f9e45c7c260da

Issue Description:

When the dependency resolver interacts with cyclic dependencies, it crashes SwiftPM. I've created two repositories

https://github.com/CodaFi/Swift-Package-Cycle-One
https://github.com/CodaFi/Swift-Package-Cycle-Two

Each is trivial: A single package file that contains an executable tool with an empty main.swift. The fun of it is that they declare each other as package dependencies, and declare their parallel executable as a target dependency.

@ankitspd
Copy link
Member

🙁

At least, pubgrub is detecting it:

swift build --enable-pubgrub-resolver                                                                                                                                           
Updating https://github.com/CodaFi/Swift-Package-Cycle-Two.git
Completed resolution in 0.70s
Cloning https://github.com/CodaFi/Swift-Package-Cycle-Two.git
Resolving https://github.com/CodaFi/Swift-Package-Cycle-Two.git at 0.0.1
error: cyclic dependency declaration found: Swift-Package-Cycle-One -> Swift-Package-Cycle-Two -> Swift-Package-Cycle-One

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants