1
- // swift-tools-version:5.7
1
+ // swift-tools-version:5.9
2
2
// The swift-tools-version declares the minimum version of Swift required to build this package.
3
3
4
- import class Foundation. ProcessInfo
5
4
import PackageDescription
6
5
6
+ import class Foundation. ProcessInfo
7
+
7
8
// Workaround: Since we cannot include the flat just as command line options since then it applies to all targets,
8
9
// and ONE of our dependencies currently produces one warning, we have to use this workaround to enable it in _our_
9
10
// targets when the flag is set. We should remove the dependencies and then enable the flag globally though just by passing it.
10
11
let globalSwiftSettings : [ SwiftSetting ]
11
12
if ProcessInfo . processInfo. environment [ " WARNINGS_AS_ERRORS " ] != nil {
12
13
print ( " WARNINGS_AS_ERRORS enabled, passing `-warnings-as-errors` " )
13
14
globalSwiftSettings = [
14
- SwiftSetting . unsafeFlags ( [ " -warnings-as-errors " ] ) ,
15
+ SwiftSetting . unsafeFlags ( [ " -warnings-as-errors " ] )
15
16
]
16
17
} else {
17
18
globalSwiftSettings = [ ]
@@ -23,8 +24,7 @@ var targets: [PackageDescription.Target] = [
23
24
24
25
. target(
25
26
name: " ClusterMembership " ,
26
- dependencies: [
27
- ]
27
+ dependencies: [ ]
28
28
) ,
29
29
30
30
. target(
@@ -59,7 +59,7 @@ var targets: [PackageDescription.Target] = [
59
59
. testTarget(
60
60
name: " ClusterMembershipDocumentationTests " ,
61
61
dependencies: [
62
- " SWIM " ,
62
+ " SWIM "
63
63
]
64
64
) ,
65
65
@@ -69,7 +69,7 @@ var targets: [PackageDescription.Target] = [
69
69
. testTarget(
70
70
name: " ClusterMembershipTests " ,
71
71
dependencies: [
72
- " ClusterMembership " ,
72
+ " ClusterMembership "
73
73
]
74
74
) ,
75
75
@@ -106,7 +106,7 @@ var targets: [PackageDescription.Target] = [
106
106
. executableTarget(
107
107
name: " it_Clustered_swim_suspension_reachability " ,
108
108
dependencies: [
109
- " SWIM " ,
109
+ " SWIM "
110
110
] ,
111
111
path: " IntegrationTests/tests_01_cluster/it_Clustered_swim_suspension_reachability "
112
112
) ,
@@ -123,7 +123,7 @@ var dependencies: [Package.Dependency] = [
123
123
124
124
// ~~~ SSWG APIs ~~~
125
125
. package ( url: " https://github.com/apple/swift-log.git " , from: " 1.4.0 " ) ,
126
- . package ( url: " https://github.com/apple/swift-metrics.git " , " 2.3.2 " ..< " 3.0.0 " ) , // since latest
126
+ . package ( url: " https://github.com/apple/swift-metrics.git " , " 2.3.2 " ..< " 3.0.0 " ) , // since latest
127
127
128
128
// ~~~ SwiftPM Plugins ~~~
129
129
. package ( url: " https://github.com/apple/swift-docc-plugin " , from: " 1.0.0 " ) ,
0 commit comments