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-10205] SPM fails to resolve dependencies with Swift 5 #4868

Closed
swift-ci opened this issue Mar 27, 2019 · 2 comments
Closed

[SR-10205] SPM fails to resolve dependencies with Swift 5 #4868

swift-ci opened this issue Mar 27, 2019 · 2 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-10205
Radar None
Original Reporter Tainnor (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

macOS Mojave, 10.14.3

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

md5: cebc0658fb91abed4cc82225d8ebb29e

duplicates:

  • SR-4124 Dependency resolution error for unsatisfiable dependencies due to tools version should say why

Issue Description:

This example repository shows a regression in SPM between Swift 4.2.1 and Swift 5. In particular, running "swift package resolve" works fine with Swift 4.2.1, but gets stuck with Swift 5.

@swift-ci
Copy link
Contributor Author

Comment by Pierpaolo Frasa (JIRA)

The problem seems related to the CSwiftV dependency, which does not specify a swift-tools-version, therefore defaulting to 3.0. However, this specific error message is only displayed when trying to build that specific repository itself. When it's a dependency, it either just hangs, or (when it's the sole dependency), it shows:

Updating https://github.com/Daniel1of1/CSwiftV
error: dependency graph is unresolvable; found these conflicting requirements:

Dependencies:
https://github.com/Daniel1of1/CSwiftV @ 0.0.7

Therefore, this is an issue of bad diagnostics, not strictly a bug in functionality.

@ankitspd
Copy link
Member

Long standing issue. We hope to resolve this with PubGrub resolver.

@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
This issue was closed.
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

2 participants