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-11826] SwiftPM detects a cyclic dependency where there is none #4641

Open
hartbit opened this issue Nov 21, 2019 · 2 comments
Open

[SR-11826] SwiftPM detects a cyclic dependency where there is none #4641

hartbit opened this issue Nov 21, 2019 · 2 comments
Labels

Comments

@hartbit
Copy link
Collaborator

hartbit commented Nov 21, 2019

Previous ID SR-11826
Radar rdar://problem/57418524
Original Reporter @hartbit
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 90deb47bd6b81ab384e7f54441ae3c54

Issue Description:

Strangely, SwiftPM gets confused when resolving the Vapor template project when the folder the project is cloned to is named Vapor (the same name as the Vapor library):

$ git clone https://github.com/vapor/api-template Vapor
$ cd Vapor
$ swift build
Fetching https://github.com/vapor/database-kit.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/vapor/service.git
Fetching https://github.com/vapor/sqlite.git
Fetching https://github.com/vapor/http.git
Fetching https://github.com/vapor/template-kit.git
Fetching https://github.com/vapor/websocket.git
Fetching https://github.com/apple/swift-nio-ssl-support.git
Fetching https://github.com/vapor/routing.git
Fetching https://github.com/apple/swift-nio-ssl.git
error: the package vapor[/Users/david/Projects/Vapor] depends on itself
error: cyclic dependency declaration found: VaporApp -> VaporApp
@beccadax
Copy link
Contributor

@swift-ci create

@stevapple
Copy link
Contributor

If the directory name of Swift project is the same as any one of the dependencies (ignoring cases), it will falsely report a `cyclic dependency` on itself.

This is a new bug in Swift 5.

@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

4 participants