Build Information
Successful build of Sword with Swift 6.0 (beta) for macOS (SPM).
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Azoy/Sword.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Azoy/Sword
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 01185a2 Update Doc Link
Cloned https://github.com/Azoy/Sword.git
Revision (git rev-parse @):
01185a232ea9a33f67711550f77a7a8dbca2dc78
SUCCESS checkout https://github.com/Azoy/Sword.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Azoy/Sword.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/7] Compiling Starscream SSLSecurity.swift
[5/7] Emitting module Starscream
[6/7] Compiling Starscream Compression.swift
[7/7] Compiling Starscream WebSocket.swift
[8/47] Compiling Sword Bucket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Utils/Bucket.swift:70:9: warning: capture of 'self' with non-sendable type 'Bucket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | /// Rate Limit Thing
13 | class Bucket {
| `- note: class 'Bucket' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
:
68 | deadline: self.lastResetDispatch + .seconds(self.interval + 1)
69 | ) {
70 | self.check()
| `- warning: capture of 'self' with non-sendable type 'Bucket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | }
72 |
[9/47] Compiling Sword Enums.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Utils/Bucket.swift:70:9: warning: capture of 'self' with non-sendable type 'Bucket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | /// Rate Limit Thing
13 | class Bucket {
| `- note: class 'Bucket' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
:
68 | deadline: self.lastResetDispatch + .seconds(self.interval + 1)
69 | ) {
70 | self.check()
| `- warning: capture of 'self' with non-sendable type 'Bucket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | }
72 |
[10/47] Compiling Sword Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Utils/Bucket.swift:70:9: warning: capture of 'self' with non-sendable type 'Bucket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | /// Rate Limit Thing
13 | class Bucket {
| `- note: class 'Bucket' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
:
68 | deadline: self.lastResetDispatch + .seconds(self.interval + 1)
69 | ) {
70 | self.check()
| `- warning: capture of 'self' with non-sendable type 'Bucket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | }
72 |
[11/47] Compiling Sword Imageable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Utils/Bucket.swift:70:9: warning: capture of 'self' with non-sendable type 'Bucket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | /// Rate Limit Thing
13 | class Bucket {
| `- note: class 'Bucket' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
:
68 | deadline: self.lastResetDispatch + .seconds(self.interval + 1)
69 | ) {
70 | self.check()
| `- warning: capture of 'self' with non-sendable type 'Bucket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | }
72 |
[12/51] Compiling Sword Payload.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Gateway/Shard.swift:154:11: warning: capture of 'self' with non-sendable type 'Shard' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |
18 | /// WS class
19 | class Shard: Gateway {
| `- note: class 'Shard' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: Properties
:
152 | deadline: DispatchTime.now() + .seconds(10)
153 | ) { [unowned self] in
154 | self.sword.warn("Detected a loss of internet...")
| `- warning: capture of 'self' with non-sendable type 'Shard' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | self.reconnect()
156 | }
[13/51] Compiling Sword Shard.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Gateway/Shard.swift:154:11: warning: capture of 'self' with non-sendable type 'Shard' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |
18 | /// WS class
19 | class Shard: Gateway {
| `- note: class 'Shard' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: Properties
:
152 | deadline: DispatchTime.now() + .seconds(10)
153 | ) { [unowned self] in
154 | self.sword.warn("Detected a loss of internet...")
| `- warning: capture of 'self' with non-sendable type 'Shard' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | self.reconnect()
156 | }
[14/51] Compiling Sword ShardManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Gateway/Shard.swift:154:11: warning: capture of 'self' with non-sendable type 'Shard' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |
18 | /// WS class
19 | class Shard: Gateway {
| `- note: class 'Shard' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: Properties
:
152 | deadline: DispatchTime.now() + .seconds(10)
153 | ) { [unowned self] in
154 | self.sword.warn("Detected a loss of internet...")
| `- warning: capture of 'self' with non-sendable type 'Shard' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | self.reconnect()
156 | }
[15/51] Compiling Sword EndpointInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Gateway/Shard.swift:154:11: warning: capture of 'self' with non-sendable type 'Shard' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |
18 | /// WS class
19 | class Shard: Gateway {
| `- note: class 'Shard' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: Properties
:
152 | deadline: DispatchTime.now() + .seconds(10)
153 | ) { [unowned self] in
154 | self.sword.warn("Detected a loss of internet...")
| `- warning: capture of 'self' with non-sendable type 'Shard' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | self.reconnect()
156 | }
[16/51] Compiling Sword Endpoints.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Gateway/Shard.swift:154:11: warning: capture of 'self' with non-sendable type 'Shard' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |
18 | /// WS class
19 | class Shard: Gateway {
| `- note: class 'Shard' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: Properties
:
152 | deadline: DispatchTime.now() + .seconds(10)
153 | ) { [unowned self] in
154 | self.sword.warn("Detected a loss of internet...")
| `- warning: capture of 'self' with non-sendable type 'Shard' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | self.reconnect()
156 | }
[17/51] Compiling Sword GuildCategory.swift
[18/51] Compiling Sword GuildText.swift
[19/51] Compiling Sword GuildVoice.swift
[20/51] Compiling Sword Invite.swift
[21/51] Compiling Sword EventHandler.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Gateway/Heartbeat.swift:38:7: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | deadline: .now() + .milliseconds(interval)
37 | ) { [unowned self] in
38 | self.heartbeat(at: interval)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | }
[22/51] Compiling Sword Eventable.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Gateway/Heartbeat.swift:38:7: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | deadline: .now() + .milliseconds(interval)
37 | ) { [unowned self] in
38 | self.heartbeat(at: interval)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | }
[23/51] Compiling Sword Gateway.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Gateway/Heartbeat.swift:38:7: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | deadline: .now() + .milliseconds(interval)
37 | ) { [unowned self] in
38 | self.heartbeat(at: interval)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | }
[24/51] Compiling Sword GatewayHandler.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Gateway/Heartbeat.swift:38:7: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | deadline: .now() + .milliseconds(interval)
37 | ) { [unowned self] in
38 | self.heartbeat(at: interval)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | }
[25/51] Compiling Sword Heartbeat.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Gateway/Heartbeat.swift:38:7: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | deadline: .now() + .milliseconds(interval)
37 | ) { [unowned self] in
38 | self.heartbeat(at: interval)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | }
[26/51] Compiling Sword DM.swift
[27/51] Compiling Sword Emoji.swift
[28/51] Compiling Sword GroupDM.swift
[29/51] Compiling Sword Guild.swift
[30/51] Compiling Sword Snowflake.swift
[31/51] Compiling Sword User.swift
[32/51] Compiling Sword VoiceState.swift
[33/51] Compiling Sword Webhook.swift
[34/51] Compiling Sword JSON.swift
[35/51] Compiling Sword Log.swift
[36/51] Compiling Sword Updatable.swift
[37/51] Compiling Sword Utils.swift
[38/51] Emitting module Sword
[39/51] Compiling Sword Member.swift
[40/51] Compiling Sword Message.swift
[41/51] Compiling Sword Options.swift
[42/51] Compiling Sword Role.swift
[43/51] Compiling Sword MultipartBody.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:130:9: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | if error != nil {
129 | #if !os(Linux)
130 | completion(nil, RequestError(error! as NSError))
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | #else
132 | completion(nil, RequestError(error as! NSError))
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:139:9: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 |
138 | if rateLimited {
139 | self.handleRateLimitHeaders(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | headers["x-ratelimit-limit"],
141 | headers["x-ratelimit-reset"],
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:184:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | ) { [unowned self] in
183 | self.request(
184 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | body: body,
186 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:185:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | self.request(
184 | endpoint,
185 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | file: file,
187 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:143:11: warning: reference to captured var 'route' in concurrently-executing code; this is an error in the Swift 6 language mode
141 | headers["x-ratelimit-reset"],
142 | (headers["Date"] as! String).httpDate.timeIntervalSince1970,
143 | route
| `- warning: reference to captured var 'route' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | )
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:173:15: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | deadline: DispatchTime.now() + .seconds(retryAfter)
172 | ) { [unowned self] in
173 | self.globalUnlock()
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 | }
175 |
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:183:13: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | deadline: DispatchTime.now() + .seconds(retryAfter)
182 | ) { [unowned self] in
183 | self.request(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 | endpoint,
185 | body: body,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:184:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | ) { [unowned self] in
183 | self.request(
184 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | body: body,
186 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:185:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | self.request(
184 | endpoint,
185 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | file: file,
187 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:189:21: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | authorization: authorization,
188 | rateLimited: rateLimited,
189 | then: completion
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
190 | )
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:198:13: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | deadline: DispatchTime.now() + .seconds(3)
197 | ) { [unowned self] in
198 | self.request(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
199 | endpoint,
200 | body: body,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:199:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | ) { [unowned self] in
198 | self.request(
199 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | body: body,
201 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:200:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 | self.request(
199 | endpoint,
200 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | file: file,
202 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:204:21: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
202 | authorization: authorization,
203 | rateLimited: rateLimited,
204 | then: completion
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
205 | )
206 | }
[44/51] Compiling Sword RateLimit.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:130:9: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | if error != nil {
129 | #if !os(Linux)
130 | completion(nil, RequestError(error! as NSError))
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | #else
132 | completion(nil, RequestError(error as! NSError))
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:139:9: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 |
138 | if rateLimited {
139 | self.handleRateLimitHeaders(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | headers["x-ratelimit-limit"],
141 | headers["x-ratelimit-reset"],
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:184:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | ) { [unowned self] in
183 | self.request(
184 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | body: body,
186 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:185:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | self.request(
184 | endpoint,
185 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | file: file,
187 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:143:11: warning: reference to captured var 'route' in concurrently-executing code; this is an error in the Swift 6 language mode
141 | headers["x-ratelimit-reset"],
142 | (headers["Date"] as! String).httpDate.timeIntervalSince1970,
143 | route
| `- warning: reference to captured var 'route' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | )
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:173:15: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | deadline: DispatchTime.now() + .seconds(retryAfter)
172 | ) { [unowned self] in
173 | self.globalUnlock()
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 | }
175 |
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:183:13: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | deadline: DispatchTime.now() + .seconds(retryAfter)
182 | ) { [unowned self] in
183 | self.request(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 | endpoint,
185 | body: body,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:184:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | ) { [unowned self] in
183 | self.request(
184 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | body: body,
186 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:185:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | self.request(
184 | endpoint,
185 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | file: file,
187 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:189:21: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | authorization: authorization,
188 | rateLimited: rateLimited,
189 | then: completion
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
190 | )
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:198:13: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | deadline: DispatchTime.now() + .seconds(3)
197 | ) { [unowned self] in
198 | self.request(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
199 | endpoint,
200 | body: body,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:199:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | ) { [unowned self] in
198 | self.request(
199 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | body: body,
201 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:200:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 | self.request(
199 | endpoint,
200 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | file: file,
202 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:204:21: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
202 | authorization: authorization,
203 | rateLimited: rateLimited,
204 | then: completion
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
205 | )
206 | }
[45/51] Compiling Sword Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:130:9: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | if error != nil {
129 | #if !os(Linux)
130 | completion(nil, RequestError(error! as NSError))
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | #else
132 | completion(nil, RequestError(error as! NSError))
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:139:9: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 |
138 | if rateLimited {
139 | self.handleRateLimitHeaders(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | headers["x-ratelimit-limit"],
141 | headers["x-ratelimit-reset"],
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:184:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | ) { [unowned self] in
183 | self.request(
184 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | body: body,
186 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:185:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | self.request(
184 | endpoint,
185 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | file: file,
187 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:143:11: warning: reference to captured var 'route' in concurrently-executing code; this is an error in the Swift 6 language mode
141 | headers["x-ratelimit-reset"],
142 | (headers["Date"] as! String).httpDate.timeIntervalSince1970,
143 | route
| `- warning: reference to captured var 'route' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | )
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:173:15: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | deadline: DispatchTime.now() + .seconds(retryAfter)
172 | ) { [unowned self] in
173 | self.globalUnlock()
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 | }
175 |
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:183:13: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | deadline: DispatchTime.now() + .seconds(retryAfter)
182 | ) { [unowned self] in
183 | self.request(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 | endpoint,
185 | body: body,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:184:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | ) { [unowned self] in
183 | self.request(
184 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | body: body,
186 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:185:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | self.request(
184 | endpoint,
185 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | file: file,
187 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:189:21: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | authorization: authorization,
188 | rateLimited: rateLimited,
189 | then: completion
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
190 | )
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:198:13: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | deadline: DispatchTime.now() + .seconds(3)
197 | ) { [unowned self] in
198 | self.request(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
199 | endpoint,
200 | body: body,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:199:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | ) { [unowned self] in
198 | self.request(
199 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | body: body,
201 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:200:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 | self.request(
199 | endpoint,
200 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | file: file,
202 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:204:21: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
202 | authorization: authorization,
203 | rateLimited: rateLimited,
204 | then: completion
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
205 | )
206 | }
[46/51] Compiling Sword Command.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:130:9: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | if error != nil {
129 | #if !os(Linux)
130 | completion(nil, RequestError(error! as NSError))
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | #else
132 | completion(nil, RequestError(error as! NSError))
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:139:9: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 |
138 | if rateLimited {
139 | self.handleRateLimitHeaders(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | headers["x-ratelimit-limit"],
141 | headers["x-ratelimit-reset"],
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:184:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | ) { [unowned self] in
183 | self.request(
184 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | body: body,
186 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:185:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | self.request(
184 | endpoint,
185 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | file: file,
187 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:143:11: warning: reference to captured var 'route' in concurrently-executing code; this is an error in the Swift 6 language mode
141 | headers["x-ratelimit-reset"],
142 | (headers["Date"] as! String).httpDate.timeIntervalSince1970,
143 | route
| `- warning: reference to captured var 'route' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | )
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:173:15: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | deadline: DispatchTime.now() + .seconds(retryAfter)
172 | ) { [unowned self] in
173 | self.globalUnlock()
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 | }
175 |
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:183:13: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | deadline: DispatchTime.now() + .seconds(retryAfter)
182 | ) { [unowned self] in
183 | self.request(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 | endpoint,
185 | body: body,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:184:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | ) { [unowned self] in
183 | self.request(
184 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | body: body,
186 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:185:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | self.request(
184 | endpoint,
185 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | file: file,
187 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:189:21: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | authorization: authorization,
188 | rateLimited: rateLimited,
189 | then: completion
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
190 | )
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:198:13: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | deadline: DispatchTime.now() + .seconds(3)
197 | ) { [unowned self] in
198 | self.request(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
199 | endpoint,
200 | body: body,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:199:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | ) { [unowned self] in
198 | self.request(
199 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | body: body,
201 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:200:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 | self.request(
199 | endpoint,
200 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | file: file,
202 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:204:21: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
202 | authorization: authorization,
203 | rateLimited: rateLimited,
204 | then: completion
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
205 | )
206 | }
[47/51] Compiling Sword Permissions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:130:9: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | if error != nil {
129 | #if !os(Linux)
130 | completion(nil, RequestError(error! as NSError))
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | #else
132 | completion(nil, RequestError(error as! NSError))
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:139:9: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 |
138 | if rateLimited {
139 | self.handleRateLimitHeaders(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | headers["x-ratelimit-limit"],
141 | headers["x-ratelimit-reset"],
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:184:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | ) { [unowned self] in
183 | self.request(
184 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | body: body,
186 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:185:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | self.request(
184 | endpoint,
185 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | file: file,
187 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:143:11: warning: reference to captured var 'route' in concurrently-executing code; this is an error in the Swift 6 language mode
141 | headers["x-ratelimit-reset"],
142 | (headers["Date"] as! String).httpDate.timeIntervalSince1970,
143 | route
| `- warning: reference to captured var 'route' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | )
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:173:15: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | deadline: DispatchTime.now() + .seconds(retryAfter)
172 | ) { [unowned self] in
173 | self.globalUnlock()
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 | }
175 |
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:183:13: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | deadline: DispatchTime.now() + .seconds(retryAfter)
182 | ) { [unowned self] in
183 | self.request(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 | endpoint,
185 | body: body,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:184:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | ) { [unowned self] in
183 | self.request(
184 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | body: body,
186 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:185:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | self.request(
184 | endpoint,
185 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | file: file,
187 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:189:21: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | authorization: authorization,
188 | rateLimited: rateLimited,
189 | then: completion
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
190 | )
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:198:13: warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | deadline: DispatchTime.now() + .seconds(3)
197 | ) { [unowned self] in
198 | self.request(
| `- warning: capture of 'self' with non-sendable type 'Sword' in a `@Sendable` closure; this is an error in the Swift 6 language mode
199 | endpoint,
200 | body: body,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Sword.swift:13:12: note: class 'Sword' does not conform to the 'Sendable' protocol
11 |
12 | /// Main Class for Sword
13 | open class Sword: Eventable {
| `- note: class 'Sword' does not conform to the 'Sendable' protocol
14 |
15 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:199:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | ) { [unowned self] in
198 | self.request(
199 | endpoint,
| `- warning: capture of 'endpoint' with non-sendable type 'Endpoint' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | body: body,
201 | file: file,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Endpoints.swift:9:6: note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
7 | //
8 |
9 | enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
10 |
11 | case gateway
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:200:21: warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 | self.request(
199 | endpoint,
200 | body: body,
| `- warning: capture of 'body' with non-sendable type '[String : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | file: file,
202 | authorization: authorization,
/Users/admin/builder/spi-builder-workspace/Sources/Sword/Rest/Request.swift:204:21: warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
202 | authorization: authorization,
203 | rateLimited: rateLimited,
204 | then: completion
| |- warning: capture of 'completion' with non-sendable type '(Any?, RequestError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
205 | )
206 | }
[48/51] Compiling Sword Shield.swift
[49/51] Compiling Sword Sword.swift
[50/51] Compiling Sword AuditLog.swift
[51/51] Compiling Sword Channel.swift
Build complete! (25.19s)
Fetching https://github.com/Azoy/common-crypto-spm.git
Fetching https://github.com/Azoy/Starscream.git
Fetching https://github.com/Azoy/zlib-spm.git
[2/32] Fetching zlib-spm
[19/59] Fetching zlib-spm, common-crypto-spm
[44/2190] Fetching zlib-spm, common-crypto-spm, starscream
Fetched https://github.com/Azoy/zlib-spm.git from cache (1.24s)
Fetched https://github.com/Azoy/Starscream.git from cache (1.24s)
Computing version for https://github.com/Azoy/Starscream.git
Fetched https://github.com/Azoy/common-crypto-spm.git from cache (1.24s)
Computed https://github.com/Azoy/Starscream.git at 3.0.5 (0.70s)
Computing version for https://github.com/Azoy/common-crypto-spm.git
Computed https://github.com/Azoy/common-crypto-spm.git at 1.2.0 (0.68s)
Computing version for https://github.com/Azoy/zlib-spm.git
Computed https://github.com/Azoy/zlib-spm.git at 1.2.0 (0.66s)
Creating working copy for https://github.com/Azoy/Starscream.git
Working copy of https://github.com/Azoy/Starscream.git resolved at 3.0.5
Creating working copy for https://github.com/Azoy/zlib-spm.git
Working copy of https://github.com/Azoy/zlib-spm.git resolved at 1.2.0
Creating working copy for https://github.com/Azoy/common-crypto-spm.git
Working copy of https://github.com/Azoy/common-crypto-spm.git resolved at 1.2.0
warning: 'common-crypto-spm': ignoring declared target(s) 'SSCommonCrypto' in the system package
warning: 'zlib-spm': ignoring declared target(s) 'SSCZLib' in the system package
Build complete.
{
"dependencies" : [
{
"identity" : "starscream",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Azoy/Starscream.git"
}
],
"manifest_display_name" : "Sword",
"name" : "Sword",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Sword",
"targets" : [
"Sword"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Sword",
"module_type" : "SwiftTarget",
"name" : "Sword",
"path" : "Sources/Sword",
"product_dependencies" : [
"Starscream"
],
"product_memberships" : [
"Sword"
],
"sources" : [
"Gateway/EventHandler.swift",
"Gateway/Eventable.swift",
"Gateway/Gateway.swift",
"Gateway/GatewayHandler.swift",
"Gateway/Heartbeat.swift",
"Gateway/Payload.swift",
"Gateway/Shard.swift",
"Gateway/ShardManager.swift",
"Rest/EndpointInfo.swift",
"Rest/Endpoints.swift",
"Rest/MultipartBody.swift",
"Rest/RateLimit.swift",
"Rest/Request.swift",
"Shield/Command.swift",
"Shield/Permissions.swift",
"Shield/Shield.swift",
"Sword.swift",
"Types/AuditLog.swift",
"Types/Channel.swift",
"Types/DM.swift",
"Types/Emoji.swift",
"Types/GroupDM.swift",
"Types/Guild.swift",
"Types/GuildCategory.swift",
"Types/GuildText.swift",
"Types/GuildVoice.swift",
"Types/Invite.swift",
"Types/Member.swift",
"Types/Message.swift",
"Types/Options.swift",
"Types/Role.swift",
"Types/Snowflake.swift",
"Types/User.swift",
"Types/VoiceState.swift",
"Types/Webhook.swift",
"Utils/Bucket.swift",
"Utils/Enums.swift",
"Utils/Error.swift",
"Utils/Imageable.swift",
"Utils/JSON.swift",
"Utils/Log.swift",
"Utils/Updatable.swift",
"Utils/Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.