Skip to content

Commit a939a8d

Browse files
authored
KituraNIO: Pin to Kitura 2.6 on Swift 4 (#217)
1 parent a96abb2 commit a939a8d

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

[email protected]

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@
1818
import PackageDescription
1919
import Foundation
2020

21+
var kituraPackage: Package.Dependency
2122
var webSocketPackage: Package.Dependency
2223

2324
if ProcessInfo.processInfo.environment["KITURA_NIO"] != nil {
25+
kituraPackage = .package(url: "https://github.com/IBM-Swift/Kitura.git", .upToNextMinor(from: "2.6.0"))
2426
webSocketPackage = .package(url: "https://github.com/IBM-Swift/Kitura-WebSocket-NIO.git", from: "1.0.0")
2527
} else {
28+
kituraPackage = .package(url: "https://github.com/IBM-Swift/Kitura.git", from: "2.3.0")
2629
webSocketPackage = .package(url: "https://github.com/IBM-Swift/Kitura-WebSocket.git", from: "2.0.0")
2730
}
2831

@@ -43,7 +46,7 @@ let package = Package(
4346
.executable(name: "SwiftMetricsCommonSample", targets: ["SwiftMetricsCommonSample"]),
4447
],
4548
dependencies: [
46-
.package(url: "https://github.com/IBM-Swift/Kitura.git", from: "2.3.0"),
49+
kituraPackage,
4750
webSocketPackage,
4851
.package(url: "https://github.com/IBM-Swift/SwiftyRequest.git", from: "1.0.0"),
4952
.package(url: "https://github.com/IBM-Swift/Swift-cfenv.git", from: "6.0.0"),

[email protected]

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@
1818
import PackageDescription
1919
import Foundation
2020

21+
var kituraPackage: Package.Dependency
2122
var webSocketPackage: Package.Dependency
2223

2324
if ProcessInfo.processInfo.environment["KITURA_NIO"] != nil {
25+
kituraPackage = .package(url: "https://github.com/IBM-Swift/Kitura.git", .upToNextMinor(from: "2.6.0"))
2426
webSocketPackage = .package(url: "https://github.com/IBM-Swift/Kitura-WebSocket-NIO.git", from: "1.0.0")
2527
} else {
28+
kituraPackage = .package(url: "https://github.com/IBM-Swift/Kitura.git", from: "2.3.0")
2629
webSocketPackage = .package(url: "https://github.com/IBM-Swift/Kitura-WebSocket.git", from: "2.0.0")
2730
}
2831

@@ -43,7 +46,7 @@ let package = Package(
4346
.executable(name: "SwiftMetricsCommonSample", targets: ["SwiftMetricsCommonSample"]),
4447
],
4548
dependencies: [
46-
.package(url: "https://github.com/IBM-Swift/Kitura.git", from: "2.3.0"),
49+
kituraPackage,
4750
webSocketPackage,
4851
.package(url: "https://github.com/IBM-Swift/SwiftyRequest.git", from: "1.0.0"),
4952
.package(url: "https://github.com/IBM-Swift/Swift-cfenv.git", from: "6.0.0"),

[email protected]

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@
1818
import PackageDescription
1919
import Foundation
2020

21+
var kituraPackage: Package.Dependency
2122
var webSocketPackage: Package.Dependency
2223

2324
if ProcessInfo.processInfo.environment["KITURA_NIO"] != nil {
25+
kituraPackage = .package(url: "https://github.com/IBM-Swift/Kitura.git", .upToNextMinor(from: "2.6.0"))
2426
webSocketPackage = .package(url: "https://github.com/IBM-Swift/Kitura-WebSocket-NIO.git", from: "1.0.0")
2527
} else {
28+
kituraPackage = .package(url: "https://github.com/IBM-Swift/Kitura.git", from: "2.3.0")
2629
webSocketPackage = .package(url: "https://github.com/IBM-Swift/Kitura-WebSocket.git", from: "2.0.0")
2730
}
2831

@@ -43,7 +46,7 @@ let package = Package(
4346
.executable(name: "SwiftMetricsCommonSample", targets: ["SwiftMetricsCommonSample"]),
4447
],
4548
dependencies: [
46-
.package(url: "https://github.com/IBM-Swift/Kitura.git", from: "2.3.0"),
49+
kituraPackage,
4750
webSocketPackage,
4851
.package(url: "https://github.com/IBM-Swift/Swift-cfenv.git", from: "6.0.0"),
4952
.package(url: "https://github.com/RuntimeTools/omr-agentcore", .exact("3.2.4-swift4")),

0 commit comments

Comments
 (0)