Build Information
Successful build of Macro, reference develop (6d691c), with Swift 6.1 for Linux on 1 May 2026 07:23:41 UTC.
Swift 6 data race errors: 28
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/swiftpackageindex/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>&1Build Log
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:109: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
99 | */
100 | @frozen
101 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
102 |
103 | @usableFromInline
:
107 | public extension EnvironmentValues {
108 |
109 | 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
110 |
111 | @inlinable
/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 {
[399/427] Compiling MacroCore EnvironmentValues.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 |
/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:109: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
99 | */
100 | @frozen
101 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
102 |
103 | @usableFromInline
:
107 | public extension EnvironmentValues {
108 |
109 | 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
110 |
111 | @inlinable
/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 {
[400/427] Compiling MacroCore ErrorEmitter.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 |
/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:109: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
99 | */
100 | @frozen
101 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
102 |
103 | @usableFromInline
:
107 | public extension EnvironmentValues {
108 |
109 | 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
110 |
111 | @inlinable
/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 {
[401/427] Compiling MacroCore MacroError.swift
/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 | }
[402/427] Compiling MacroCore NextTick.swift
/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 | }
[403/427] Compiling MacroCore CommandLine.swift
/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 | }
[404/427] Compiling MacroCore DetectXcode.swift
/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 | }
[405/427] Compiling MacroCore Environment.swift
/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 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MacroCore/Process/Process.swift:25:14: warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public extension process {
25 | static let nextTick :
| |- warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nextTick' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | (EventLoop?, @escaping () -> Void) -> Void
27 | = { MacroCore.shared.nextTick(on: $0, $1) }
/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 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MacroCore/Process/Process.swift:25:14: warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public extension process {
25 | static let nextTick :
| |- warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nextTick' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | (EventLoop?, @escaping () -> Void) -> Void
27 | = { MacroCore.shared.nextTick(on: $0, $1) }
/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 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MacroCore/Process/Process.swift:25:14: warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public extension process {
25 | static let nextTick :
| |- warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nextTick' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | (EventLoop?, @escaping () -> Void) -> Void
27 | = { MacroCore.shared.nextTick(on: $0, $1) }
/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 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MacroCore/Process/Process.swift:25:14: warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public extension process {
25 | static let nextTick :
| |- warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nextTick' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | (EventLoop?, @escaping () -> Void) -> Void
27 | = { MacroCore.shared.nextTick(on: $0, $1) }
/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 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MacroCore/Process/Process.swift:25:14: warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public extension process {
25 | static let nextTick :
| |- warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nextTick' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | (EventLoop?, @escaping () -> Void) -> Void
27 | = { MacroCore.shared.nextTick(on: $0, $1) }
/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/MacroCore.swift:287: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
285 | }
286 |
287 | 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
288 |
289 | public func disableAtExitHandler() {
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:287: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
285 | }
286 |
287 | 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
288 |
289 | public func disableAtExitHandler() {
[413/427] Compiling MacroCore ToString.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:287: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
285 | }
286 |
287 | 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
288 |
289 | public func disableAtExitHandler() {
[414/427] Compiling MacroCore LeftPad.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:287: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
285 | }
286 |
287 | 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
288 |
289 | public func disableAtExitHandler() {
[415/427] Compiling MacroCore MacroCore.swift
/host/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:287: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
285 | }
286 |
287 | 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
288 |
289 | public func disableAtExitHandler() {
[416/427] Compiling MacroCore Buffer.swift
[417/427] Compiling MacroCore BufferData.swift
[420/427] Compiling MacroCore BufferSpan.swift
[421/427] Compiling MacroCore BufferStrings.swift
[422/427] Compiling MacroCore WritableByteStream.swift
[423/427] Compiling MacroCore WritableByteStreamType.swift
[424/427] Compiling MacroCore WritableStreamBase.swift
[425/427] Compiling MacroCore WritableStreamType.swift
[426/427] Compiling MacroCore StringEncoding.swift
[427/427] 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:109: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
99 | */
100 | @frozen
101 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
102 |
103 | @usableFromInline
:
107 | public extension EnvironmentValues {
108 |
109 | 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
110 |
111 | @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:287: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
285 | }
286 |
287 | 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
288 |
289 | 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 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MacroCore/Process/Process.swift:25:14: warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public extension process {
25 | static let nextTick :
| |- warning: static property 'nextTick' is not concurrency-safe because non-'Sendable' type '((any EventLoop)?, @escaping () -> Void) -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nextTick' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | (EventLoop?, @escaping () -> Void) -> Void
27 | = { MacroCore.shared.nextTick(on: $0, $1) }
/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 {
[429/460] Emitting module Macro6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[430/460] Compiling Macro6 MainActorDefault.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[432/461] Compiling http Server.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 | }
[433/461] Compiling http ServerResponse.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 | }
[434/463] Compiling http QueryString.swift
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:50:20: warning: capture of 'execute' with non-sendable type '() -> R' in a '@Sendable' closure
48 | return loop.execute { module.release() }
49 | }
50 | let result = execute()
| |- warning: capture of 'execute' with non-sendable type '() -> R' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | loop.execute {
52 | yield(result)
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:52:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
50 | let result = execute()
51 | loop.execute {
52 | yield(result)
| |- 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'
53 | module.release()
54 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:52:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
50 | let result = execute()
51 | loop.execute {
52 | yield(result)
| |- 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'
53 | module.release()
54 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:52:15: warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
35 | */
36 | @inlinable
37 | static func run<R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
38 | _ execute : @escaping () -> R,
39 | then yield : @escaping ( R ) -> Void)
:
50 | let result = execute()
51 | loop.execute {
52 | yield(result)
| `- warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
53 | module.release()
54 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:90:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
88 | return loop.execute {
89 | assertionFailure("Inactive thread pool?")
90 | yield(ChannelError.ioOnClosedChannel, 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'
91 | module.release()
92 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:95:26: warning: capture of 'execute' with non-sendable type '() throws -> R' in a '@Sendable' closure
93 | }
94 | do {
95 | let result = try execute()
| |- warning: capture of 'execute' with non-sendable type '() throws -> R' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
96 | loop.execute {
97 | yield(nil, result)
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:90:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
88 | return loop.execute {
89 | assertionFailure("Inactive thread pool?")
90 | yield(ChannelError.ioOnClosedChannel, 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'
91 | module.release()
92 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:97:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
95 | let result = try execute()
96 | loop.execute {
97 | yield(nil, result)
| |- 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'
98 | module.release()
99 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:97:22: warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
78 | */
79 | @inlinable
80 | static func run<R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
81 | _ execute : @escaping () throws -> R,
82 | then yield : @escaping ( Swift.Error?, R? ) -> Void)
:
95 | let result = try execute()
96 | loop.execute {
97 | yield(nil, result)
| `- warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
98 | module.release()
99 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:103:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
101 | catch {
102 | loop.execute {
103 | 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'
104 | module.release()
105 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:130:41: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
128 | static func run<R>(_ execute: @escaping () -> R) async -> R {
129 | await withCheckedContinuation { continuation in
130 | run(execute, then: { continuation.resume(returning: $0) })
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
131 | }
132 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:156:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
154 | run(execute) { error, result in
155 | if let result {
156 | continuation.resume(returning: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
157 | }
158 | else {
[435/463] Compiling http Connection.swift
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:50:20: warning: capture of 'execute' with non-sendable type '() -> R' in a '@Sendable' closure
48 | return loop.execute { module.release() }
49 | }
50 | let result = execute()
| |- warning: capture of 'execute' with non-sendable type '() -> R' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | loop.execute {
52 | yield(result)
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:52:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
50 | let result = execute()
51 | loop.execute {
52 | yield(result)
| |- 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'
53 | module.release()
54 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:52:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
50 | let result = execute()
51 | loop.execute {
52 | yield(result)
| |- 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'
53 | module.release()
54 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:52:15: warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
35 | */
36 | @inlinable
37 | static func run<R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
38 | _ execute : @escaping () -> R,
39 | then yield : @escaping ( R ) -> Void)
:
50 | let result = execute()
51 | loop.execute {
52 | yield(result)
| `- warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
53 | module.release()
54 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:90:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
88 | return loop.execute {
89 | assertionFailure("Inactive thread pool?")
90 | yield(ChannelError.ioOnClosedChannel, 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'
91 | module.release()
92 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:95:26: warning: capture of 'execute' with non-sendable type '() throws -> R' in a '@Sendable' closure
93 | }
94 | do {
95 | let result = try execute()
| |- warning: capture of 'execute' with non-sendable type '() throws -> R' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
96 | loop.execute {
97 | yield(nil, result)
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:90:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
88 | return loop.execute {
89 | assertionFailure("Inactive thread pool?")
90 | yield(ChannelError.ioOnClosedChannel, 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'
91 | module.release()
92 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:97:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
95 | let result = try execute()
96 | loop.execute {
97 | yield(nil, result)
| |- 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'
98 | module.release()
99 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:97:22: warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
78 | */
79 | @inlinable
80 | static func run<R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
81 | _ execute : @escaping () throws -> R,
82 | then yield : @escaping ( Swift.Error?, R? ) -> Void)
:
95 | let result = try execute()
96 | loop.execute {
97 | yield(nil, result)
| `- warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
98 | module.release()
99 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:103:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
101 | catch {
102 | loop.execute {
103 | 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'
104 | module.release()
105 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:130:41: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
128 | static func run<R>(_ execute: @escaping () -> R) async -> R {
129 | await withCheckedContinuation { continuation in
130 | run(execute, then: { continuation.resume(returning: $0) })
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
131 | }
132 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:156:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
154 | run(execute) { error, result in
155 | if let result {
156 | continuation.resume(returning: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
157 | }
158 | else {
[436/463] Compiling http Agent.swift
/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 | }
[437/463] Compiling http ClientRequest.swift
/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 | }
[438/464] Compiling http URLRequestInit.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:178: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 | {
:
176 | eventLoop: eventLoop)
177 | .whenComplete { result in
178 | self.pendingWrites -= count
| `- warning: capture of 'self' with non-sendable type 'FileWriteStream' in a '@Sendable' closure
179 | assert(self.pendingWrites >= 0)
180 |
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:185:11: warning: capture of 'whenDone' with non-sendable type '() -> Void' in a '@Sendable' closure
183 | }
184 |
185 | 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'
186 |
187 | if self.pendingWrites < 1 {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:179: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 | {
:
177 | .whenComplete { result in
178 | self.pendingWrites -= count
179 | 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
180 |
181 | if case .failure(let error) = result {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:239:25: warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
237 | fileIO.openFile(_deprecatedPath: path, mode: .write,
238 | flags: flags, eventLoop: eventLoop)
239 | .whenComplete(_handleOpenResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
240 | }
241 | func _handleOpenResult(_ result: Result<NIOFileHandle, Swift.Error>) {
[439/464] Compiling http URLSessionAgent.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:178: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 | {
:
176 | eventLoop: eventLoop)
177 | .whenComplete { result in
178 | self.pendingWrites -= count
| `- warning: capture of 'self' with non-sendable type 'FileWriteStream' in a '@Sendable' closure
179 | assert(self.pendingWrites >= 0)
180 |
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:185:11: warning: capture of 'whenDone' with non-sendable type '() -> Void' in a '@Sendable' closure
183 | }
184 |
185 | 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'
186 |
187 | if self.pendingWrites < 1 {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:179: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 | {
:
177 | .whenComplete { result in
178 | self.pendingWrites -= count
179 | 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
180 |
181 | if case .failure(let error) = result {
/host/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:239:25: warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
237 | fileIO.openFile(_deprecatedPath: path, mode: .write,
238 | flags: flags, eventLoop: eventLoop)
239 | .whenComplete(_handleOpenResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
240 | }
241 | func _handleOpenResult(_ result: Result<NIOFileHandle, Swift.Error>) {
/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:127:25: warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
125 | fileIO.openFile(_deprecatedPath: path, mode: .read,
126 | eventLoop: eventLoop)
127 | .whenComplete(_handleOpenResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
128 | }
129 | func _handleOpenResult(_ result: Result<NIOFileHandle, Swift.Error>) {
/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:127:25: warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
125 | fileIO.openFile(_deprecatedPath: path, mode: .read,
126 | eventLoop: eventLoop)
127 | .whenComplete(_handleOpenResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
128 | }
129 | func _handleOpenResult(_ result: Result<NIOFileHandle, Swift.Error>) {
[444/464] Compiling http URLSessionClientRequest.swift
/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: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 | }
[445/464] Compiling http BasicAuth.swift
/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: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 | }
[446/464] Compiling http HTTPHeadersHolder.swift
[447/464] Compiling http OutgoingMessage.swift
[448/464] Compiling http Globals.swift
/host/spi-builder-workspace/Sources/http/Globals.swift:17:14: warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | * `HTTPMethod` also supports a custom case.
16 | */
17 | static var METHODS : [ String ] = [
| |- warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'METHODS' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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 )
[449/464] Compiling http IncomingMessage.swift
/host/spi-builder-workspace/Sources/http/Globals.swift:17:14: warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | * `HTTPMethod` also supports a custom case.
16 | */
17 | static var METHODS : [ String ] = [
| |- warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'METHODS' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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 )
[450/464] Emitting module fs
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
199 |
200 | loop.execute {
201 | 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'
202 | module.release()
203 | }
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
199 |
200 | loop.execute {
201 | 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'
202 | module.release()
203 | }
/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 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:50:20: warning: capture of 'execute' with non-sendable type '() -> R' in a '@Sendable' closure
48 | return loop.execute { module.release() }
49 | }
50 | let result = execute()
| |- warning: capture of 'execute' with non-sendable type '() -> R' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | loop.execute {
52 | yield(result)
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:52:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
50 | let result = execute()
51 | loop.execute {
52 | yield(result)
| |- 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'
53 | module.release()
54 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:52:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
50 | let result = execute()
51 | loop.execute {
52 | yield(result)
| |- 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'
53 | module.release()
54 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:52:15: warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
35 | */
36 | @inlinable
37 | static func run<R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
38 | _ execute : @escaping () -> R,
39 | then yield : @escaping ( R ) -> Void)
:
50 | let result = execute()
51 | loop.execute {
52 | yield(result)
| `- warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
53 | module.release()
54 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:90:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
88 | return loop.execute {
89 | assertionFailure("Inactive thread pool?")
90 | yield(ChannelError.ioOnClosedChannel, 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'
91 | module.release()
92 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:95:26: warning: capture of 'execute' with non-sendable type '() throws -> R' in a '@Sendable' closure
93 | }
94 | do {
95 | let result = try execute()
| |- warning: capture of 'execute' with non-sendable type '() throws -> R' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
96 | loop.execute {
97 | yield(nil, result)
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:90:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
88 | return loop.execute {
89 | assertionFailure("Inactive thread pool?")
90 | yield(ChannelError.ioOnClosedChannel, 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'
91 | module.release()
92 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:97:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
95 | let result = try execute()
96 | loop.execute {
97 | yield(nil, result)
| |- 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'
98 | module.release()
99 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:97:22: warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
78 | */
79 | @inlinable
80 | static func run<R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
81 | _ execute : @escaping () throws -> R,
82 | then yield : @escaping ( Swift.Error?, R? ) -> Void)
:
95 | let result = try execute()
96 | loop.execute {
97 | yield(nil, result)
| `- warning: capture of 'result' with non-sendable type 'R' in a '@Sendable' closure
98 | module.release()
99 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:103:11: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
101 | catch {
102 | loop.execute {
103 | 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'
104 | module.release()
105 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:130:41: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
128 | static func run<R>(_ execute: @escaping () -> R) async -> R {
129 | await withCheckedContinuation { continuation in
130 | run(execute, then: { continuation.resume(returning: $0) })
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
131 | }
132 | }
/host/spi-builder-workspace/Sources/fs/Utils/Run.swift:156:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
154 | run(execute) { error, result in
155 | if let result {
156 | continuation.resume(returning: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
157 | }
158 | else {
/host/spi-builder-workspace/Sources/fs/fsAwait.swift:26:30: warning: sending 'val' risks causing data races; this is an error in the Swift 6 language mode
24 | fn { err, val in
25 | if let err { cont.resume(throwing: err) }
26 | else if let val { cont.resume(returning: val) }
| |- warning: sending 'val' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'val' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
27 | else { cont.resume(throwing: fallback) }
28 | }
/host/spi-builder-workspace/Sources/fs/File.swift:67:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
65 |
66 | loop.execute {
67 | 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'
68 | module.release()
69 | }
/host/spi-builder-workspace/Sources/fs/File.swift:67:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
65 |
66 | loop.execute {
67 | 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'
68 | module.release()
69 | }
/host/spi-builder-workspace/Sources/fs/File.swift:115:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
113 |
114 | loop.execute {
115 | 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'
116 | module.release()
117 | }
/host/spi-builder-workspace/Sources/fs/File.swift:115:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
113 |
114 | loop.execute {
115 | 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'
116 | module.release()
117 | }
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
199 |
200 | loop.execute {
201 | 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'
202 | module.release()
203 | }
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
199 |
200 | loop.execute {
201 | 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'
202 | module.release()
203 | }
/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:139:5: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'T.Type', consider removing it
137 | let loop = module.fallbackEventLoop(eventLoop)
138 |
139 | nonisolated(unsafe) let type = type // avoid the Sendable type warning
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'T.Type', consider removing it
140 | FileSystemModule.threadPool.submit { shouldRun in
141 | let result : T?
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:163:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
161 |
162 | loop.execute {
163 | 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'
164 | module.release()
165 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:163:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
161 |
162 | loop.execute {
163 | 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'
164 | module.release()
165 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:163: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 = T.self,
:
161 |
162 | loop.execute {
163 | yield(resultError, result)
| `- warning: capture of 'result' with non-sendable type 'T?' in a '@Sendable' closure
164 | module.release()
165 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:211:65: warning: capture of 'json' with non-sendable type 'Any' in a '@Sendable' closure
209 | if case shouldRun = NIOThreadPool.WorkItemState.active {
210 | do {
211 | let data = try JSONSerialization.data(withJSONObject: json,
| `- warning: capture of 'json' with non-sendable type 'Any' in a '@Sendable' closure
212 | options: options)
213 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:225:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
223 |
224 | loop.execute {
225 | 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'
226 | module.release()
227 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:225:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
223 |
224 | loop.execute {
225 | 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'
226 | module.release()
227 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:273:47: warning: capture of 'json' with non-sendable type 'T' in a '@Sendable' closure
255 | * if one occurred, or nil.
256 | */
257 | static func writeFile<T>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
258 | _ path : String,
259 | _ json : T,
:
271 | if case shouldRun = NIOThreadPool.WorkItemState.active {
272 | do {
273 | let data = try makeEncoder().encode(json)
| `- warning: capture of 'json' with non-sendable type 'T' in a '@Sendable' closure
274 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
275 | resultError = nil
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:286:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
284 |
285 | loop.execute {
286 | 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'
287 | module.release()
288 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:286:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
284 |
285 | loop.execute {
286 | 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'
287 | module.release()
288 | }
/host/spi-builder-workspace/Sources/fs/File.swift:67:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
65 |
66 | loop.execute {
67 | 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'
68 | module.release()
69 | }
/host/spi-builder-workspace/Sources/fs/File.swift:67:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
65 |
66 | loop.execute {
67 | 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'
68 | module.release()
69 | }
/host/spi-builder-workspace/Sources/fs/File.swift:115:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
113 |
114 | loop.execute {
115 | 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'
116 | module.release()
117 | }
/host/spi-builder-workspace/Sources/fs/File.swift:115:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
113 |
114 | loop.execute {
115 | 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'
116 | module.release()
117 | }
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
199 |
200 | loop.execute {
201 | 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'
202 | module.release()
203 | }
/host/spi-builder-workspace/Sources/fs/File.swift:201:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
199 |
200 | loop.execute {
201 | 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'
202 | module.release()
203 | }
/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:139:5: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'T.Type', consider removing it
137 | let loop = module.fallbackEventLoop(eventLoop)
138 |
139 | nonisolated(unsafe) let type = type // avoid the Sendable type warning
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'T.Type', consider removing it
140 | FileSystemModule.threadPool.submit { shouldRun in
141 | let result : T?
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:163:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
161 |
162 | loop.execute {
163 | 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'
164 | module.release()
165 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:163:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
161 |
162 | loop.execute {
163 | 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'
164 | module.release()
165 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:163: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 = T.self,
:
161 |
162 | loop.execute {
163 | yield(resultError, result)
| `- warning: capture of 'result' with non-sendable type 'T?' in a '@Sendable' closure
164 | module.release()
165 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:211:65: warning: capture of 'json' with non-sendable type 'Any' in a '@Sendable' closure
209 | if case shouldRun = NIOThreadPool.WorkItemState.active {
210 | do {
211 | let data = try JSONSerialization.data(withJSONObject: json,
| `- warning: capture of 'json' with non-sendable type 'Any' in a '@Sendable' closure
212 | options: options)
213 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:225:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
223 |
224 | loop.execute {
225 | 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'
226 | module.release()
227 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:225:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
223 |
224 | loop.execute {
225 | 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'
226 | module.release()
227 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:273:47: warning: capture of 'json' with non-sendable type 'T' in a '@Sendable' closure
255 | * if one occurred, or nil.
256 | */
257 | static func writeFile<T>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
258 | _ path : String,
259 | _ json : T,
:
271 | if case shouldRun = NIOThreadPool.WorkItemState.active {
272 | do {
273 | let data = try makeEncoder().encode(json)
| `- warning: capture of 'json' with non-sendable type 'T' in a '@Sendable' closure
274 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
275 | resultError = nil
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:286:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
284 |
285 | loop.execute {
286 | 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'
287 | module.release()
288 | }
/host/spi-builder-workspace/Sources/fs/JSONFile.swift:286:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
284 |
285 | loop.execute {
286 | 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'
287 | module.release()
288 | }
[457/464] Compiling http http.swift
[458/464] 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 )
[459/464] Compiling fs fs.swift
/host/spi-builder-workspace/Sources/fs/fsAwait.swift:26:30: warning: sending 'val' risks causing data races; this is an error in the Swift 6 language mode
24 | fn { err, val in
25 | if let err { cont.resume(throwing: err) }
26 | else if let val { cont.resume(returning: val) }
| |- warning: sending 'val' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'val' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
27 | else { cont.resume(throwing: fallback) }
28 | }
[460/464] Compiling fs fsAwait.swift
/host/spi-builder-workspace/Sources/fs/fsAwait.swift:26:30: warning: sending 'val' risks causing data races; this is an error in the Swift 6 language mode
24 | fn { err, val in
25 | if let err { cont.resume(throwing: err) }
26 | else if let val { cont.resume(returning: val) }
| |- warning: sending 'val' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'val' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
27 | else { cont.resume(throwing: fallback) }
28 | }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:251:13: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
54 | * - ``Server/onListening(execute:)``
55 | */
56 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
57 |
58 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
249 | switch result {
250 | case .success(let channel):
251 | self.registerChannel(channel)
| `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
252 |
253 | case .failure(let error):
/host/spi-builder-workspace/Sources/http/Server/Server.swift:465:61: warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
463 | return preFuture.flatMap {
464 | channel.pipeline
465 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
| `- warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
466 | }
467 | .flatMap {
/host/spi-builder-workspace/Sources/http/Server/Server.swift:461:25: warning: capture of 'channelConfigurator' with non-sendable type '((any Channel) -> EventLoopFuture<Void>)?' in a '@Sendable' closure
459 |
460 | .childChannelInitializer { [channelConfigurator] channel in
461 | let preFuture = channelConfigurator?(channel)
| |- warning: capture of 'channelConfigurator' with non-sendable type '((any Channel) -> EventLoopFuture<Void>)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
462 | ?? channel.eventLoop.makeSucceededVoidFuture()
463 | return preFuture.flatMap {
/host/spi-builder-workspace/Sources/http/Server/Server.swift:465:61: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a '@Sendable' closure
463 | return preFuture.flatMap {
464 | channel.pipeline
465 | .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
466 | }
467 | .flatMap {
/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:470:18: warning: capture of 'opts' with non-sendable type 'Server.Options' in a '@Sendable' closure
82 |
83 | ///Configuration options for the HTTP server.
84 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
85 |
86 | /// The base logger to use.
:
468 | channel.eventLoop.makeCompletedFuture {
469 | let p = channel.pipeline.syncOperations
470 | if opts.needsIdleHandler {
| `- warning: capture of 'opts' with non-sendable type 'Server.Options' in a '@Sendable' closure
471 | let rt = opts.readTimeout > 0
472 | ? TimeAmount.milliseconds(Int64(opts.readTimeout))
/host/spi-builder-workspace/Sources/http/Server/Server.swift:487:52: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
54 | * - ``Server/onListening(execute:)``
55 | */
56 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
57 |
58 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
485 | name: Server.closeOnIdleHandlerName)
486 | }
487 | try p.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
488 | name: Server.httpHandlerName)
489 | }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:465:61: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a '@Sendable' closure
463 | return preFuture.flatMap {
464 | channel.pipeline
465 | .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
466 | }
467 | .flatMap {
/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:470:18: warning: capture of 'opts' with non-sendable type 'Server.Options' in a '@Sendable' closure
82 |
83 | ///Configuration options for the HTTP server.
84 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
85 |
86 | /// The base logger to use.
:
468 | channel.eventLoop.makeCompletedFuture {
469 | let p = channel.pipeline.syncOperations
470 | if opts.needsIdleHandler {
| `- warning: capture of 'opts' with non-sendable type 'Server.Options' in a '@Sendable' closure
471 | let rt = opts.readTimeout > 0
472 | ? TimeAmount.milliseconds(Int64(opts.readTimeout))
/host/spi-builder-workspace/Sources/http/Server/Server.swift:487:52: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
54 | * - ``Server/onListening(execute:)``
55 | */
56 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
57 |
58 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
485 | name: Server.closeOnIdleHandlerName)
486 | }
487 | try p.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
488 | name: Server.httpHandlerName)
489 | }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:470:18: warning: capture of 'opts' with non-sendable type 'Server.Options' in an isolated closure
82 |
83 | ///Configuration options for the HTTP server.
84 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
85 |
86 | /// The base logger to use.
:
468 | channel.eventLoop.makeCompletedFuture {
469 | let p = channel.pipeline.syncOperations
470 | if opts.needsIdleHandler {
| `- warning: capture of 'opts' with non-sendable type 'Server.Options' in an isolated closure
471 | let rt = opts.readTimeout > 0
472 | ? TimeAmount.milliseconds(Int64(opts.readTimeout))
/host/spi-builder-workspace/Sources/http/Server/Server.swift:487:52: warning: capture of 'self' with non-sendable type 'Server' in an isolated closure
54 | * - ``Server/onListening(execute:)``
55 | */
56 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
57 |
58 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
485 | name: Server.closeOnIdleHandlerName)
486 | }
487 | try p.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in an isolated closure
488 | name: Server.httpHandlerName)
489 | }
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:383:11: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
381 | if case .failure(let error) = result {
382 | self.handleError(error)
383 | 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'
384 | }
385 | else { whenDone(nil) }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:251:13: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
54 | * - ``Server/onListening(execute:)``
55 | */
56 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
57 |
58 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
249 | switch result {
250 | case .success(let channel):
251 | self.registerChannel(channel)
| `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
252 |
253 | case .failure(let error):
/host/spi-builder-workspace/Sources/http/Server/Server.swift:465:61: warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
463 | return preFuture.flatMap {
464 | channel.pipeline
465 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
| `- warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
466 | }
467 | .flatMap {
/host/spi-builder-workspace/Sources/http/Server/Server.swift:461:25: warning: capture of 'channelConfigurator' with non-sendable type '((any Channel) -> EventLoopFuture<Void>)?' in a '@Sendable' closure
459 |
460 | .childChannelInitializer { [channelConfigurator] channel in
461 | let preFuture = channelConfigurator?(channel)
| |- warning: capture of 'channelConfigurator' with non-sendable type '((any Channel) -> EventLoopFuture<Void>)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
462 | ?? channel.eventLoop.makeSucceededVoidFuture()
463 | return preFuture.flatMap {
/host/spi-builder-workspace/Sources/http/Server/Server.swift:465:61: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a '@Sendable' closure
463 | return preFuture.flatMap {
464 | channel.pipeline
465 | .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
466 | }
467 | .flatMap {
/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:470:18: warning: capture of 'opts' with non-sendable type 'Server.Options' in a '@Sendable' closure
82 |
83 | ///Configuration options for the HTTP server.
84 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
85 |
86 | /// The base logger to use.
:
468 | channel.eventLoop.makeCompletedFuture {
469 | let p = channel.pipeline.syncOperations
470 | if opts.needsIdleHandler {
| `- warning: capture of 'opts' with non-sendable type 'Server.Options' in a '@Sendable' closure
471 | let rt = opts.readTimeout > 0
472 | ? TimeAmount.milliseconds(Int64(opts.readTimeout))
/host/spi-builder-workspace/Sources/http/Server/Server.swift:487:52: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
54 | * - ``Server/onListening(execute:)``
55 | */
56 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
57 |
58 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
485 | name: Server.closeOnIdleHandlerName)
486 | }
487 | try p.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
488 | name: Server.httpHandlerName)
489 | }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:465:61: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a '@Sendable' closure
463 | return preFuture.flatMap {
464 | channel.pipeline
465 | .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
466 | }
467 | .flatMap {
/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:470:18: warning: capture of 'opts' with non-sendable type 'Server.Options' in a '@Sendable' closure
82 |
83 | ///Configuration options for the HTTP server.
84 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
85 |
86 | /// The base logger to use.
:
468 | channel.eventLoop.makeCompletedFuture {
469 | let p = channel.pipeline.syncOperations
470 | if opts.needsIdleHandler {
| `- warning: capture of 'opts' with non-sendable type 'Server.Options' in a '@Sendable' closure
471 | let rt = opts.readTimeout > 0
472 | ? TimeAmount.milliseconds(Int64(opts.readTimeout))
/host/spi-builder-workspace/Sources/http/Server/Server.swift:487:52: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
54 | * - ``Server/onListening(execute:)``
55 | */
56 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
57 |
58 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
485 | name: Server.closeOnIdleHandlerName)
486 | }
487 | try p.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
488 | name: Server.httpHandlerName)
489 | }
/host/spi-builder-workspace/Sources/http/Server/Server.swift:470:18: warning: capture of 'opts' with non-sendable type 'Server.Options' in an isolated closure
82 |
83 | ///Configuration options for the HTTP server.
84 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
85 |
86 | /// The base logger to use.
:
468 | channel.eventLoop.makeCompletedFuture {
469 | let p = channel.pipeline.syncOperations
470 | if opts.needsIdleHandler {
| `- warning: capture of 'opts' with non-sendable type 'Server.Options' in an isolated closure
471 | let rt = opts.readTimeout > 0
472 | ? TimeAmount.milliseconds(Int64(opts.readTimeout))
/host/spi-builder-workspace/Sources/http/Server/Server.swift:487:52: warning: capture of 'self' with non-sendable type 'Server' in an isolated closure
54 | * - ``Server/onListening(execute:)``
55 | */
56 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
57 |
58 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
485 | name: Server.closeOnIdleHandlerName)
486 | }
487 | try p.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in an isolated closure
488 | name: Server.httpHandlerName)
489 | }
/host/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:383:11: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
381 | if case .failure(let error) = result {
382 | self.handleError(error)
383 | 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'
384 | }
385 | else { whenDone(nil) }
[467/473] Emitting module Macro
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[468/473] Compiling Macro Macro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[469/474] Emitting module ws
/host/spi-builder-workspace/Sources/ws/Server.swift:143:56: warning: converting non-sendable function value to '@Sendable (any Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>' may introduce data races
141 | }
142 |
143 | return NIOWebSocketServerUpgrader(shouldUpgrade: shouldUpgrade,
| `- warning: converting non-sendable function value to '@Sendable (any Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>' may introduce data races
144 | upgradePipelineHandler: upgradeHandler)
145 | }()
/host/spi-builder-workspace/Sources/ws/Server.swift:144:65: warning: converting non-sendable function value to '@Sendable (any Channel, HTTPRequestHead) -> EventLoopFuture<Void>' may introduce data races
142 |
143 | return NIOWebSocketServerUpgrader(shouldUpgrade: shouldUpgrade,
144 | upgradePipelineHandler: upgradeHandler)
| `- warning: converting non-sendable function value to '@Sendable (any Channel, HTTPRequestHead) -> EventLoopFuture<Void>' may introduce data races
145 | }()
146 |
/host/spi-builder-workspace/Sources/ws/Server.swift:132:16: warning: capture of 'self' with non-sendable type 'WebSocket.Server' in a '@Sendable' closure
38 | * ```
39 | */
40 | open class Server: http.Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
41 | // This is going to be a little different to Node, this directly hooks up
42 | // with NIO.
:
130 | }
131 | .map {
132 | if self._connectionListeners.isEmpty {
| `- warning: capture of 'self' with non-sendable type 'WebSocket.Server' in a '@Sendable' closure
133 | log.error("no WebSocket connection listeners:", self)
134 | assertionFailure("connection listeners modified during upgrade")
/host/spi-builder-workspace/Sources/ws/Server.swift:138:46: warning: capture of 'ws' with non-sendable type 'WebSocket' in a '@Sendable' closure
136 | }
137 | else {
138 | self._connectionListeners.emit(ws)
| `- warning: capture of 'ws' with non-sendable type 'WebSocket' in a '@Sendable' closure
139 | }
140 | }
/host/spi-builder-workspace/Sources/ws/WebSocket.swift:52:12: note: class 'WebSocket' does not conform to the 'Sendable' protocol
50 | * ```
51 | */
52 | open class WebSocket: ErrorEmitter {
| `- note: class 'WebSocket' does not conform to the 'Sendable' protocol
53 |
54 | // MARK: - Types
/host/spi-builder-workspace/Sources/ws/WebSocket.swift:538:14: warning: static property 'schemeToBootstrap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
536 |
537 | /// Register custom bootstraps for schemes (e.g. TLS).
538 | static var schemeToBootstrap : [ String : WebSocketBootstrap ] = [
| |- warning: static property 'schemeToBootstrap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'schemeToBootstrap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'schemeToBootstrap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
539 | "ws": makePlainClientBootstrap
540 | ]
[471/474] Compiling ws ws.swift
[472/474] Compiling ws WebSocketConnection.swift
/host/spi-builder-workspace/Sources/ws/WebSocketConnection.swift:181:7: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
179 | data: data)
180 | _ = context.write(self.wrapOutboundOut(frame)).flatMap {
181 | context.close(mode: .output)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
182 | }
183 | awaitingClose = true
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1859:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1857 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1858 | /// `ChannelHandler`.
1859 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1860 | // visible for ChannelPipeline to modify
1861 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/ws/WebSocketConnection.swift:201:7: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
199 | data: closeDataCode)
200 | _ = context.write(wrapOutboundOut(closeFrame)).map { () in
201 | context.close(promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
202 | self.ws.handleRemoteClose()
203 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1859:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1857 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1858 | /// `ChannelHandler`.
1859 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1860 | // visible for ChannelPipeline to modify
1861 | fileprivate var next: Optional<ChannelHandlerContext>
[473/476] Compiling ws Server.swift
/host/spi-builder-workspace/Sources/ws/Server.swift:143:56: warning: converting non-sendable function value to '@Sendable (any Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>' may introduce data races
141 | }
142 |
143 | return NIOWebSocketServerUpgrader(shouldUpgrade: shouldUpgrade,
| `- warning: converting non-sendable function value to '@Sendable (any Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>' may introduce data races
144 | upgradePipelineHandler: upgradeHandler)
145 | }()
/host/spi-builder-workspace/Sources/ws/Server.swift:144:65: warning: converting non-sendable function value to '@Sendable (any Channel, HTTPRequestHead) -> EventLoopFuture<Void>' may introduce data races
142 |
143 | return NIOWebSocketServerUpgrader(shouldUpgrade: shouldUpgrade,
144 | upgradePipelineHandler: upgradeHandler)
| `- warning: converting non-sendable function value to '@Sendable (any Channel, HTTPRequestHead) -> EventLoopFuture<Void>' may introduce data races
145 | }()
146 |
/host/spi-builder-workspace/Sources/ws/Server.swift:132:16: warning: capture of 'self' with non-sendable type 'WebSocket.Server' in a '@Sendable' closure
38 | * ```
39 | */
40 | open class Server: http.Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
41 | // This is going to be a little different to Node, this directly hooks up
42 | // with NIO.
:
130 | }
131 | .map {
132 | if self._connectionListeners.isEmpty {
| `- warning: capture of 'self' with non-sendable type 'WebSocket.Server' in a '@Sendable' closure
133 | log.error("no WebSocket connection listeners:", self)
134 | assertionFailure("connection listeners modified during upgrade")
/host/spi-builder-workspace/Sources/ws/Server.swift:138:46: warning: capture of 'ws' with non-sendable type 'WebSocket' in a '@Sendable' closure
136 | }
137 | else {
138 | self._connectionListeners.emit(ws)
| `- warning: capture of 'ws' with non-sendable type 'WebSocket' in a '@Sendable' closure
139 | }
140 | }
/host/spi-builder-workspace/Sources/ws/WebSocket.swift:52:12: note: class 'WebSocket' does not conform to the 'Sendable' protocol
50 | * ```
51 | */
52 | open class WebSocket: ErrorEmitter {
| `- note: class 'WebSocket' does not conform to the 'Sendable' protocol
53 |
54 | // MARK: - Types
[474/476] Compiling ws WebSocket.swift
/host/spi-builder-workspace/Sources/ws/WebSocket.swift:538:14: warning: static property 'schemeToBootstrap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
536 |
537 | /// Register custom bootstraps for schemes (e.g. TLS).
538 | static var schemeToBootstrap : [ String : WebSocketBootstrap ] = [
| |- warning: static property 'schemeToBootstrap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'schemeToBootstrap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'schemeToBootstrap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
539 | "ws": makePlainClientBootstrap
540 | ]
/host/spi-builder-workspace/Sources/ws/WebSocket.swift:131:28: warning: converting non-sendable function value to '@Sendable (Result<any Channel, any Error>) -> Void' may introduce data races
129 |
130 | bootstrap.connect(host: host, port: port)
131 | .whenComplete(self.handleConnectResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<any Channel, any Error>) -> Void' may introduce data races
132 | }
133 | else {
/host/spi-builder-workspace/Sources/ws/WebSocket.swift:135:28: warning: converting non-sendable function value to '@Sendable (Result<any Channel, any Error>) -> Void' may introduce data races
133 | else {
134 | bootstrap.connect(unixDomainSocketPath: url.path)
135 | .whenComplete(self.handleConnectResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<any Channel, any Error>) -> Void' may introduce data races
136 | }
137 | }
/host/spi-builder-workspace/Sources/ws/WebSocket.swift:196:5: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'T.Type', consider removing it
194 | public func onMessage<T: Decodable>(execute: @escaping (T) -> Void) -> Self {
195 | // Note: self-cycle, but that is OK, will be broken on close!
196 | nonisolated(unsafe) let type = T.self // avoid sendable type warning
| `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'T.Type', consider removing it
197 | _dataListeners.add { [self] data in
198 | do {
/host/spi-builder-workspace/Sources/ws/WebSocket.swift:268:7: warning: capture of 'self' with non-sendable type 'WebSocket?' in a '@Sendable' closure
50 | * ```
51 | */
52 | open class WebSocket: ErrorEmitter {
| `- note: class 'WebSocket' does not conform to the 'Sendable' protocol
53 |
54 | // MARK: - Types
:
266 | let frame = WebSocketFrame(fin: true, opcode: .connectionClose, data: data)
267 | channel.writeAndFlush(frame).whenComplete { [weak self] _ in
268 | self?.finishClose()
| `- warning: capture of 'self' with non-sendable type 'WebSocket?' in a '@Sendable' closure
269 | }
270 | }
/host/spi-builder-workspace/Sources/ws/WebSocket.swift:353:51: warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
351 | let frame = WebSocketFrame(fin: true, opcode: .ping,
352 | data: buffer)
353 | channel.writeAndFlush(frame).whenFailure(self.emit(error:))
| `- warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
354 | }
355 |
/host/spi-builder-workspace/Sources/ws/WebSocket.swift:386:51: warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
384 | let frame = WebSocketFrame(fin: true, opcode: opcode,
385 | data: buffer)
386 | channel.writeAndFlush(frame).whenFailure(self.emit(error:))
| `- warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
387 | }
388 |
/host/spi-builder-workspace/Sources/ws/WebSocket.swift:618:53: warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
616 | return channel.pipeline
617 | .addHTTPClientHandlers(leftOverBytesStrategy: .forwardBytes,
618 | withClientUpgrade: config)
| `- warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
619 | .flatMap {
620 | channel.eventLoop.makeCompletedFuture {
[475/477] Compiling MacroTestUtilities TestServerResponse.swift
[476/477] Emitting module MacroTestUtilities
Build complete! (133.14s)
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.97.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" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Macro",
"targets" : [
"Macro"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Macro6",
"targets" : [
"Macro6"
],
"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" : "ws",
"targets" : [
"ws"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MacroTestUtilities",
"targets" : [
"MacroTestUtilities"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "xsys",
"module_type" : "SwiftTarget",
"name" : "xsys",
"path" : "Sources/xsys",
"product_memberships" : [
"Macro",
"Macro6",
"MacroCore",
"xsys",
"http",
"fs",
"ws",
"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" : "ws",
"module_type" : "SwiftTarget",
"name" : "ws",
"path" : "Sources/ws",
"product_dependencies" : [
"NIO",
"NIOConcurrencyHelpers",
"NIOWebSocket"
],
"product_memberships" : [
"ws"
],
"sources" : [
"Server.swift",
"WebSocket.swift",
"WebSocketConnection.swift",
"ws.swift"
],
"target_dependencies" : [
"MacroCore",
"http"
],
"type" : "library"
},
{
"c99name" : "http",
"module_type" : "SwiftTarget",
"name" : "http",
"path" : "Sources/http",
"product_dependencies" : [
"NIO",
"NIOConcurrencyHelpers",
"NIOHTTP1"
],
"product_memberships" : [
"Macro",
"http",
"ws",
"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/Connection.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/Run.swift",
"Utils/StatStruct.swift",
"fs.swift",
"fsAwait.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",
"KeepAliveTests.swift",
"MacroTests.swift",
"NextTickTests.swift",
"PathTests.swift",
"WebSocketTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"MacroTestUtilities",
"ws"
],
"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",
"Macro6",
"MacroCore",
"http",
"fs",
"ws",
"MacroTestUtilities"
],
"sources" : [
"Buffer/Buffer.swift",
"Buffer/BufferData.swift",
"Buffer/BufferDeprecations.swift",
"Buffer/BufferHexEncoding.swift",
"Buffer/BufferSpan.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" : "Macro6Tests",
"module_type" : "SwiftTarget",
"name" : "Macro6Tests",
"path" : "Tests/Macro6Tests",
"sources" : [
"MainActorNextTickTests.swift",
"NextTickTests.swift"
],
"target_dependencies" : [
"Macro6",
"MacroTestUtilities"
],
"type" : "test"
},
{
"c99name" : "Macro6",
"module_type" : "SwiftTarget",
"name" : "Macro6",
"path" : "Sources/Macro6",
"product_dependencies" : [
"NIO"
],
"product_memberships" : [
"Macro",
"Macro6",
"MacroTestUtilities"
],
"sources" : [
"MainActorDefault.swift"
],
"target_dependencies" : [
"MacroCore"
],
"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",
"Macro6"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7bfd71e9384436264431030299dc8a2d42d0664a168cfa1a5dd84c9bc592ccf
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
Done.