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

vapor/fluent-kit.git@1.0.0-beta.2.1 contains incompatible dependencies: sql-kit #96

Closed
lil5 opened this issue Nov 25, 2019 · 6 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@lil5
Copy link

lil5 commented Nov 25, 2019

the package fluent-kit[https://github.com/vapor/fluent-kit.git] @ 1.0.0-beta.2.1 contains incompatible dependencies:
    sql-kit[https://github.com/vapor/sql-kit.git] @ master

This error seems to be an error on fluent-kit issue

// swift-tools-version:5.1
import PackageDescription

let package = Package(
    name: "vapor-4-test",
    dependencies: [
        // 💧 A server-side Swift web framework.
        .package(url: "https://github.com/vapor/vapor.git", from: "4.0.0-beta"),
        .package(url: "https://github.com/vapor/fluent.git", from: "4.0.0-beta"),
//        .package(url: "https://github.com/vapor/fluent-sqlite-driver.git", from: "4.0.0-beta"),
//        .package(url: "https://github.com/vapor/fluent-kit.git", from: "1.0.0-alpha"),
    ],
    targets: [
        .target(name: "App", dependencies: ["Fluent", "FluentSQLiteDriver", "Vapor"]),
        .target(name: "Run", dependencies: ["App"]),
        .testTarget(name: "AppTests", dependencies: ["App"])
    ]
)
@calebkleveter calebkleveter added the bug Something isn't working label Nov 25, 2019
@calebkleveter
Copy link
Member

This is because SPM doesn't allow a dependency that is tagged at a specific version cannot have a dependency that is pinned to a branch.

@Noobish1
Copy link

Is there a workaround for this error?

@lil5
Copy link
Author

lil5 commented Nov 26, 2019

@lil5
Copy link
Author

lil5 commented Nov 26, 2019

https://forums.swift.org/t/spm-dependency-resolution-version-vs-tag-branch/30089

This might fix it

Nope doesn't fix it 😞

$ swift package --enable-pubgrub-resolver update
Fetching https://github.com/vapor/fluent-sqlite-driver.git
Fetching https://github.com/vapor/fluent.git
Fetching https://github.com/vapor/vapor.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/vapor/sqlite-kit.git
Fetching https://github.com/vapor/fluent-kit.git
Fatal error: Expected Constraint(sql-kit[https://github.com/vapor/sql-kit.git], master) to be pinned to a version set, not master.: file /Library/Caches/com.apple.xbs/Sources/swiftpm/swiftpm-15502/Sources/PackageGraph/Pubgrub.swift, line 1247
[1]    64645 illegal hardware instruction  swift package --enable-pubgrub-resolver update

@JulianKahnert
Copy link

Hi @lil5, I think you can try to add this to your Package.swift:

.package(url: "https://github.com/vapor/fluent-kit.git", .branch("master")),

@lil5
Copy link
Author

lil5 commented Nov 26, 2019

That fixed it for me thanks! @JulianKahnert

@lil5 lil5 closed this as completed Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants