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-3501] Poor diagnostic when invalid version is specified #5143

Closed
Bouke opened this issue Dec 28, 2016 · 0 comments
Closed

[SR-3501] Poor diagnostic when invalid version is specified #5143

Bouke opened this issue Dec 28, 2016 · 0 comments
Labels

Comments

@Bouke
Copy link
Contributor

Bouke commented Dec 28, 2016

Previous ID SR-3501
Radar None
Original Reporter @Bouke
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 9c8b7d26068e5a700d98100b6340f537

duplicates:

  • SR-4072 Better response rather than "unsatisfiable"

Issue Description:

My repository only had the tags 1.0.0 and 2.0.0, but no 3.0.0 (or any other 3.x version). The only message I got was:

error: unsatisfiable

Would expect something like:

error: no version 3 of package "https://github.com/Bouke/CNCURSES.git" could be found
// or
error: version 3 of package "https://github.com/Bouke/CNCURSES.git" was specified, but the best alternative "2.0.0" does not satisfy this requirement
import PackageDescription

let package = Package(
    name: "TermDraw",
    dependencies: [
        .Package(url:  "https://github.com/Bouke/CNCURSES.git", majorVersion: 3),
    ]
)
swift package --enable-new-resolver -v update                ⏎
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-12-15-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-12-15-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-12-15-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /Users/bouke/Developer/TermDraw/Package.swift -fileno 3
/usr/local/bin/git -C /Users/bouke/Developer/TermDraw/.build/repositories/CNCURSES.git-6008782792465630637 rev-parse --is-bare-repository
/usr/local/bin/git -C /Users/bouke/Developer/TermDraw/.build/repositories/CNCURSES.git-6008782792465630637 fetch --tags
From https://github.com/Bouke/CNCURSES
 * branch            HEAD       -> FETCH_HEAD
/usr/local/bin/git -C /Users/bouke/Developer/TermDraw/.build/repositories/CNCURSES.git-6008782792465630637 rev-parse --is-bare-repository
/usr/local/bin/git -C /Users/bouke/Developer/TermDraw/.build/repositories/CNCURSES.git-6008782792465630637 tag -l
error: unsatisfiable
@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