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-11513] Package Manager Reports Bogus “Cyclic Dependency” #4661

Open
swift-ci opened this issue Sep 24, 2019 · 2 comments
Open

[SR-11513] Package Manager Reports Bogus “Cyclic Dependency” #4661

swift-ci opened this issue Sep 24, 2019 · 2 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-11513
Radar rdar://problem/55665943
Original Reporter SDGGiesbrecht (JIRA User)
Type Bug
Environment

The same thing occurs on both macOS 10.14 (Mojave) and Ubuntu 18 (Bionic).

The bug is completely new to Swift 5.1. Earlier versions of Swift handled this situation just fine.

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

md5: 091f476a2b16b059d29fb51e98572f8a

Issue Description:

If the directory name of the package under development collides with the final path component of a dependency, the package manager refuses to do anything, falsely reporting a cyclic dependency.

This three‐line script triggers it using the package manager’s own demonstration packages:

git clone https://github.com/apple/example-package-deckofplayingcards example-package-fisheryates
cd example-package-fisheryates
swift build

And this is the resulting complaint:

error: the package example-package-fisheryates[[...]/example-package-fisheryates] depends on itself
error: cyclic dependency declaration found: DeckOfPlayingCards -> DeckOfPlayingCards

The first half of the error does not always appear.

With --enable-pubgrub-resolver the only output is “Illegal instruction: 4” instead.

@ankitspd
Copy link
Member

This is used for the overriding behavior for path-based dependencies. Perhaps we can do something better here but PubGrub shouldn't crash at the very least.

@ankitspd
Copy link
Member

@swift-ci create

@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