Fetching of https://github.com/apple/swift-nio-ssl-support.git never ends in vapor 3.0.0-rc.2.1
let package = Package(
name: "TennisCup",
products: [
.library(name: "App", targets: ["App"])
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "3.0.0-rc.2.1"),
.package(url: "https://github.com/vapor/fluent-provider.git", from: "1.0.0"),
.package(url: "https://github.com/vapor/auth-provider.git", from: "1.0.0"),
.package(url: "https://github.com/vapor/leaf-provider.git", from: "1.0.0"),
.package(url: "https://github.com/vapor-community/postgresql-provider.git", from: "2.0.0"),
.package(url: "https://github.com/vapor-community/CSRF.git", from: "1.0.0")
],
targets: [
.target(name: "App", dependencies: [
"Vapor",
"FluentProvider",
"AuthProvider",
"LeafProvider",
"PostgreSQLProvider",
"CSRF"
]),
.target(name: "Run", dependencies: ["App"]),
]
)
swift build and vapor xcode should complete
Fetching of swift-nio-ssl-support.git never ends
swift --version
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Target: x86_64-apple-macosx10.9
@Igor-Palaguta your Package.swift is all kinds of conflicted! SPM can't resolve the dependencies which is why it is hanging. Are you trying to pull in the Vapor 3 RC or Vapor 2?
If you are trying to pull in the Vapor 3 RC you are going to need to make some changes:
fluent-postgresqlIf you want Vapor 3 have a look at the API template's manifest on the beta branch - it should give you a starting point https://github.com/vapor/api-template/blob/beta/Package.swift
@0xTim Thanks! I am updating to Vapor 3, and I thought SPM will complain about conflicts and not hang. Will update all dependencies
Yeah it鈥檚 supposed to...unfortunately it doesn鈥檛 always happen!
Most helpful comment
@Igor-Palaguta your Package.swift is all kinds of conflicted! SPM can't resolve the dependencies which is why it is hanging. Are you trying to pull in the Vapor 3 RC or Vapor 2?
If you are trying to pull in the Vapor 3 RC you are going to need to make some changes:
fluent-postgresqlIf you want Vapor 3 have a look at the API template's manifest on the beta branch - it should give you a starting point https://github.com/vapor/api-template/blob/beta/Package.swift