Open 0xTim opened 4 years ago
@swift-ci create
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.
Is there any way this to get around this while this is still open (beside renaming the folder)?
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: 6105d7d40f7dfd9057cf10b363b45d6cIssue 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:
git clone git@github.com:0xTim/swiftpm-cyclic-bug.git
cd swiftpm-cyclic-bug/vapor
swift build
Expected Result
swift builds correctly
Actual Result
swift reports
error: cyclic dependency declaration found: BugTest -> BugTest