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-4124] Dependency resolution error for unsatisfiable dependencies due to tools version should say why #5084

Open
rballard opened this issue Mar 1, 2017 · 1 comment
Labels

Comments

@rballard
Copy link
Contributor

rballard commented Mar 1, 2017

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:

  • SR-9775 swift build fails with Xcode 10.2 toolchain, but is ok with 10.1 toolchain
  • SR-10205 SPM fails to resolve dependencies with Swift 5

relates to:

  • SR-4072 Better response rather than "unsatisfiable"
  • SR-4236 Unsatisfiable dependencies error should mention pinning

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
Copy link
Contributor Author

rballard commented Mar 1, 2017

@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

2 participants