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

The dependency graph could not be satisfied (https://github.com/IBM-Swift/HeliumLogger.git) #39

Closed
penacristian opened this issue Dec 8, 2016 · 10 comments

Comments

@penacristian
Copy link

I'm getting that error when trying to do
swift package generate-xcodeproj
The xcode project is not updating after adding a coachDB package dependency.
Any idea??

@ianpartridge
Copy link
Collaborator

Can you paste your full Package.swift here please?

@penacristian
Copy link
Author

penacristian commented Dec 8, 2016

import PackageDescription

let package = Package(
    name: "Kitura-Starter",
    targets: [
      Target(name: "Kitura-Starter", dependencies: [])
    ],
    dependencies: [
      .Package(url: "https://github.com/IBM-Swift/Kitura.git", majorVersion: 1, minor: 3),
      .Package(url: "https://github.com/IBM-Swift/HeliumLogger.git", majorVersion: 1, minor: 3),
      .Package(url: "https://github.com/IBM-Swift/Swift-cfenv.git", majorVersion: 1, minor: 8),
      .Package(url: "https://github.com/IBM-Swift/SwiftyJSON.git", majorVersion: 15),
      .Package(url: "https://github.com/IBM-Bluemix/cf-deployment-tracker-client-swift.git", majorVersion: 0, minor: 6),
      .Package(url: "https://github.com/IBM-Swift/Kitura-CouchDB.git", majorVersion: 0, minor: 25)
    ],
    exclude: ["Makefile", "Package-Builder"])

@ianpartridge
Copy link
Collaborator

ianpartridge commented Dec 8, 2016

Thanks. You've specified version 0.25 of Kitura-CouchDB which is a very old version that used a different HeliumLogger.

Change your Package.swift to specify version 1.3 of Kitura-CouchDB, then rm -rf Packages and run swift package generate-xcodeproj again.

Does that work?

@penacristian
Copy link
Author

How can I specify a minimum version and just get the latest? (kind of like cocoapods)

@ianpartridge
Copy link
Collaborator

Swift Package Manager doesn't support that model, I'm afraid.

@penacristian
Copy link
Author

And how should I get notified which is the latest version? Or where can I check?

@penacristian
Copy link
Author

Also, do you know of any good documentation/tutorial on using CouchDB with Kitura?

@ianpartridge
Copy link
Collaborator

Swift Package Manager versioning is based on git tags and SemVer. So, for Kitura-CouchDB you can check the releases page to see the most recent version.

@penacristian
Copy link
Author

Thank you very much for everything

@ianpartridge
Copy link
Collaborator

There's a tutorial here written by @akrabat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants