The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of Macro, reference 1.0.10 (c6fa70), with Swift 6.1 for Linux on 7 Sep 2025 22:13:21 UTC.

Swift 6 data race errors: 25

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-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

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 |
[294/326] Compiling MacroCore ListenerType.swift
[295/326] Compiling MacroCore JSError.swift
[296/326] Compiling MacroCore JSON.swift
[297/326] Compiling MacroCore CollectionStubs.swift
[298/326] Compiling MacroCore Math.swift
[299/326] Compiling MacroCore Object.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:237: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
235 | }
236 |
237 | 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: add '@MainActor' to make var 'wasInExit' part of global actor 'MainActor'
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |
239 | public func disableAtExitHandler() {
[300/326] Compiling MacroCore StringStubs.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:237: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
235 | }
236 |
237 | 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: add '@MainActor' to make var 'wasInExit' part of global actor 'MainActor'
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |
239 | public func disableAtExitHandler() {
[301/326] Compiling MacroCore ToString.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:237: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
235 | }
236 |
237 | 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: add '@MainActor' to make var 'wasInExit' part of global actor 'MainActor'
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |
239 | public func disableAtExitHandler() {
[302/326] Compiling MacroCore LeftPad.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:237: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
235 | }
236 |
237 | 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: add '@MainActor' to make var 'wasInExit' part of global actor 'MainActor'
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |
239 | public func disableAtExitHandler() {
[303/326] Compiling MacroCore MacroCore.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:237: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
235 | }
236 |
237 | 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: add '@MainActor' to make var 'wasInExit' part of global actor 'MainActor'
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |
239 | public func disableAtExitHandler() {
[304/326] Compiling MacroCore Process.swift
/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: add '@MainActor' to make static property '_warningListeners' part of global actor 'MainActor'
   |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |   private static let _warningListenersLock = NIOConcurrencyHelpers.NIOLock()
15 |
[305/326] Compiling MacroCore Warnings.swift
/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: add '@MainActor' to make static property '_warningListeners' part of global actor 'MainActor'
   |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |   private static let _warningListenersLock = NIOConcurrencyHelpers.NIOLock()
15 |
[306/326] Compiling MacroCore Regex.swift
/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: add '@MainActor' to make static property '_warningListeners' part of global actor 'MainActor'
   |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |   private static let _warningListenersLock = NIOConcurrencyHelpers.NIOLock()
15 |
[307/326] Compiling MacroCore Concat.swift
/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: add '@MainActor' to make static property '_warningListeners' part of global actor 'MainActor'
   |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |   private static let _warningListenersLock = NIOConcurrencyHelpers.NIOLock()
15 |
[308/326] Compiling MacroCore DuplexStreamType.swift
/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: add '@MainActor' to make static property '_warningListeners' part of global actor 'MainActor'
   |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |   private static let _warningListenersLock = NIOConcurrencyHelpers.NIOLock()
15 |
[309/326] Compiling MacroCore WritableByteStream.swift
[310/326] Compiling MacroCore WritableByteStreamType.swift
[311/326] Compiling MacroCore WritableStreamBase.swift
[312/326] Compiling MacroCore WritableStreamType.swift
[313/326] Compiling MacroCore StringEncoding.swift
[314/326] Compiling MacroCore Concurrency.swift
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 49 |    */
 50 |   @inlinable
 51 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 52 |                          _ args : repeat each A,
 53 |                          body   : @escaping (repeat each A) async -> R,
    :
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |               `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 83 |    */
 84 |   @inlinable
 85 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 86 |                          _ args : repeat each A,
 87 |                          body   : @escaping (repeat each A) async throws -> R,
    :
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                                   `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 99 |       }
100 |       catch {
101 |         loop.execute { yield(error, nil) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 |       }
103 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116: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
100 |  */
101 | @frozen
102 | public struct EnvironmentValues {
    |               `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 |   @usableFromInline
    :
114 | public extension EnvironmentValues {
115 |
116 |   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: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 |   @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/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 28 |   {
 29 |     retain()
 30 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 31 |       await body(repeat each args)
    |             `- note: closure captures 'body' which is accessible to code in the current task
 32 |       self.release()
 33 |     }
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 59 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 60 |             ?? eventLoopGroup.next()
 61 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         `- note: closure captures 'yield' which is accessible to code in the current task
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 93 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 94 |             ?? eventLoopGroup.next()
 95 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        `- note: closure captures 'yield' which is accessible to code in the current task
 99 |       }
100 |       catch {
[315/326] Compiling MacroCore Console.swift
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 49 |    */
 50 |   @inlinable
 51 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 52 |                          _ args : repeat each A,
 53 |                          body   : @escaping (repeat each A) async -> R,
    :
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |               `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 83 |    */
 84 |   @inlinable
 85 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 86 |                          _ args : repeat each A,
 87 |                          body   : @escaping (repeat each A) async throws -> R,
    :
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                                   `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 99 |       }
100 |       catch {
101 |         loop.execute { yield(error, nil) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 |       }
103 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116: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
100 |  */
101 | @frozen
102 | public struct EnvironmentValues {
    |               `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 |   @usableFromInline
    :
114 | public extension EnvironmentValues {
115 |
116 |   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: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 |   @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/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 28 |   {
 29 |     retain()
 30 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 31 |       await body(repeat each args)
    |             `- note: closure captures 'body' which is accessible to code in the current task
 32 |       self.release()
 33 |     }
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 59 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 60 |             ?? eventLoopGroup.next()
 61 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         `- note: closure captures 'yield' which is accessible to code in the current task
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 93 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 94 |             ?? eventLoopGroup.next()
 95 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        `- note: closure captures 'yield' which is accessible to code in the current task
 99 |       }
100 |       catch {
[316/326] Compiling MacroCore Dirname.swift
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 49 |    */
 50 |   @inlinable
 51 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 52 |                          _ args : repeat each A,
 53 |                          body   : @escaping (repeat each A) async -> R,
    :
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |               `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 83 |    */
 84 |   @inlinable
 85 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 86 |                          _ args : repeat each A,
 87 |                          body   : @escaping (repeat each A) async throws -> R,
    :
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                                   `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 99 |       }
100 |       catch {
101 |         loop.execute { yield(error, nil) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 |       }
103 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116: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
100 |  */
101 | @frozen
102 | public struct EnvironmentValues {
    |               `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 |   @usableFromInline
    :
114 | public extension EnvironmentValues {
115 |
116 |   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: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 |   @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/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 28 |   {
 29 |     retain()
 30 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 31 |       await body(repeat each args)
    |             `- note: closure captures 'body' which is accessible to code in the current task
 32 |       self.release()
 33 |     }
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 59 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 60 |             ?? eventLoopGroup.next()
 61 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         `- note: closure captures 'yield' which is accessible to code in the current task
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 93 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 94 |             ?? eventLoopGroup.next()
 95 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        `- note: closure captures 'yield' which is accessible to code in the current task
 99 |       }
100 |       catch {
[317/326] Compiling MacroCore EnvironmentValues.swift
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 49 |    */
 50 |   @inlinable
 51 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 52 |                          _ args : repeat each A,
 53 |                          body   : @escaping (repeat each A) async -> R,
    :
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |               `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 83 |    */
 84 |   @inlinable
 85 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 86 |                          _ args : repeat each A,
 87 |                          body   : @escaping (repeat each A) async throws -> R,
    :
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                                   `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 99 |       }
100 |       catch {
101 |         loop.execute { yield(error, nil) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 |       }
103 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116: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
100 |  */
101 | @frozen
102 | public struct EnvironmentValues {
    |               `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 |   @usableFromInline
    :
114 | public extension EnvironmentValues {
115 |
116 |   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: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 |   @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/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 28 |   {
 29 |     retain()
 30 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 31 |       await body(repeat each args)
    |             `- note: closure captures 'body' which is accessible to code in the current task
 32 |       self.release()
 33 |     }
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 59 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 60 |             ?? eventLoopGroup.next()
 61 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         `- note: closure captures 'yield' which is accessible to code in the current task
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 93 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 94 |             ?? eventLoopGroup.next()
 95 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        `- note: closure captures 'yield' which is accessible to code in the current task
 99 |       }
100 |       catch {
[318/326] Compiling MacroCore ErrorEmitter.swift
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 49 |    */
 50 |   @inlinable
 51 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 52 |                          _ args : repeat each A,
 53 |                          body   : @escaping (repeat each A) async -> R,
    :
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |               `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 83 |    */
 84 |   @inlinable
 85 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 86 |                          _ args : repeat each A,
 87 |                          body   : @escaping (repeat each A) async throws -> R,
    :
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                                   `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 99 |       }
100 |       catch {
101 |         loop.execute { yield(error, nil) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 |       }
103 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116: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
100 |  */
101 | @frozen
102 | public struct EnvironmentValues {
    |               `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 |   @usableFromInline
    :
114 | public extension EnvironmentValues {
115 |
116 |   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: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 |   @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/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 28 |   {
 29 |     retain()
 30 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 31 |       await body(repeat each args)
    |             `- note: closure captures 'body' which is accessible to code in the current task
 32 |       self.release()
 33 |     }
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 59 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 60 |             ?? eventLoopGroup.next()
 61 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         `- note: closure captures 'yield' which is accessible to code in the current task
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 93 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 94 |             ?? eventLoopGroup.next()
 95 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        `- note: closure captures 'yield' which is accessible to code in the current task
 99 |       }
100 |       catch {
[319/326] Compiling MacroCore EventListenerSet.swift
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 49 |    */
 50 |   @inlinable
 51 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 52 |                          _ args : repeat each A,
 53 |                          body   : @escaping (repeat each A) async -> R,
    :
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |               `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 83 |    */
 84 |   @inlinable
 85 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 86 |                          _ args : repeat each A,
 87 |                          body   : @escaping (repeat each A) async throws -> R,
    :
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                                   `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 99 |       }
100 |       catch {
101 |         loop.execute { yield(error, nil) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 |       }
103 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116: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
100 |  */
101 | @frozen
102 | public struct EnvironmentValues {
    |               `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 |   @usableFromInline
    :
114 | public extension EnvironmentValues {
115 |
116 |   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: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 |   @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/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 28 |   {
 29 |     retain()
 30 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 31 |       await body(repeat each args)
    |             `- note: closure captures 'body' which is accessible to code in the current task
 32 |       self.release()
 33 |     }
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 59 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 60 |             ?? eventLoopGroup.next()
 61 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         `- note: closure captures 'yield' which is accessible to code in the current task
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 93 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 94 |             ?? eventLoopGroup.next()
 95 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        `- note: closure captures 'yield' which is accessible to code in the current task
 99 |       }
100 |       catch {
[320/326] Compiling MacroCore Buffer.swift
/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: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
    |                     `- 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/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: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
    |                     `- 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/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: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
    |                     `- 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/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: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
    |                     `- 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/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: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
    |                     `- 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/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: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
    |                     `- 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/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: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 | }
 34 |
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 49 |    */
 50 |   @inlinable
 51 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 52 |                          _ args : repeat each A,
 53 |                          body   : @escaping (repeat each A) async -> R,
    :
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |               `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 83 |    */
 84 |   @inlinable
 85 |   func `task`<each A, R>(on eventLoop : EventLoop? = nil,
    |                       `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 86 |                          _ args : repeat each A,
 87 |                          body   : @escaping (repeat each A) async throws -> R,
    :
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                                   `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
 99 |       }
100 |       catch {
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
 99 |       }
100 |       catch {
101 |         loop.execute { yield(error, nil) }
    |                        |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 |       }
103 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116: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
100 |  */
101 | @frozen
102 | public struct EnvironmentValues {
    |               `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 |   @usableFromInline
    :
