swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.76k stars 1.35k forks source link

[SR-4124] Dependency resolution error for unsatisfiable dependencies due to tools version should say why #5084

Open rballard opened 7 years ago

rballard commented 7 years ago
Previous ID SR-4124
Radar rdar://problem/30775828
Original Reporter @rballard
Type Bug
Environment swift-3.1-DEVELOPMENT-SNAPSHOT-2017-02-27-a.xctoolchain macos
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Package Manager | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 5f70df4141226abd9700e8a59d5f0894

is duplicated by:

relates to:

Issue Description:

Currently if SwiftPM is not able to find an eligible package version of a dependency because the swift-tools-version is too high, the error you get is just:
error: unsatisfiable
We should instead emit an error that:
1) Indicates that the problem is the swift-tools-version is higher than the current tools version
2) Tells you which dependency can't be resolved

Steps to reproduce:
1) Create a package whose swift-tools-version for all tags is 4.0
2) Create another package that has a dependency on the first package
3) Try to build the second package, using swift 3.1 tools

rballard commented 7 years ago

@swift-ci create