vapor/fluent-kit.git@1.0.0-beta.2.1 contains incompatible dependencies: sql-kit
lil5 opened this issue ยท 6 comments
lil5 commented
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 commented
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 commented
Is there a workaround for this error?
lil5 commented
lil5 commented
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 commented
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 commented
That fixed it for me thanks! @JulianKahnert