114 | public extension EnvironmentValues {
115 |
116 |   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: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 |   @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:237: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
235 | }
236 |
237 | 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: add '@MainActor' to make var 'wasInExit' part of global actor 'MainActor'
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |
239 | public func disableAtExitHandler() {
/host/spi-builder-workspace/Sources/MacroCore/NextTick.swift:27:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
25 |             ?? eventLoopGroup.next()
26 |     loop.execute {
27 |       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'
28 |       self.release()
29 |     }
/host/spi-builder-workspace/Sources/MacroCore/NextTick.swift:49:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
47 |
48 |     loop.scheduleTask(in: .milliseconds(Int64(milliseconds))) {
49 |       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'
50 |       self.release()
51 |     }
/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: add '@MainActor' to make static property '_warningListeners' part of global actor 'MainActor'
   |                      `- 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 |
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 28 |   {
 29 |     retain()
 30 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 31 |       await body(repeat each args)
    |             `- note: closure captures 'body' which is accessible to code in the current task
 32 |       self.release()
 33 |     }
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 59 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 60 |             ?? eventLoopGroup.next()
 61 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 62 |       let value = await body(repeat each args)
 63 |       loop.execute {
 64 |         yield(value)
    |         `- note: closure captures 'yield' which is accessible to code in the current task
 65 |       }
 66 |       self.release()
/host/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 93 |             ?? MultiThreadedEventLoopGroup.currentEventLoop
 94 |             ?? eventLoopGroup.next()
 95 |     Task {
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |       do {
 97 |         let value = try await body(repeat each args)
 98 |         loop.execute { yield(nil, value) }
    |                        `- note: closure captures 'yield' which is accessible to code in the current task
 99 |       }
100 |       catch {
[328/355] Compiling fs Directory.swift
[329/355] Compiling fs FSWatcher.swift
[330/356] Compiling fs StatStruct.swift
[331/356] 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: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: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: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 |       }
[332/356] 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: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: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: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 |       }
[333/356] Compiling http OutgoingMessage.swift
[334/357] Compiling fs Promise.swift
/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: add '@MainActor' to make static property 'defaultReadableHighWaterMark' part of global actor 'MainActor'
    |                     `- 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 |   }
[335/357] Compiling fs FileReadStream.swift
/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: add '@MainActor' to make static property 'defaultReadableHighWaterMark' part of global actor 'MainActor'
    |                     `- 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 |   }
[336/357] Compiling fs fs.swift
[337/357] Compiling http http.swift
[338/357] Compiling fs File.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: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: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: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: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: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/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: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: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: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: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: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: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: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 |       }
[339/357] Compiling fs JSONFile.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: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: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: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: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: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/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: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: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: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: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: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: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: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/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: add '@MainActor' to make static property 'globalAgent' part of global actor 'MainActor'
   |              `- 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: add '@MainActor' to make static property 'globalAgent' part of global actor 'MainActor'
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | }
/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 |       }
[344/357] Compiling fs FileStream.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: add '@MainActor' to make var 'retainedStreams' part of global actor 'MainActor'
    |                 `- 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: add '@MainActor' to make static property 'defaultWritableHighWaterMark' part of global actor 'MainActor'
    |                     `- 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)
[345/357] Compiling fs FileWriteStream.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: add '@MainActor' to make var 'retainedStreams' part of global actor 'MainActor'
    |                 `- 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: add '@MainActor' to make static property 'defaultWritableHighWaterMark' part of global actor 'MainActor'
    |                     `- 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)
[346/357] Compiling fs Path.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)! }
[347/357] Compiling fs PosixWrappers.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)! }
[350/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: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/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/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: add '@MainActor' to make static property 'defaultReadableHighWaterMark' part of global actor 'MainActor'
    |                     `- 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: add '@MainActor' to make var 'retainedStreams' part of global actor 'MainActor'
    |                 `- 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: add '@MainActor' to make static property 'defaultWritableHighWaterMark' part of global actor 'MainActor'
    |                     `- 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: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: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: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 |       }
