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-4236] Unsatisfiable dependencies error should mention pinning #5069

Closed
rballard opened this issue Mar 13, 2017 · 1 comment
Closed

[SR-4236] Unsatisfiable dependencies error should mention pinning #5069

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

Comments

@rballard
Copy link
Contributor

Previous ID SR-4236
Radar rdar://problem/31022817
Original Reporter @rballard
Type Bug
Status Resolved
Resolution Duplicate
Environment

Apple Swift Package Manager - Swift 3.1.0 (swiftpm-12084)

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

md5: 340af6e97e283cd88d3b61344c705fe8

duplicates:

  • SR-4072 Better response rather than "unsatisfiable"

relates to:

  • SR-4124 Dependency resolution error for unsatisfiable dependencies due to tools version should say why
  • SR-4072 Better response rather than "unsatisfiable"

Issue Description:

It's easy to get unsatisfiable dependencies due to pinning and not realize that pinning is the problem. The error that SwiftPM gives when you have unsatisfiable dependencies should mention that dependency restrictions are coming from your pinfile.

Here's an example workflow where this is very confusing:

  1. Clone vapor git@github.com:vapor/vapor.git
  2. Check out tag 2.0.0-alpha.7
  3. Run `swift build`
  4. Check out tag 1.5.9
  5. Run `swift build`

Result: SwiftPM emits "error: unsatisfiable". The problem here is that your earlier build left you with a Package.pins file that specifies dependencies that are incompatible with 1.5.9. In order to build you need to `rm Package.pins`, but that's really non-obvious.
The error message should in some way indicate that pinning is part of the dependency resolution that's unsatisfiable.

This is related to / a potential subtask of [SR-4237 Unsatisfiable dependency error should say which dependency can't be satisfied](https://bugs.swift.org/browse/SR-4237)

@rballard
Copy link
Contributor Author

@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
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

1 participant