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-12634] SwiftPM reports cyclic dependency in Error #4559

Open
0xTim opened this issue Apr 20, 2020 · 3 comments
Open

[SR-12634] SwiftPM reports cyclic dependency in Error #4559

0xTim opened this issue Apr 20, 2020 · 3 comments
Labels

Comments

@0xTim
Copy link
Contributor

0xTim commented Apr 20, 2020

Previous ID SR-12634
Radar rdar://problem/62202454
Original Reporter @0xTim
Type Bug
Environment

Apple Swift version 5.2 (swiftlang-1103.0.32.1 clang-1103.0.32.29)``Target: x86_64-apple-darwin19.4.0

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

md5: 6105d7d40f7dfd9057cf10b363b45d6c

Issue Description:

When trying to build a SwiftPM package in a directory with the same name as a dependency, SwiftPM reports:

error: cyclic dependency declaration found: BugTest -> BugTest

Steps To Reproduce:

  1. git clone git@github.com:0xTim/swiftpm-cyclic-bug.git

  2. cd swiftpm-cyclic-bug/vapor

  3. swift build

Expected Result

swift builds correctly

Actual Result

swift reports error: cyclic dependency declaration found: BugTest -> BugTest

@weissi
Copy link
Member

weissi commented Apr 20, 2020

@swift-ci create

@abertelrud
Copy link
Contributor

Looks as if it's using the last path component of the path of the package when looking for cycles, but then reporting the name of the package (as declared in the manifest) in the error message.

@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
@trenskow
Copy link

trenskow commented Oct 2, 2023

Is there any way this to get around this while this is still open (beside renaming the folder)?

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

5 participants