[351/358] 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: add '@MainActor' to make static property 'globalAgent' part of global actor 'MainActor'
   |              `- 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: add '@MainActor' to make static property 'METHODS' part of global actor 'MainActor'
    |              `- 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: add '@MainActor' to make static property 'STATUS_CASES' part of global actor 'MainActor'
    |              `- 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: add '@MainActor' to make static property 'STATUS_CODES' part of global actor 'MainActor'
    |              `- 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 )
/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 {
/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: add '@MainActor' to make static property 'METHODS' part of global actor 'MainActor'
    |              `- 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: add '@MainActor' to make static property 'STATUS_CASES' part of global actor 'MainActor'
    |              `- 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: add '@MainActor' to make static property 'STATUS_CODES' part of global actor 'MainActor'
    |              `- 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 )
/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: add '@MainActor' to make static property 'METHODS' part of global actor 'MainActor'
    |              `- 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: add '@MainActor' to make static property 'STATUS_CASES' part of global actor 'MainActor'
    |              `- 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: add '@MainActor' to make static property 'STATUS_CODES' part of global actor 'MainActor'
    |              `- 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 )
/host/spi-builder-workspace/Sources/http/Server/Server.swift:156:13: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
 68 |  * - ``Server/onListening(execute:)``
 69 |  */
 70 | open class Server: ErrorEmitter, CustomStringConvertible {
    |            `- note: class 'Server' does not conform to the 'Sendable' protocol
 71 |
 72 |   private static let serverID = Atomics.ManagedAtomic<Int>(0)
    :
154 |         switch result {
155 |           case .success(let channel):
156 |             self.registerChannel(channel)
    |             `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
157 |
158 |           case .failure(let error):
/host/spi-builder-workspace/Sources/http/Server/Server.swift:360:59: warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
358 |       .childChannelInitializer { channel in
359 |         return channel.pipeline
360 |           .configureHTTPServerPipeline(withServerUpgrade: upgrade)
    |                                                           `- warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
361 |           .flatMap {
362 |             return channel.pipeline.addHandler(HTTPHandler(server: self),
/host/spi-builder-workspace/Sources/http/Server/Server.swift:362:48: warning: type 'Server.HTTPHandler' does not conform to the 'Sendable' protocol
360 |           .configureHTTPServerPipeline(withServerUpgrade: upgrade)
361 |           .flatMap {
362 |             return channel.pipeline.addHandler(HTTPHandler(server: self),
    |                                                `- warning: type 'Server.HTTPHandler' does not conform to the 'Sendable' protocol
363 |                                                name: Server.httpHandlerName)
364 |           }
    :
379 |   public static let httpHandlerName: String = "μ.http.server.handler"
380 |
381 |   private final class HTTPHandler : ChannelInboundHandler,
    |                       `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
382 |                                     RemovableChannelHandler
383 |   {
/host/spi-builder-workspace/Sources/http/Server/Server.swift:360:59: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a '@Sendable' closure
358 |       .childChannelInitializer { channel in
359 |         return channel.pipeline
360 |           .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
361 |           .flatMap {
362 |             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:362:68: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
 68 |  * - ``Server/onListening(execute:)``
 69 |  */
 70 | open class Server: ErrorEmitter, CustomStringConvertible {
    |            `- note: class 'Server' does not conform to the 'Sendable' protocol
 71 |
 72 |   private static let serverID = Atomics.ManagedAtomic<Int>(0)
    :
