Vapor: Fetching of https://github.com/apple/swift-nio-ssl-support.git never ends

Created on 25 Mar 2018  路  3Comments  路  Source: vapor/vapor

Fetching of https://github.com/apple/swift-nio-ssl-support.git never ends in vapor 3.0.0-rc.2.1

Steps to reproduce

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"]),
      ]
)

Expected behavior

swift build and vapor xcode should complete

Actual behavior

Fetching of swift-nio-ssl-support.git never ends

Environment

  • Vapor Framework version: vapor 3.0.0-rc.2.1
  • Vapor Toolbox: 3.1.4
  • OS version: 10.13.2

swift --version
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Target: x86_64-apple-macosx10.9

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:

If 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

All 3 comments

@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:

If 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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xiaoyifan picture xiaoyifan  路  3Comments

hjuraev picture hjuraev  路  3Comments

litan1106 picture litan1106  路  4Comments

nsleader picture nsleader  路  4Comments

kgn picture kgn  路  3Comments