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-7829] Bad error message when a tag doesn't exist #4802

Closed
ankitspd opened this issue May 31, 2018 · 3 comments
Closed

[SR-7829] Bad error message when a tag doesn't exist #4802

ankitspd opened this issue May 31, 2018 · 3 comments
Labels

Comments

@ankitspd
Copy link
Member

Previous ID SR-7829
Radar rdar://problem/35907057
Original Reporter @aciidb0mb3r
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 1
Component/s Package Manager
Labels Bug, StarterBug
Assignee None
Priority Medium

md5: d8152fc33b70e5b056f5c3a0e4065695

Issue Description:

When building a package with a dependency on a tag that I forgot to push I got the following error message:

error: dependency graph is unresolvable; found these conflicting requirements:

Dependencies: 
 https://github.com/foobar/foo.git @ 2.0.0-rc12

While this is technically correct, a more helpful error message would be “Couldn’t find tag 2.0.0-rc12 for dependency https://github.com/foobar/foo.git

The Package.swift contains this dependency:

.package(url: "https://github.com/foobar/foo.git", .exact("2.0.0-rc12")),
@ankitspd
Copy link
Member Author

FYI, I am not very sure what would be required to fix this so this may not be a starter bug.

@WFT
Copy link
Contributor

WFT commented Feb 17, 2019

I was able to reproduce this on `master` and I've found a solution that appears to work. I'll put up a PR today or tomorrow. This is my first contribution to SwiftPM, so I may need some guidance as to whether or not it's a reasonable solution.

@WFT
Copy link
Contributor

WFT commented Feb 18, 2019

PR: #2008

@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