Build Information
Successful build of Macro, reference develop (33340a
), with Swift 6.0 for Linux on 18 Apr 2025 17:10:05 UTC.
Swift 6 data race errors: 26
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
182 | }
183 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:28: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 |
167 | @usableFromInline
168 | internal final class _QueueBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
169 | @usableFromInline let queue : DispatchQueue
170 | @usableFromInline let callback : EventHandler
:
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | }
183 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:27: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | }
208 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:36: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure
186 |
187 | @usableFromInline
188 | internal final class _EventLoopBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
189 | @usableFromInline let eventLoop : EventLoop
190 | @usableFromInline let callback : EventHandler
:
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure
207 | }
208 | }
[318/326] Compiling MacroCore ErrorEmitter.swift
/host/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:112:14: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
96 | */
97 | @frozen
98 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
99 |
100 | @usableFromInline
:
110 | public extension EnvironmentValues {
111 |
112 | static let empty = EnvironmentValues()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 |
114 | @inlinable
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:36:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public var allocator : ByteBufferAllocator
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:19: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' 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'
182 | }
183 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:28: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 |
167 | @usableFromInline
168 | internal final class _QueueBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
169 | @usableFromInline let queue : DispatchQueue
170 | @usableFromInline let callback : EventHandler
:
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | }
183 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:27: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | }
208 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:36: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure
186 |
187 | @usableFromInline
188 | internal final class _EventLoopBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
189 | @usableFromInline let eventLoop : EventLoop
190 | @usableFromInline let callback : EventHandler
:
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure
207 | }
208 | }
[319/326] Compiling MacroCore EventListenerSet.swift
/host/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:112:14: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
96 | */
97 | @frozen
98 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
99 |
100 | @usableFromInline
:
110 | public extension EnvironmentValues {
111 |
112 | static let empty = EnvironmentValues()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 |
114 | @inlinable
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:36:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public var allocator : ByteBufferAllocator
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:19: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' 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'
182 | }
183 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:28: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 |
167 | @usableFromInline
168 | internal final class _QueueBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
169 | @usableFromInline let queue : DispatchQueue
170 | @usableFromInline let callback : EventHandler
:
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | }
183 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:27: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | }
208 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:36: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure
186 |
187 | @usableFromInline
188 | internal final class _EventLoopBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
189 | @usableFromInline let eventLoop : EventLoop
190 | @usableFromInline let callback : EventHandler
:
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure
207 | }
208 | }
[320/326] Compiling MacroCore Buffer.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:36:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public var allocator : ByteBufferAllocator
/host/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'partialSuffixMatch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
[321/326] Compiling MacroCore BufferData.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:36:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public var allocator : ByteBufferAllocator
/host/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'partialSuffixMatch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
[322/326] Compiling MacroCore BufferDeprecations.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:36:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public var allocator : ByteBufferAllocator
/host/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'partialSuffixMatch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
[323/326] Compiling MacroCore BufferHexEncoding.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:36:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public var allocator : ByteBufferAllocator
/host/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'partialSuffixMatch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
[324/326] Compiling MacroCore BufferStrings.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:36:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public var allocator : ByteBufferAllocator
/host/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'partialSuffixMatch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
[325/326] Compiling MacroCore CollectionUtils.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:36:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public var allocator : ByteBufferAllocator
/host/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'partialSuffixMatch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
[326/326] Emitting module MacroCore
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:36:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MacroCore' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public var allocator : ByteBufferAllocator
/host/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'partialSuffixMatch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
/host/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:112:14: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
96 | */
97 | @frozen
98 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
99 |
100 | @usableFromInline
:
110 | public extension EnvironmentValues {
111 |
112 | static let empty = EnvironmentValues()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 |
114 | @inlinable
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:19: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' 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'
182 | }
183 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:28: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 |
167 | @usableFromInline
168 | internal final class _QueueBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
169 | @usableFromInline let queue : DispatchQueue
170 | @usableFromInline let callback : EventHandler
:
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 | }
183 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:27: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | }
208 | }
/host/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:36: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure
186 |
187 | @usableFromInline
188 | internal final class _EventLoopBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
189 | @usableFromInline let eventLoop : EventLoop
190 | @usableFromInline let callback : EventHandler
:
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure
207 | }
208 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:233:17: warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
231 | }
232 |
233 | fileprivate var wasInExit = false
| |- warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'wasInExit' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'wasInExit' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
234 |
235 | public func disableAtExitHandler() {
/host/spi-builder-workspace/Sources/MacroCore/NextTick.swift:28:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a `@Sendable` closure
26 | ?? module.eventLoopGroup.next()
27 | loop.execute {
28 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
29 | module.release()
30 | }
/host/spi-builder-workspace/Sources/MacroCore/NextTick.swift:29:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
27 | loop.execute {
28 | execute()
29 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
30 | }
31 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/MacroCore/NextTick.swift:51:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a `@Sendable` closure
49 |
50 | loop.scheduleTask(in: .milliseconds(Int64(milliseconds))) {
51 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | module.release()
53 | }
<unknown>:0: warning: implicit capture of 'self' requires that 'MacroCore' conforms to `Sendable`; this is an error in the Swift 6 language mode
/host/spi-builder-workspace/Sources/MacroCore/NextTick.swift:52:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
50 | loop.scheduleTask(in: .milliseconds(Int64(milliseconds))) {
51 | execute()
52 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
53 | }
54 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| |- note: class 'MacroCore' does not conform to the 'Sendable' protocol
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/MacroCore/Process/Warnings.swift:13:22: warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public extension process { // Warnings
12 |
13 | private static var _warningListeners = EventListenerSet<Warning>()
| |- warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_warningListeners' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_warningListeners' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private static let _warningListenersLock = NIOConcurrencyHelpers.NIOLock()
15 |
/host/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:155:14: warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Original' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
153 | {
154 |
155 | public let original : Original
| `- warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
156 | public let last : Last
157 | public let error : Swift.Error
/host/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:156:14: warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Last' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
:
154 |
155 | public let original : Original
156 | public let last : Last
| `- warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
157 | public let error : Swift.Error
158 |
[328/355] Compiling fs AsyncWrapper.swift
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:39:15: warning: capture of 'f' with non-sendable type '(ArgT) throws -> Void' in a `@Sendable` closure
37 | if case shouldRun = NIOThreadPool.WorkItemState.active {
38 | do {
39 | try f(arg)
| |- warning: capture of 'f' with non-sendable type '(ArgT) throws -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
40 | returnError = nil
41 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:39:17: warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
25 |
26 | @inlinable static
27 | func _evalAsync<ArgT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'ArgT' conform to the 'Sendable' protocol
28 | _ f : @escaping ( ArgT ) throws -> Void,
29 | _ arg : ArgT,
:
37 | if case shouldRun = NIOThreadPool.WorkItemState.active {
38 | do {
39 | try f(arg)
| `- warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
40 | returnError = nil
41 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:51:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
49 |
50 | loop.execute {
51 | yield(returnError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | module.release()
53 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:52:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
50 | loop.execute {
51 | yield(returnError)
52 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
53 | }
54 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
12 | import class NIO.NIOThreadPool
13 | import enum NIO.ChannelError
14 | import class MacroCore.MacroCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
15 |
16 | extension FileSystemModule {
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:51:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
49 |
50 | loop.execute {
51 | yield(returnError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | module.release()
53 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:52:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
50 | loop.execute {
51 | yield(returnError)
52 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
53 | }
54 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:71:24: warning: capture of 'f' with non-sendable type '(ArgT) throws -> RT' in a `@Sendable` closure
69 | if case shouldRun = NIOThreadPool.WorkItemState.active {
70 | do {
71 | result = try f(arg)
| |- warning: capture of 'f' with non-sendable type '(ArgT) throws -> RT' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | returnError = nil
73 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:71:26: warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
56 |
57 | @inlinable static
58 | func _evalAsync<ArgT, RT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'ArgT' conform to the 'Sendable' protocol
59 | _ f : @escaping ( ArgT ) throws -> RT,
60 | _ arg : ArgT,
:
69 | if case shouldRun = NIOThreadPool.WorkItemState.active {
70 | do {
71 | result = try f(arg)
| `- warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
72 | returnError = nil
73 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:9: warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
83 |
84 | loop.execute {
85 | yield(returnError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
86 | module.release()
87 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:86:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
84 | loop.execute {
85 | yield(returnError, result)
86 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
87 | }
88 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:9: warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
83 |
84 | loop.execute {
85 | yield(returnError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
86 | module.release()
87 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:28: warning: capture of 'result' with non-sendable type 'RT?' in a `@Sendable` closure
56 |
57 | @inlinable static
58 | func _evalAsync<ArgT, RT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'RT' conform to the 'Sendable' protocol
59 | _ f : @escaping ( ArgT ) throws -> RT,
60 | _ arg : ArgT,
:
83 |
84 | loop.execute {
85 | yield(returnError, result)
| `- warning: capture of 'result' with non-sendable type 'RT?' in a `@Sendable` closure
86 | module.release()
87 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:86:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
84 | loop.execute {
85 | yield(returnError, result)
86 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
87 | }
88 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
[329/355] Compiling fs ResultExtensions.swift
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:39:15: warning: capture of 'f' with non-sendable type '(ArgT) throws -> Void' in a `@Sendable` closure
37 | if case shouldRun = NIOThreadPool.WorkItemState.active {
38 | do {
39 | try f(arg)
| |- warning: capture of 'f' with non-sendable type '(ArgT) throws -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
40 | returnError = nil
41 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:39:17: warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
25 |
26 | @inlinable static
27 | func _evalAsync<ArgT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'ArgT' conform to the 'Sendable' protocol
28 | _ f : @escaping ( ArgT ) throws -> Void,
29 | _ arg : ArgT,
:
37 | if case shouldRun = NIOThreadPool.WorkItemState.active {
38 | do {
39 | try f(arg)
| `- warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
40 | returnError = nil
41 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:51:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
49 |
50 | loop.execute {
51 | yield(returnError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | module.release()
53 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:52:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
50 | loop.execute {
51 | yield(returnError)
52 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
53 | }
54 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
12 | import class NIO.NIOThreadPool
13 | import enum NIO.ChannelError
14 | import class MacroCore.MacroCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
15 |
16 | extension FileSystemModule {
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:51:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
49 |
50 | loop.execute {
51 | yield(returnError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | module.release()
53 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:52:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
50 | loop.execute {
51 | yield(returnError)
52 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
53 | }
54 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:71:24: warning: capture of 'f' with non-sendable type '(ArgT) throws -> RT' in a `@Sendable` closure
69 | if case shouldRun = NIOThreadPool.WorkItemState.active {
70 | do {
71 | result = try f(arg)
| |- warning: capture of 'f' with non-sendable type '(ArgT) throws -> RT' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | returnError = nil
73 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:71:26: warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
56 |
57 | @inlinable static
58 | func _evalAsync<ArgT, RT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'ArgT' conform to the 'Sendable' protocol
59 | _ f : @escaping ( ArgT ) throws -> RT,
60 | _ arg : ArgT,
:
69 | if case shouldRun = NIOThreadPool.WorkItemState.active {
70 | do {
71 | result = try f(arg)
| `- warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
72 | returnError = nil
73 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:9: warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
83 |
84 | loop.execute {
85 | yield(returnError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
86 | module.release()
87 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:86:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
84 | loop.execute {
85 | yield(returnError, result)
86 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
87 | }
88 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:9: warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
83 |
84 | loop.execute {
85 | yield(returnError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
86 | module.release()
87 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:28: warning: capture of 'result' with non-sendable type 'RT?' in a `@Sendable` closure
56 |
57 | @inlinable static
58 | func _evalAsync<ArgT, RT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'RT' conform to the 'Sendable' protocol
59 | _ f : @escaping ( ArgT ) throws -> RT,
60 | _ arg : ArgT,
:
83 |
84 | loop.execute {
85 | yield(returnError, result)
| `- warning: capture of 'result' with non-sendable type 'RT?' in a `@Sendable` closure
86 | module.release()
87 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:86:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
84 | loop.execute {
85 | yield(returnError, result)
86 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
87 | }
88 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
[330/356] Compiling fs StatStruct.swift
[331/356] Compiling http OutgoingMessage.swift
[332/357] Compiling http http.swift
[333/357] Compiling http Globals.swift
/host/spi-builder-workspace/Sources/http/Globals.swift:17:14: warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | * `HTTPMethod` also supports a custom case.
16 | */
17 | static var METHODS : [ String ] = [
| |- warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'METHODS' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'METHODS' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | "GET",
19 | "PUT",
/host/spi-builder-workspace/Sources/http/Globals.swift:58:14: warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | * `HTTPResponseStatus` also supports a custom case.
57 | */
58 | static var STATUS_CASES : [ HTTPResponseStatus ] = [
| |- warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CASES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'STATUS_CASES' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | .`continue`,
60 | .switchingProtocols,
/host/spi-builder-workspace/Sources/http/Globals.swift:124:14: warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | * A non-exhaustive collection of known HTTP response status codes.
123 | */
124 | static var STATUS_CODES = [ Int : String ](
| |- warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CODES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'STATUS_CODES' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | uniqueKeysWithValues: STATUS_CASES.map { status in
126 | ( Int(status.code), status.reasonPhrase )
[334/357] Compiling http IncomingMessage.swift
/host/spi-builder-workspace/Sources/http/Globals.swift:17:14: warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | * `HTTPMethod` also supports a custom case.
16 | */
17 | static var METHODS : [ String ] = [
| |- warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'METHODS' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'METHODS' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | "GET",
19 | "PUT",
/host/spi-builder-workspace/Sources/http/Globals.swift:58:14: warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | * `HTTPResponseStatus` also supports a custom case.
57 | */
58 | static var STATUS_CASES : [ HTTPResponseStatus ] = [
| |- warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CASES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'STATUS_CASES' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | .`continue`,
60 | .switchingProtocols,
/host/spi-builder-workspace/Sources/http/Globals.swift:124:14: warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | * A non-exhaustive collection of known HTTP response status codes.
123 | */
124 | static var STATUS_CODES = [ Int : String ](
| |- warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CODES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'STATUS_CODES' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | uniqueKeysWithValues: STATUS_CASES.map { status in
126 | ( Int(status.code), status.reasonPhrase )
[335/357] Compiling fs fs.swift
[336/357] Compiling http QueryString.swift
/host/spi-builder-workspace/Sources/fs/Promise.swift:44:15: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
42 |
43 | FileSystemModule.threadPool.submit { shouldRun in
44 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
45 |
46 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
12 | import class NIO.NIOThreadPool
13 | import enum NIO.ChannelError
14 | import class MacroCore.MacroCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
15 | import enum MacroCore.CharsetConversionError
16 | import struct MacroCore.Buffer
/host/spi-builder-workspace/Sources/fs/Promise.swift:44:15: warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
42 |
43 | FileSystemModule.threadPool.submit { shouldRun in
44 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
45 |
46 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:71:15: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
69 |
70 | FileSystemModule.threadPool.submit { shouldRun in
71 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
72 |
73 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:71:15: warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
69 |
70 | FileSystemModule.threadPool.submit { shouldRun in
71 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
72 |
73 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:147:15: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
145 |
146 | FileSystemModule.threadPool.submit { shouldRun in
147 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
148 |
149 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:147:15: warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
145 |
146 | FileSystemModule.threadPool.submit { shouldRun in
147 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
148 |
149 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:177:15: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
175 |
176 | FileSystemModule.threadPool.submit { shouldRun in
177 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
178 |
179 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:177:15: warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
175 |
176 | FileSystemModule.threadPool.submit { shouldRun in
177 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
178 |
179 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:28:21: warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | open class FileReadStream: ReadableByteStream, FileStream {
27 |
28 | public static var defaultReadableHighWaterMark = 64 * 1024
| |- warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultReadableHighWaterMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultReadableHighWaterMark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | public let eventLoop : EventLoop
/host/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:110:15: warning: capture of 'self' with non-sendable type 'FileReadStream' in a `@Sendable` closure
24 | }
25 |
26 | open class FileReadStream: ReadableByteStream, FileStream {
| `- note: class 'FileReadStream' does not conform to the 'Sendable' protocol
27 |
28 | public static var defaultReadableHighWaterMark = 64 * 1024
:
108 | case .success(let buffer):
109 | if buffer.readableBytes == 0 {
110 | self.handleEOF()
| `- warning: capture of 'self' with non-sendable type 'FileReadStream' in a `@Sendable` closure
111 | }
112 | else {
/host/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:126:25: warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
124 | assert(pending)
125 | fileIO.openFile(path: path, mode: .read, eventLoop: eventLoop)
126 | .whenComplete(_handleOpenResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
127 | }
128 | func _handleOpenResult(_ result: Result<NIOFileHandle, Swift.Error>) {
/host/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:125:12: warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
123 | assert(fileHandle == nil)
124 | assert(pending)
125 | fileIO.openFile(path: path, mode: .read, eventLoop: eventLoop)
| `- warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
126 | .whenComplete(_handleOpenResult)
127 | }
[337/357] Compiling http Server.swift
/host/spi-builder-workspace/Sources/fs/Promise.swift:44:15: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
42 |
43 | FileSystemModule.threadPool.submit { shouldRun in
44 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
45 |
46 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
12 | import class NIO.NIOThreadPool
13 | import enum NIO.ChannelError
14 | import class MacroCore.MacroCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
15 | import enum MacroCore.CharsetConversionError
16 | import struct MacroCore.Buffer
/host/spi-builder-workspace/Sources/fs/Promise.swift:44:15: warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
42 |
43 | FileSystemModule.threadPool.submit { shouldRun in
44 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
45 |
46 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:71:15: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
69 |
70 | FileSystemModule.threadPool.submit { shouldRun in
71 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
72 |
73 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:71:15: warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
69 |
70 | FileSystemModule.threadPool.submit { shouldRun in
71 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
72 |
73 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:147:15: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
145 |
146 | FileSystemModule.threadPool.submit { shouldRun in
147 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
148 |
149 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:147:15: warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
145 |
146 | FileSystemModule.threadPool.submit { shouldRun in
147 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
148 |
149 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:177:15: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
175 |
176 | FileSystemModule.threadPool.submit { shouldRun in
177 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
178 |
179 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:177:15: warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
175 |
176 | FileSystemModule.threadPool.submit { shouldRun in
177 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
178 |
179 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:28:21: warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | open class FileReadStream: ReadableByteStream, FileStream {
27 |
28 | public static var defaultReadableHighWaterMark = 64 * 1024
| |- warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultReadableHighWaterMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultReadableHighWaterMark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | public let eventLoop : EventLoop
/host/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:110:15: warning: capture of 'self' with non-sendable type 'FileReadStream' in a `@Sendable` closure
24 | }
25 |
26 | open class FileReadStream: ReadableByteStream, FileStream {
| `- note: class 'FileReadStream' does not conform to the 'Sendable' protocol
27 |
28 | public static var defaultReadableHighWaterMark = 64 * 1024
:
108 | case .success(let buffer):
109 | if buffer.readableBytes == 0 {
110 | self.handleEOF()
| `- warning: capture of 'self' with non-sendable type 'FileReadStream' in a `@Sendable` closure
111 | }
112 | else {
/host/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:126:25: warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
124 | assert(pending)
125 | fileIO.openFile(path: path, mode: .read, eventLoop: eventLoop)
126 | .whenComplete(_handleOpenResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
127 | }
128 | func _handleOpenResult(_ result: Result<NIOFileHandle, Swift.Error>) {
/host/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:125:12: warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
123 | assert(fileHandle == nil)
124 | assert(pending)
125 | fileIO.openFile(path: path, mode: .read, eventLoop: eventLoop)
| `- warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
126 | .whenComplete(_handleOpenResult)
127 | }
[338/357] Compiling http URLRequestInit.swift
/host/spi-builder-workspace/Sources/fs/PosixWrappers.swift:65:19: warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
63 | @inlinable
64 | public func statSync(_ path: String) throws -> xsys.stat_struct {
65 | var info = xsys.stat_struct()
| |- warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'SwiftGlibc' will be added implicitly
66 | let rc = xsys.stat(path, &info)
67 | if rc != 0 { throw POSIXErrorCode(rawValue: xsys.errno)! }
/host/spi-builder-workspace/Sources/fs/PosixWrappers.swift:72:19: warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
70 | @inlinable
71 | public func lstatSync(_ path: String) throws -> xsys.stat_struct {
72 | var info = xsys.stat_struct()
| |- warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'SwiftGlibc' will be added implicitly
73 | let rc = xsys.lstat(path, &info)
74 | if rc != 0 { throw POSIXErrorCode(rawValue: xsys.errno)! }
[339/357] Compiling http URLSessionAgent.swift
/host/spi-builder-workspace/Sources/fs/PosixWrappers.swift:65:19: warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
63 | @inlinable
64 | public func statSync(_ path: String) throws -> xsys.stat_struct {
65 | var info = xsys.stat_struct()
| |- warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'SwiftGlibc' will be added implicitly
66 | let rc = xsys.stat(path, &info)
67 | if rc != 0 { throw POSIXErrorCode(rawValue: xsys.errno)! }
/host/spi-builder-workspace/Sources/fs/PosixWrappers.swift:72:19: warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
70 | @inlinable
71 | public func lstatSync(_ path: String) throws -> xsys.stat_struct {
72 | var info = xsys.stat_struct()
| |- warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'SwiftGlibc' will be added implicitly
73 | let rc = xsys.lstat(path, &info)
74 | if rc != 0 { throw POSIXErrorCode(rawValue: xsys.errno)! }
[340/357] Compiling http URLSessionClientRequest.swift
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:33:17: warning: var 'retainedStreams' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate let retainLock = NIOLock()
33 | fileprivate var retainedStreams = [ ObjectIdentifier : FileWriteStream ]()
| |- warning: var 'retainedStreams' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainedStreams' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainedStreams' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | open class FileWriteStream: WritableByteStream, FileStream,
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:38:21: warning: static property 'defaultWritableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | WritableStreamType, WritableByteStreamType
37 | {
38 | public static var defaultWritableHighWaterMark = 64 * 1024
| |- warning: static property 'defaultWritableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultWritableHighWaterMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultWritableHighWaterMark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | enum StreamState: Equatable {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:176:11: warning: capture of 'self' with non-sendable type 'FileWriteStream' in a `@Sendable` closure
33 | fileprivate var retainedStreams = [ ObjectIdentifier : FileWriteStream ]()
34 |
35 | open class FileWriteStream: WritableByteStream, FileStream,
| `- note: class 'FileWriteStream' does not conform to the 'Sendable' protocol
36 | WritableStreamType, WritableByteStreamType
37 | {
:
174 | eventLoop: eventLoop)
175 | .whenComplete { result in
176 | self.pendingWrites -= count
| `- warning: capture of 'self' with non-sendable type 'FileWriteStream' in a `@Sendable` closure
177 | assert(self.pendingWrites >= 0)
178 |
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:183:11: warning: capture of 'whenDone' with non-sendable type '() -> Void' in a `@Sendable` closure
181 | }
182 |
183 | whenDone()
| |- warning: capture of 'whenDone' with non-sendable type '() -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
184 |
185 | if self.pendingWrites < 1 {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:177:18: warning: implicit capture of 'self' requires that 'FileWriteStream' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | fileprivate var retainedStreams = [ ObjectIdentifier : FileWriteStream ]()
34 |
35 | open class FileWriteStream: WritableByteStream, FileStream,
| `- note: class 'FileWriteStream' does not conform to the 'Sendable' protocol
36 | WritableStreamType, WritableByteStreamType
37 | {
:
175 | .whenComplete { result in
176 | self.pendingWrites -= count
177 | assert(self.pendingWrites >= 0)
| `- warning: implicit capture of 'self' requires that 'FileWriteStream' conforms to `Sendable`; this is an error in the Swift 6 language mode
178 |
179 | if case .failure(let error) = result {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:237:25: warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
235 | fileIO.openFile(path: path, mode: .write, flags: flags,
236 | eventLoop: eventLoop)
237 | .whenComplete(_handleOpenResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
238 | }
239 | func _handleOpenResult(_ result: Result<NIOFileHandle, Swift.Error>) {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:235:12: warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
233 | retainIfNecessary()
234 |
235 | fileIO.openFile(path: path, mode: .write, flags: flags,
| `- warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
236 | eventLoop: eventLoop)
237 | .whenComplete(_handleOpenResult)
[341/357] Compiling http BasicAuth.swift
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:33:17: warning: var 'retainedStreams' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate let retainLock = NIOLock()
33 | fileprivate var retainedStreams = [ ObjectIdentifier : FileWriteStream ]()
| |- warning: var 'retainedStreams' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainedStreams' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainedStreams' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | open class FileWriteStream: WritableByteStream, FileStream,
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:38:21: warning: static property 'defaultWritableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | WritableStreamType, WritableByteStreamType
37 | {
38 | public static var defaultWritableHighWaterMark = 64 * 1024
| |- warning: static property 'defaultWritableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultWritableHighWaterMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultWritableHighWaterMark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | enum StreamState: Equatable {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:176:11: warning: capture of 'self' with non-sendable type 'FileWriteStream' in a `@Sendable` closure
33 | fileprivate var retainedStreams = [ ObjectIdentifier : FileWriteStream ]()
34 |
35 | open class FileWriteStream: WritableByteStream, FileStream,
| `- note: class 'FileWriteStream' does not conform to the 'Sendable' protocol
36 | WritableStreamType, WritableByteStreamType
37 | {
:
174 | eventLoop: eventLoop)
175 | .whenComplete { result in
176 | self.pendingWrites -= count
| `- warning: capture of 'self' with non-sendable type 'FileWriteStream' in a `@Sendable` closure
177 | assert(self.pendingWrites >= 0)
178 |
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:183:11: warning: capture of 'whenDone' with non-sendable type '() -> Void' in a `@Sendable` closure
181 | }
182 |
183 | whenDone()
| |- warning: capture of 'whenDone' with non-sendable type '() -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
184 |
185 | if self.pendingWrites < 1 {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:177:18: warning: implicit capture of 'self' requires that 'FileWriteStream' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | fileprivate var retainedStreams = [ ObjectIdentifier : FileWriteStream ]()
34 |
35 | open class FileWriteStream: WritableByteStream, FileStream,
| `- note: class 'FileWriteStream' does not conform to the 'Sendable' protocol
36 | WritableStreamType, WritableByteStreamType
37 | {
:
175 | .whenComplete { result in
176 | self.pendingWrites -= count
177 | assert(self.pendingWrites >= 0)
| `- warning: implicit capture of 'self' requires that 'FileWriteStream' conforms to `Sendable`; this is an error in the Swift 6 language mode
178 |
179 | if case .failure(let error) = result {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:237:25: warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
235 | fileIO.openFile(path: path, mode: .write, flags: flags,
236 | eventLoop: eventLoop)
237 | .whenComplete(_handleOpenResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
238 | }
239 | func _handleOpenResult(_ result: Result<NIOFileHandle, Swift.Error>) {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:235:12: warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
233 | retainIfNecessary()
234 |
235 | fileIO.openFile(path: path, mode: .write, flags: flags,
| `- warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
236 | eventLoop: eventLoop)
237 | .whenComplete(_handleOpenResult)
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:96:27: warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
94 | if let channel = socket {
95 | channel.writeAndFlush(HTTPServerResponsePart.head(part))
96 | .whenFailure(handleError)
| `- warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
97 | }
98 | else {
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:151:18: warning: capture of 'self' with non-sendable type 'ServerResponse' in a `@Sendable` closure
42 | * ClientRequest
43 | */
44 | open class ServerResponse: OutgoingMessage, CustomStringConvertible {
| `- note: class 'ServerResponse' does not conform to the 'Sendable' protocol
45 |
46 | public var version = HTTPVersion(major: 1, minor: 1)
:
149 | .whenComplete { result in
150 | if case .failure(let error) = result {
151 | self.handleError(error)
| `- warning: capture of 'self' with non-sendable type 'ServerResponse' in a `@Sendable` closure
152 | }
153 | self.state = .finished
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:234:25: warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
232 | let head = HTTPResponseHead(version: version, status: .continue)
233 | channel.writeAndFlush(HTTPServerResponsePart.head(head))
234 | .whenFailure(handleError)
| `- warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
235 | }
236 |
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:269:16: warning: capture of 'self' with non-sendable type 'ServerResponse' in a `@Sendable` closure
42 | * ClientRequest
43 | */
44 | open class ServerResponse: OutgoingMessage, CustomStringConvertible {
| `- note: class 'ServerResponse' does not conform to the 'Sendable' protocol
45 |
46 | public var version = HTTPVersion(major: 1, minor: 1)
:
267 | .whenComplete { result in
268 | if case .failure(let error) = result {
269 | self.handleError(error)
| `- warning: capture of 'self' with non-sendable type 'ServerResponse' in a `@Sendable` closure
270 | whenDone(error)
271 | }
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:270:16: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
268 | if case .failure(let error) = result {
269 | self.handleError(error)
270 | whenDone(error)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
271 | }
272 | else {
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:96:27: warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
94 | if let channel = socket {
95 | channel.writeAndFlush(HTTPServerResponsePart.head(part))
96 | .whenFailure(handleError)
| `- warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
97 | }
98 | else {
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:151:18: warning: capture of 'self' with non-sendable type 'ServerResponse' in a `@Sendable` closure
42 | * ClientRequest
43 | */
44 | open class ServerResponse: OutgoingMessage, CustomStringConvertible {
| `- note: class 'ServerResponse' does not conform to the 'Sendable' protocol
45 |
46 | public var version = HTTPVersion(major: 1, minor: 1)
:
149 | .whenComplete { result in
150 | if case .failure(let error) = result {
151 | self.handleError(error)
| `- warning: capture of 'self' with non-sendable type 'ServerResponse' in a `@Sendable` closure
152 | }
153 | self.state = .finished
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:234:25: warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
232 | let head = HTTPResponseHead(version: version, status: .continue)
233 | channel.writeAndFlush(HTTPServerResponsePart.head(head))
234 | .whenFailure(handleError)
| `- warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
235 | }
236 |
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:269:16: warning: capture of 'self' with non-sendable type 'ServerResponse' in a `@Sendable` closure
42 | * ClientRequest
43 | */
44 | open class ServerResponse: OutgoingMessage, CustomStringConvertible {
| `- note: class 'ServerResponse' does not conform to the 'Sendable' protocol
45 |
46 | public var version = HTTPVersion(major: 1, minor: 1)
:
267 | .whenComplete { result in
268 | if case .failure(let error) = result {
269 | self.handleError(error)
| `- warning: capture of 'self' with non-sendable type 'ServerResponse' in a `@Sendable` closure
270 | whenDone(error)
271 | }
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:270:16: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
268 | if case .failure(let error) = result {
269 | self.handleError(error)
270 | whenDone(error)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
271 | }
272 | else {
[346/357] Compiling http Agent.swift
/host/spi-builder-workspace/Sources/fs/File.swift:66:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a `@Sendable` closure
64 |
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | module.release()
68 | }
/host/spi-builder-workspace/Sources/fs/File.swift:67:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
67 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
68 | }
69 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/File.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
11 | import class NIO.NIOThreadPool
12 | import enum NIO.ChannelError
13 | import class MacroCore.MacroCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
14 | import enum MacroCore.process
15 | import enum MacroCore.CharsetConversionError
/host/spi-builder-workspace/Sources/fs/File.swift:66:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a `@Sendable` closure
64 |
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | module.release()
68 | }
/host/spi-builder-workspace/Sources/fs/File.swift:67:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
67 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
68 | }
69 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/File.swift:114:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a `@Sendable` closure
112 |
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | module.release()
116 | }
/host/spi-builder-workspace/Sources/fs/File.swift:115:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
115 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
116 | }
117 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/File.swift:114:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a `@Sendable` closure
112 |
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | module.release()
116 | }
/host/spi-builder-workspace/Sources/fs/File.swift:115:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
115 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
116 | }
117 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
199 | loop.execute {
200 | whenDone(yieldError)
201 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
202 | }
203 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
199 | loop.execute {
200 | whenDone(yieldError)
201 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
202 | }
203 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:91:9: warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a `@Sendable` closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | module.release()
93 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:92:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
90 | loop.execute {
91 | yield(resultError, result)
92 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
93 | }
94 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
11 | import class NIO.NIOThreadPool
12 | import enum NIO.ChannelError
13 | import class MacroCore.MacroCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
14 | import struct Foundation.Data
15 | import struct Foundation.URL
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:91:9: warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a `@Sendable` closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | module.release()
93 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:91:28: warning: capture of 'result' with non-sendable type 'Any' in a `@Sendable` closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| `- warning: capture of 'result' with non-sendable type 'Any' in a `@Sendable` closure
92 | module.release()
93 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:92:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
90 | loop.execute {
91 | yield(resultError, result)
92 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
93 | }
94 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:162:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a `@Sendable` closure
160 |
161 | loop.execute {
162 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
163 | module.release()
164 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:163:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
161 | loop.execute {
162 | yield(resultError, result)
163 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
164 | }
165 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:162:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a `@Sendable` closure
160 |
161 | loop.execute {
162 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
163 | module.release()
164 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:162:28: warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure
126 | * error).
127 | */
128 | static func readFile<T>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
129 | _ path : String,
130 | as type : T.Type,
:
160 |
161 | loop.execute {
162 | yield(resultError, result)
| `- warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure
163 | module.release()
164 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:163:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
161 | loop.execute {
162 | yield(resultError, result)
163 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
164 | }
165 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:210:65: warning: capture of 'json' with non-sendable type 'Any' in a `@Sendable` closure
208 | if case shouldRun = NIOThreadPool.WorkItemState.active {
209 | do {
210 | let data = try JSONSerialization.data(withJSONObject: json,
| `- warning: capture of 'json' with non-sendable type 'Any' in a `@Sendable` closure
211 | options: options)
212 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:224:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
222 |
223 | loop.execute {
224 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | module.release()
226 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:225:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
223 | loop.execute {
224 | yield(resultError)
225 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
226 | }
227 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:224:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
222 |
223 | loop.execute {
224 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | module.release()
226 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:225:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
223 | loop.execute {
224 | yield(resultError)
225 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
226 | }
227 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:272:47: warning: capture of 'json' with non-sendable type 'T' in a `@Sendable` closure
254 | * if one occurred, or nil.
255 | */
256 | static func writeFile<T>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
257 | _ path : String,
258 | _ json : T,
:
270 | if case shouldRun = NIOThreadPool.WorkItemState.active {
271 | do {
272 | let data = try makeEncoder().encode(json)
| `- warning: capture of 'json' with non-sendable type 'T' in a `@Sendable` closure
273 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
274 | resultError = nil
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:285:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
283 |
284 | loop.execute {
285 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
286 | module.release()
287 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:286:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
284 | loop.execute {
285 | yield(resultError)
286 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
287 | }
288 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:285:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
283 |
284 | loop.execute {
285 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
286 | module.release()
287 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:286:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
284 | loop.execute {
285 | yield(resultError)
286 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
287 | }
288 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
[347/357] Compiling http ClientRequest.swift
/host/spi-builder-workspace/Sources/fs/File.swift:66:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a `@Sendable` closure
64 |
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | module.release()
68 | }
/host/spi-builder-workspace/Sources/fs/File.swift:67:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
67 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
68 | }
69 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/File.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
11 | import class NIO.NIOThreadPool
12 | import enum NIO.ChannelError
13 | import class MacroCore.MacroCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
14 | import enum MacroCore.process
15 | import enum MacroCore.CharsetConversionError
/host/spi-builder-workspace/Sources/fs/File.swift:66:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a `@Sendable` closure
64 |
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | module.release()
68 | }
/host/spi-builder-workspace/Sources/fs/File.swift:67:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
67 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
68 | }
69 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/File.swift:114:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a `@Sendable` closure
112 |
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | module.release()
116 | }
/host/spi-builder-workspace/Sources/fs/File.swift:115:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
115 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
116 | }
117 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/File.swift:114:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a `@Sendable` closure
112 |
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | module.release()
116 | }
/host/spi-builder-workspace/Sources/fs/File.swift:115:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
115 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
116 | }
117 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
199 | loop.execute {
200 | whenDone(yieldError)
201 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
202 | }
203 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
199 | loop.execute {
200 | whenDone(yieldError)
201 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
202 | }
203 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:91:9: warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a `@Sendable` closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | module.release()
93 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:92:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
90 | loop.execute {
91 | yield(resultError, result)
92 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
93 | }
94 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
11 | import class NIO.NIOThreadPool
12 | import enum NIO.ChannelError
13 | import class MacroCore.MacroCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
14 | import struct Foundation.Data
15 | import struct Foundation.URL
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:91:9: warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a `@Sendable` closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | module.release()
93 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:91:28: warning: capture of 'result' with non-sendable type 'Any' in a `@Sendable` closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| `- warning: capture of 'result' with non-sendable type 'Any' in a `@Sendable` closure
92 | module.release()
93 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:92:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
90 | loop.execute {
91 | yield(resultError, result)
92 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
93 | }
94 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:162:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a `@Sendable` closure
160 |
161 | loop.execute {
162 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
163 | module.release()
164 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:163:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
161 | loop.execute {
162 | yield(resultError, result)
163 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
164 | }
165 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:162:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a `@Sendable` closure
160 |
161 | loop.execute {
162 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
163 | module.release()
164 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:162:28: warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure
126 | * error).
127 | */
128 | static func readFile<T>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
129 | _ path : String,
130 | as type : T.Type,
:
160 |
161 | loop.execute {
162 | yield(resultError, result)
| `- warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure
163 | module.release()
164 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:163:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
161 | loop.execute {
162 | yield(resultError, result)
163 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
164 | }
165 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:210:65: warning: capture of 'json' with non-sendable type 'Any' in a `@Sendable` closure
208 | if case shouldRun = NIOThreadPool.WorkItemState.active {
209 | do {
210 | let data = try JSONSerialization.data(withJSONObject: json,
| `- warning: capture of 'json' with non-sendable type 'Any' in a `@Sendable` closure
211 | options: options)
212 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:224:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
222 |
223 | loop.execute {
224 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | module.release()
226 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:225:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
223 | loop.execute {
224 | yield(resultError)
225 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
226 | }
227 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:224:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
222 |
223 | loop.execute {
224 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | module.release()
226 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:225:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
223 | loop.execute {
224 | yield(resultError)
225 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
226 | }
227 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:272:47: warning: capture of 'json' with non-sendable type 'T' in a `@Sendable` closure
254 | * if one occurred, or nil.
255 | */
256 | static func writeFile<T>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
257 | _ path : String,
258 | _ json : T,
:
270 | if case shouldRun = NIOThreadPool.WorkItemState.active {
271 | do {
272 | let data = try makeEncoder().encode(json)
| `- warning: capture of 'json' with non-sendable type 'T' in a `@Sendable` closure
273 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
274 | resultError = nil
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:285:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
283 |
284 | loop.execute {
285 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
286 | module.release()
287 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:286:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
284 | loop.execute {
285 | yield(resultError)
286 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
287 | }
288 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:285:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
283 |
284 | loop.execute {
285 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
286 | module.release()
287 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:286:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
284 | loop.execute {
285 | yield(resultError)
286 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
287 | }
288 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/http/Agent/Agent.swift:23:14: warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public extension HTTPModule {
22 |
23 | static var globalAgent = Agent(options: .init())
| |- warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalAgent' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | }
/host/spi-builder-workspace/Sources/http/Agent/Agent.swift:23:14: warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public extension HTTPModule {
22 |
23 | static var globalAgent = Agent(options: .init())
| |- warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalAgent' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | }
[350/357] Emitting module http
/host/spi-builder-workspace/Sources/http/Agent/Agent.swift:23:14: warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public extension HTTPModule {
22 |
23 | static var globalAgent = Agent(options: .init())
| |- warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalAgent' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | }
/host/spi-builder-workspace/Sources/http/Globals.swift:17:14: warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | * `HTTPMethod` also supports a custom case.
16 | */
17 | static var METHODS : [ String ] = [
| |- warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'METHODS' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'METHODS' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | "GET",
19 | "PUT",
/host/spi-builder-workspace/Sources/http/Globals.swift:58:14: warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | * `HTTPResponseStatus` also supports a custom case.
57 | */
58 | static var STATUS_CASES : [ HTTPResponseStatus ] = [
| |- warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CASES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'STATUS_CASES' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | .`continue`,
60 | .switchingProtocols,
/host/spi-builder-workspace/Sources/http/Globals.swift:124:14: warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | * A non-exhaustive collection of known HTTP response status codes.
123 | */
124 | static var STATUS_CODES = [ Int : String ](
| |- warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CODES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'STATUS_CODES' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | uniqueKeysWithValues: STATUS_CASES.map { status in
126 | ( Int(status.code), status.reasonPhrase )
[351/357] Emitting module fs
/host/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
199 | loop.execute {
200 | whenDone(yieldError)
201 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
202 | }
203 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/File.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
11 | import class NIO.NIOThreadPool
12 | import enum NIO.ChannelError
13 | import class MacroCore.MacroCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
14 | import enum MacroCore.process
15 | import enum MacroCore.CharsetConversionError
/host/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
199 | loop.execute {
200 | whenDone(yieldError)
201 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
202 | }
203 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/PosixWrappers.swift:65:19: warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
63 | @inlinable
64 | public func statSync(_ path: String) throws -> xsys.stat_struct {
65 | var info = xsys.stat_struct()
| |- warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'SwiftGlibc' will be added implicitly
66 | let rc = xsys.stat(path, &info)
67 | if rc != 0 { throw POSIXErrorCode(rawValue: xsys.errno)! }
/host/spi-builder-workspace/Sources/fs/PosixWrappers.swift:72:19: warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
70 | @inlinable
71 | public func lstatSync(_ path: String) throws -> xsys.stat_struct {
72 | var info = xsys.stat_struct()
| |- warning: initializer 'init()' cannot be used in an '@inlinable' function because 'SwiftGlibc' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'SwiftGlibc' will be added implicitly
73 | let rc = xsys.lstat(path, &info)
74 | if rc != 0 { throw POSIXErrorCode(rawValue: xsys.errno)! }
/host/spi-builder-workspace/Sources/fs/Promise.swift:147:15: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
145 |
146 | FileSystemModule.threadPool.submit { shouldRun in
147 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
148 |
149 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
12 | import class NIO.NIOThreadPool
13 | import enum NIO.ChannelError
14 | import class MacroCore.MacroCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
15 | import enum MacroCore.CharsetConversionError
16 | import struct MacroCore.Buffer
/host/spi-builder-workspace/Sources/fs/Promise.swift:147:15: warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
145 |
146 | FileSystemModule.threadPool.submit { shouldRun in
147 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
148 |
149 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:177:15: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
175 |
176 | FileSystemModule.threadPool.submit { shouldRun in
177 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
178 |
179 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Promise.swift:177:15: warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
175 |
176 | FileSystemModule.threadPool.submit { shouldRun in
177 | defer { module.release() }
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in an isolated local function; this is an error in the Swift 6 language mode
178 |
179 | guard case shouldRun = NIOThreadPool.WorkItemState.active else {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:28:21: warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | open class FileReadStream: ReadableByteStream, FileStream {
27 |
28 | public static var defaultReadableHighWaterMark = 64 * 1024
| |- warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultReadableHighWaterMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultReadableHighWaterMark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | public let eventLoop : EventLoop
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:33:17: warning: var 'retainedStreams' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate let retainLock = NIOLock()
33 | fileprivate var retainedStreams = [ ObjectIdentifier : FileWriteStream ]()
| |- warning: var 'retainedStreams' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainedStreams' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainedStreams' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | open class FileWriteStream: WritableByteStream, FileStream,
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:38:21: warning: static property 'defaultWritableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | WritableStreamType, WritableByteStreamType
37 | {
38 | public static var defaultWritableHighWaterMark = 64 * 1024
| |- warning: static property 'defaultWritableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultWritableHighWaterMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultWritableHighWaterMark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | enum StreamState: Equatable {
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:39:15: warning: capture of 'f' with non-sendable type '(ArgT) throws -> Void' in a `@Sendable` closure
37 | if case shouldRun = NIOThreadPool.WorkItemState.active {
38 | do {
39 | try f(arg)
| |- warning: capture of 'f' with non-sendable type '(ArgT) throws -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
40 | returnError = nil
41 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:39:17: warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
25 |
26 | @inlinable static
27 | func _evalAsync<ArgT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'ArgT' conform to the 'Sendable' protocol
28 | _ f : @escaping ( ArgT ) throws -> Void,
29 | _ arg : ArgT,
:
37 | if case shouldRun = NIOThreadPool.WorkItemState.active {
38 | do {
39 | try f(arg)
| `- warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
40 | returnError = nil
41 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:51:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
49 |
50 | loop.execute {
51 | yield(returnError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | module.release()
53 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:52:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
50 | loop.execute {
51 | yield(returnError)
52 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
53 | }
54 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
12 | import class NIO.NIOThreadPool
13 | import enum NIO.ChannelError
14 | import class MacroCore.MacroCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MacroCore'
15 |
16 | extension FileSystemModule {
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:51:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
49 |
50 | loop.execute {
51 | yield(returnError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | module.release()
53 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:52:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
50 | loop.execute {
51 | yield(returnError)
52 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
53 | }
54 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:71:24: warning: capture of 'f' with non-sendable type '(ArgT) throws -> RT' in a `@Sendable` closure
69 | if case shouldRun = NIOThreadPool.WorkItemState.active {
70 | do {
71 | result = try f(arg)
| |- warning: capture of 'f' with non-sendable type '(ArgT) throws -> RT' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | returnError = nil
73 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:71:26: warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
56 |
57 | @inlinable static
58 | func _evalAsync<ArgT, RT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'ArgT' conform to the 'Sendable' protocol
59 | _ f : @escaping ( ArgT ) throws -> RT,
60 | _ arg : ArgT,
:
69 | if case shouldRun = NIOThreadPool.WorkItemState.active {
70 | do {
71 | result = try f(arg)
| `- warning: capture of 'arg' with non-sendable type 'ArgT' in a `@Sendable` closure
72 | returnError = nil
73 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:9: warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
83 |
84 | loop.execute {
85 | yield(returnError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
86 | module.release()
87 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:86:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
84 | loop.execute {
85 | yield(returnError, result)
86 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
87 | }
88 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:9: warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
83 |
84 | loop.execute {
85 | yield(returnError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
86 | module.release()
87 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:28: warning: capture of 'result' with non-sendable type 'RT?' in a `@Sendable` closure
56 |
57 | @inlinable static
58 | func _evalAsync<ArgT, RT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'RT' conform to the 'Sendable' protocol
59 | _ f : @escaping ( ArgT ) throws -> RT,
60 | _ arg : ArgT,
:
83 |
84 | loop.execute {
85 | yield(returnError, result)
| `- warning: capture of 'result' with non-sendable type 'RT?' in a `@Sendable` closure
86 | module.release()
87 | }
/host/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:86:9: warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
84 | loop.execute {
85 | yield(returnError, result)
86 | module.release()
| `- warning: capture of 'module' with non-sendable type 'MacroCore' in a `@Sendable` closure
87 | }
88 | }
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:34:20: note: class 'MacroCore' does not conform to the 'Sendable' protocol
32 | * will if you do it early on.
33 | */
34 | public final class MacroCore {
| `- note: class 'MacroCore' does not conform to the 'Sendable' protocol
35 |
36 | public static let shared = MacroCore()
/host/spi-builder-workspace/Sources/http/Server/Server.swift:142:13: warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
58 | * - res: `http.ServerResponse`
59 | */
60 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
61 |
62 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
140 | switch result {
141 | case .success(let channel):
142 | self.registerChannel(channel)
| `- warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
143 |
144 | case .failure(let error):
/host/spi-builder-workspace/Sources/http/Server/Server.swift:348:48: warning: type 'Server.HTTPHandler' does not conform to the 'Sendable' protocol
346 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
347 | .flatMap {
348 | return channel.pipeline.addHandler(HTTPHandler(server: self),
| `- warning: type 'Server.HTTPHandler' does not conform to the 'Sendable' protocol
349 | name: Server.httpHandlerName)
350 | }
:
365 | public static let httpHandlerName: String = "μ.http.server.handler"
366 |
367 | private final class HTTPHandler : ChannelInboundHandler,
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
368 | RemovableChannelHandler
369 | {
/host/spi-builder-workspace/Sources/http/Server/Server.swift:346:59: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure
344 | .childChannelInitializer { channel in
345 | return channel.pipeline
346 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
| `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure
347 | .flatMap {
348 | return channel.pipeline.addHandler(HTTPHandler(server: self),
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:31:17: note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
30 | /// a protocol on a server-side channel.
31 | public protocol HTTPServerProtocolUpgrader {
| `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
32 | /// The protocol this upgrader knows how to support.
33 | var supportedProtocol: String { get }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:34:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
32 | import let NIO.IPPROTO_TCP
33 | import let NIO.TCP_NODELAY
34 | import enum NIOHTTP1.HTTPServerRequestPart
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
35 | import typealias NIOHTTP1.NIOHTTPServerUpgradeConfiguration
36 | import struct NIOConcurrencyHelpers.NIOLock
/host/spi-builder-workspace/Sources/http/Server/Server.swift:348:68: warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
58 | * - res: `http.ServerResponse`
59 | */
60 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
61 |
62 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
346 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
347 | .flatMap {
348 | return channel.pipeline.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
349 | name: Server.httpHandlerName)
350 | }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:348:68: warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
58 | * - res: `http.ServerResponse`
59 | */
60 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
61 |
62 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
346 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
347 | .flatMap {
348 | return channel.pipeline.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
349 | name: Server.httpHandlerName)
350 | }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:142:13: warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
58 | * - res: `http.ServerResponse`
59 | */
60 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
61 |
62 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
140 | switch result {
141 | case .success(let channel):
142 | self.registerChannel(channel)
| `- warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
143 |
144 | case .failure(let error):
/host/spi-builder-workspace/Sources/http/Server/Server.swift:348:48: warning: type 'Server.HTTPHandler' does not conform to the 'Sendable' protocol
346 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
347 | .flatMap {
348 | return channel.pipeline.addHandler(HTTPHandler(server: self),
| `- warning: type 'Server.HTTPHandler' does not conform to the 'Sendable' protocol
349 | name: Server.httpHandlerName)
350 | }
:
365 | public static let httpHandlerName: String = "μ.http.server.handler"
366 |
367 | private final class HTTPHandler : ChannelInboundHandler,
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
368 | RemovableChannelHandler
369 | {
/host/spi-builder-workspace/Sources/http/Server/Server.swift:346:59: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure
344 | .childChannelInitializer { channel in
345 | return channel.pipeline
346 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
| `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure
347 | .flatMap {
348 | return channel.pipeline.addHandler(HTTPHandler(server: self),
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:31:17: note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
30 | /// a protocol on a server-side channel.
31 | public protocol HTTPServerProtocolUpgrader {
| `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
32 | /// The protocol this upgrader knows how to support.
33 | var supportedProtocol: String { get }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:34:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
32 | import let NIO.IPPROTO_TCP
33 | import let NIO.TCP_NODELAY
34 | import enum NIOHTTP1.HTTPServerRequestPart
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
35 | import typealias NIOHTTP1.NIOHTTPServerUpgradeConfiguration
36 | import struct NIOConcurrencyHelpers.NIOLock
/host/spi-builder-workspace/Sources/http/Server/Server.swift:348:68: warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
58 | * - res: `http.ServerResponse`
59 | */
60 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
61 |
62 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
346 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
347 | .flatMap {
348 | return channel.pipeline.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
349 | name: Server.httpHandlerName)
350 | }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:348:68: warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
58 | * - res: `http.ServerResponse`
59 | */
60 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
61 |
62 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
346 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
347 | .flatMap {
348 | return channel.pipeline.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in a `@Sendable` closure
349 | name: Server.httpHandlerName)
350 | }
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:94:15: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
92 | task = agent.options.session.dataTask(with: request) {
93 | data, urlResponse, error in
94 | defer { self.task = nil }
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 |
96 | let response = self.setupResponse(with: urlResponse as? HTTPURLResponse)
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:94:15: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in an isolated local function; this is an error in the Swift 6 language mode
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
92 | task = agent.options.session.dataTask(with: request) {
93 | data, urlResponse, error in
94 | defer { self.task = nil }
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in an isolated local function; this is an error in the Swift 6 language mode
95 |
96 | let response = self.setupResponse(with: urlResponse as? HTTPURLResponse)
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:100:9: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
98 |
99 | eventLoop.execute {
100 | self.responseListeners.emit(response)
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure
101 | }
102 |
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:100:37: warning: capture of 'response' with non-sendable type 'IncomingMessage' in a `@Sendable` closure
98 |
99 | eventLoop.execute {
100 | self.responseListeners.emit(response)
| `- warning: capture of 'response' with non-sendable type 'IncomingMessage' in a `@Sendable` closure
101 | }
102 |
/host/spi-builder-workspace/Sources/http/IncomingMessage.swift:45:12: note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
43 | * * IncomingMessage
44 | */
45 | open class IncomingMessage: ReadableByteStream, CustomStringConvertible {
| `- note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
46 |
47 | public enum IncomingType {
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:106:11: warning: capture of 'response' with non-sendable type 'IncomingMessage' in a `@Sendable` closure
104 | eventLoop.execute {
105 | if let data = data, !data.isEmpty {
106 | response.push(Buffer(data))
| `- warning: capture of 'response' with non-sendable type 'IncomingMessage' in a `@Sendable` closure
107 | }
108 | response.push(nil) // EOF
/host/spi-builder-workspace/Sources/http/IncomingMessage.swift:45:12: note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
43 | * * IncomingMessage
44 | */
45 | open class IncomingMessage: ReadableByteStream, CustomStringConvertible {
| `- note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
46 |
47 | public enum IncomingType {
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:110:9: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
108 | response.push(nil) // EOF
109 |
110 | self.selfRef = nil
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure
111 | if self.didRetain { self.didRetain = false; self.core.release() }
112 | }
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:94:15: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
92 | task = agent.options.session.dataTask(with: request) {
93 | data, urlResponse, error in
94 | defer { self.task = nil }
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 |
96 | let response = self.setupResponse(with: urlResponse as? HTTPURLResponse)
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:94:15: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in an isolated local function; this is an error in the Swift 6 language mode
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
92 | task = agent.options.session.dataTask(with: request) {
93 | data, urlResponse, error in
94 | defer { self.task = nil }
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in an isolated local function; this is an error in the Swift 6 language mode
95 |
96 | let response = self.setupResponse(with: urlResponse as? HTTPURLResponse)
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:100:9: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
98 |
99 | eventLoop.execute {
100 | self.responseListeners.emit(response)
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure
101 | }
102 |
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:100:37: warning: capture of 'response' with non-sendable type 'IncomingMessage' in a `@Sendable` closure
98 |
99 | eventLoop.execute {
100 | self.responseListeners.emit(response)
| `- warning: capture of 'response' with non-sendable type 'IncomingMessage' in a `@Sendable` closure
101 | }
102 |
/host/spi-builder-workspace/Sources/http/IncomingMessage.swift:45:12: note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
43 | * * IncomingMessage
44 | */
45 | open class IncomingMessage: ReadableByteStream, CustomStringConvertible {
| `- note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
46 |
47 | public enum IncomingType {
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:106:11: warning: capture of 'response' with non-sendable type 'IncomingMessage' in a `@Sendable` closure
104 | eventLoop.execute {
105 | if let data = data, !data.isEmpty {
106 | response.push(Buffer(data))
| `- warning: capture of 'response' with non-sendable type 'IncomingMessage' in a `@Sendable` closure
107 | }
108 | response.push(nil) // EOF
/host/spi-builder-workspace/Sources/http/IncomingMessage.swift:45:12: note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
43 | * * IncomingMessage
44 | */
45 | open class IncomingMessage: ReadableByteStream, CustomStringConvertible {
| `- note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
46 |
47 | public enum IncomingType {
/host/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:110:9: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
108 | response.push(nil) // EOF
109 |
110 | self.selfRef = nil
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a `@Sendable` closure
111 | if self.didRetain { self.didRetain = false; self.core.release() }
112 | }
[360/361] Compiling Macro Macro.swift
[361/361] Emitting module Macro
[363/364] Emitting module MacroTestUtilities
[364/364] Compiling MacroTestUtilities TestServerResponse.swift
Build complete! (67.88s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-atomics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-atomics.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.80.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.4",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "Macro",
"name" : "Macro",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Macro",
"targets" : [
"Macro"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MacroCore",
"targets" : [
"MacroCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "xsys",
"targets" : [
"xsys"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "http",
"targets" : [
"http"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "fs",
"targets" : [
"fs"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MacroTestUtilities",
"targets" : [
"MacroTestUtilities"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "xsys",
"module_type" : "SwiftTarget",
"name" : "xsys",
"path" : "Sources/xsys",
"product_memberships" : [
"Macro",
"MacroCore",
"xsys",
"http",
"fs",
"MacroTestUtilities"
],
"sources" : [
"Module.swift",
"POSIXError.swift",
"SocketAddress.swift",
"UUID.swift",
"dylib.swift",
"fd.swift",
"ioctl.swift",
"misc.swift",
"ntohs.swift",
"sockaddr_any.swift",
"socket.swift",
"time.swift",
"timespec.swift",
"timeval_any.swift"
],
"type" : "library"
},
{
"c99name" : "http",
"module_type" : "SwiftTarget",
"name" : "http",
"path" : "Sources/http",
"product_dependencies" : [
"NIO",
"NIOConcurrencyHelpers",
"NIOHTTP1"
],
"product_memberships" : [
"Macro",
"http",
"MacroTestUtilities"
],
"sources" : [
"Agent/Agent.swift",
"Agent/ClientRequest.swift",
"Agent/Foundation/URLRequestInit.swift",
"Agent/Foundation/URLSessionAgent.swift",
"Agent/Foundation/URLSessionClientRequest.swift",
"BasicAuth.swift",
"Globals.swift",
"IncomingMessage.swift",
"QueryString.swift",
"Server/Server.swift",
"Server/ServerResponse.swift",
"Support/HTTPHeadersHolder.swift",
"Support/OutgoingMessage.swift",
"http.swift"
],
"target_dependencies" : [
"MacroCore"
],
"type" : "library"
},
{
"c99name" : "fs",
"module_type" : "SwiftTarget",
"name" : "fs",
"path" : "Sources/fs",
"product_dependencies" : [
"NIO"
],
"product_memberships" : [
"Macro",
"fs",
"MacroTestUtilities"
],
"sources" : [
"Directory.swift",
"FSWatcher.swift",
"File.swift",
"JSONFile.swift",
"Path.swift",
"PosixWrappers.swift",
"Promise.swift",
"Streams/FileReadStream.swift",
"Streams/FileStream.swift",
"Streams/FileWriteStream.swift",
"Utils/AsyncWrapper.swift",
"Utils/ResultExtensions.swift",
"Utils/StatStruct.swift",
"fs.swift"
],
"target_dependencies" : [
"MacroCore",
"xsys"
],
"type" : "library"
},
{
"c99name" : "MacroTests",
"module_type" : "SwiftTarget",
"name" : "MacroTests",
"path" : "Tests/MacroTests",
"sources" : [
"AgentTests.swift",
"BufferTests.swift",
"ByteBufferTests.swift",
"CollectionTests.swift",
"MacroTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"MacroTestUtilities"
],
"type" : "test"
},
{
"c99name" : "MacroTestUtilities",
"module_type" : "SwiftTarget",
"name" : "MacroTestUtilities",
"path" : "Sources/MacroTestUtilities",
"product_memberships" : [
"MacroTestUtilities"
],
"sources" : [
"TestServerResponse.swift"
],
"target_dependencies" : [
"Macro"
],
"type" : "library"
},
{
"c99name" : "MacroCore",
"module_type" : "SwiftTarget",
"name" : "MacroCore",
"path" : "Sources/MacroCore",
"product_dependencies" : [
"Atomics",
"NIO",
"NIOConcurrencyHelpers",
"NIOFoundationCompat",
"Logging"
],
"product_memberships" : [
"Macro",
"MacroCore",
"http",
"fs",
"MacroTestUtilities"
],
"sources" : [
"Buffer/Buffer.swift",
"Buffer/BufferData.swift",
"Buffer/BufferDeprecations.swift",
"Buffer/BufferHexEncoding.swift",
"Buffer/BufferStrings.swift",
"Buffer/CollectionUtils.swift",
"Console.swift",
"Dirname.swift",
"EnvironmentValues.swift",
"Events/ErrorEmitter.swift",
"Events/EventListenerSet.swift",
"Events/ListenerType.swift",
"JSError.swift",
"JSON.swift",
"JSStubs/CollectionStubs.swift",
"JSStubs/Math.swift",
"JSStubs/Object.swift",
"JSStubs/StringStubs.swift",
"JSStubs/ToString.swift",
"LeftPad.swift",
"MacroCore.swift",
"MacroError.swift",
"NextTick.swift",
"Process/CommandLine.swift",
"Process/DetectXcode.swift",
"Process/Environment.swift",
"Process/Process.swift",
"Process/Warnings.swift",
"Regex.swift",
"Streams/Concat.swift",
"Streams/DuplexStreamType.swift",
"Streams/Pipe.swift",
"Streams/ReadableByteStream.swift",
"Streams/ReadableByteStreamType.swift",
"Streams/ReadableStreamBase.swift",
"Streams/ReadableStreamType.swift",
"Streams/WritableByteStream.swift",
"Streams/WritableByteStreamType.swift",
"Streams/WritableStreamBase.swift",
"Streams/WritableStreamType.swift",
"StringEncoding.swift"
],
"target_dependencies" : [
"xsys"
],
"type" : "library"
},
{
"c99name" : "Macro",
"module_type" : "SwiftTarget",
"name" : "Macro",
"path" : "Sources/Macro",
"product_memberships" : [
"Macro",
"MacroTestUtilities"
],
"sources" : [
"Macro.swift"
],
"target_dependencies" : [
"MacroCore",
"xsys",
"http",
"fs"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9029076bb687edc160a3d5201c89e92dd9fa7309f33f090c4234365c83366c31
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.