360 |           .configureHTTPServerPipeline(withServerUpgrade: upgrade)
361 |           .flatMap {
362 |             return channel.pipeline.addHandler(HTTPHandler(server: self),
    |                                                                    `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
363 |                                                name: Server.httpHandlerName)
364 |           }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:362:68: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
 68 |  * - ``Server/onListening(execute:)``
 69 |  */
 70 | open class Server: ErrorEmitter, CustomStringConvertible {
    |            `- note: class 'Server' does not conform to the 'Sendable' protocol
 71 |
 72 |   private static let serverID = Atomics.ManagedAtomic<Int>(0)
    :
360 |           .configureHTTPServerPipeline(withServerUpgrade: upgrade)
361 |           .flatMap {
362 |             return channel.pipeline.addHandler(HTTPHandler(server: self),
    |                                                                    `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
363 |                                                name: Server.httpHandlerName)
364 |           }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:156:13: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
 68 |  * - ``Server/onListening(execute:)``
 69 |  */
 70 | open class Server: ErrorEmitter, CustomStringConvertible {
    |            `- note: class 'Server' does not conform to the 'Sendable' protocol
 71 |
 72 |   private static let serverID = Atomics.ManagedAtomic<Int>(0)
    :
154 |         switch result {
155 |           case .success(let channel):
156 |             self.registerChannel(channel)
    |             `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
157 |
158 |           case .failure(let error):
/host/spi-builder-workspace/Sources/http/Server/Server.swift:360:59: warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
358 |       .childChannelInitializer { channel in
359 |         return channel.pipeline
360 |           .configureHTTPServerPipeline(withServerUpgrade: upgrade)
    |                                                           `- warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
361 |           .flatMap {
362 |             return channel.pipeline.addHandler(HTTPHandler(server: self),
/host/spi-builder-workspace/Sources/http/Server/Server.swift:362:48: warning: type 'Server.HTTPHandler' does not conform to the 'Sendable' protocol
360 |           .configureHTTPServerPipeline(withServerUpgrade: upgrade)
361 |           .flatMap {
362 |             return channel.pipeline.addHandler(HTTPHandler(server: self),
    |                                                `- warning: type 'Server.HTTPHandler' does not conform to the 'Sendable' protocol
363 |                                                name: Server.httpHandlerName)
364 |           }
    :
379 |   public static let httpHandlerName: String = "μ.http.server.handler"
380 |
381 |   private final class HTTPHandler : ChannelInboundHandler,
    |                       `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
382 |                                     RemovableChannelHandler
383 |   {
/host/spi-builder-workspace/Sources/http/Server/Server.swift:360:59: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a '@Sendable' closure
358 |       .childChannelInitializer { channel in
359 |         return channel.pipeline
360 |           .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
361 |           .flatMap {
362 |             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:362:68: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
 68 |  * - ``Server/onListening(execute:)``
 69 |  */
 70 | open class Server: ErrorEmitter, CustomStringConvertible {
    |            `- note: class 'Server' does not conform to the 'Sendable' protocol
 71 |
 72 |   private static let serverID = Atomics.ManagedAtomic<Int>(0)
    :
360 |           .configureHTTPServerPipeline(withServerUpgrade: upgrade)
361 |           .flatMap {
362 |             return channel.pipeline.addHandler(HTTPHandler(server: self),
    |                                                                    `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
363 |                                                name: Server.httpHandlerName)
364 |           }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:362:68: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
 68 |  * - ``Server/onListening(execute:)``
 69 |  */
 70 | open class Server: ErrorEmitter, CustomStringConvertible {
    |            `- note: class 'Server' does not conform to the 'Sendable' protocol
 71 |
 72 |   private static let serverID = Atomics.ManagedAtomic<Int>(0)
    :
360 |           .configureHTTPServerPipeline(withServerUpgrade: upgrade)
361 |           .flatMap {
362 |             return channel.pipeline.addHandler(HTTPHandler(server: self),
    |                                                                    `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
363 |                                                name: Server.httpHandlerName)
364 |           }
[360/361] Emitting module Macro
[361/361] Compiling Macro Macro.swift
[363/364] Compiling MacroTestUtilities TestServerResponse.swift
[364/364] Emitting module MacroTestUtilities
Build complete! (135.25s)
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",
        "PathTests.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",
        "Concurrency.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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:99ea6d26ace67c023f359493a2ac553a612b92a7f2dee009657225f46f43aa0e
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.