Build Information
Successful build of carton, reference main (dc09a0
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 02:43:06 UTC.
Swift 6 data race errors: 46
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Build Log
56 | /// The standard error writer.
57 | public static let stderr = InteractiveWriter(stream: .stderr)
58 |
59 | /// The standard output writer.
60 | public static let stdout = InteractiveWriter(stream: .stdout)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'InteractiveWriter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stdout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// The terminal controller, if present.
[286/393] Compiling CartonCore Environment.swift
[287/393] Compiling CartonCore FoundationProcessEx.swift
[288/393] Emitting module CartonCore
/Users/admin/builder/spi-builder-workspace/Sources/CartonCore/InteractiveWriter.swift:23:21: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type '_LocalFileOutputByteStream' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Implements file output stream for local file system.
18 | public final class _LocalFileOutputByteStream {
| `- note: class '_LocalFileOutputByteStream' does not conform to the 'Sendable' protocol
19 |
20 | /// The pointer to the file.
21 | let filePointer: FILEPointer
22 |
23 | public static let stdout = _LocalFileOutputByteStream(filePointer: Foundation.stdout)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type '_LocalFileOutputByteStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stdout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | public static let stderr = _LocalFileOutputByteStream(filePointer: Foundation.stderr)
25 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonCore/InteractiveWriter.swift:24:21: warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type '_LocalFileOutputByteStream' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Implements file output stream for local file system.
18 | public final class _LocalFileOutputByteStream {
| `- note: class '_LocalFileOutputByteStream' does not conform to the 'Sendable' protocol
19 |
20 | /// The pointer to the file.
:
22 |
23 | public static let stdout = _LocalFileOutputByteStream(filePointer: Foundation.stdout)
24 | public static let stderr = _LocalFileOutputByteStream(filePointer: Foundation.stderr)
| |- warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type '_LocalFileOutputByteStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stderr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | /// Instantiate using the file pointer.
/Users/admin/builder/spi-builder-workspace/Sources/CartonCore/InteractiveWriter.swift:57:21: warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'InteractiveWriter' may have shared mutable state; this is an error in the Swift 6 language mode
53 | /// If underlying stream is a not tty, the string will be written in without any
54 | /// formatting.
55 | public final class InteractiveWriter {
| `- note: class 'InteractiveWriter' does not conform to the 'Sendable' protocol
56 | /// The standard error writer.
57 | public static let stderr = InteractiveWriter(stream: .stderr)
| |- warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'InteractiveWriter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stderr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// The standard output writer.
/Users/admin/builder/spi-builder-workspace/Sources/CartonCore/InteractiveWriter.swift:60:21: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'InteractiveWriter' may have shared mutable state; this is an error in the Swift 6 language mode
53 | /// If underlying stream is a not tty, the string will be written in without any
54 | /// formatting.
55 | public final class InteractiveWriter {
| `- note: class 'InteractiveWriter' does not conform to the 'Sendable' protocol
56 | /// The standard error writer.
57 | public static let stderr = InteractiveWriter(stream: .stderr)
58 |
59 | /// The standard output writer.
60 | public static let stdout = InteractiveWriter(stream: .stdout)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'InteractiveWriter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stdout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// The terminal controller, if present.
[289/393] Compiling NIOConcurrencyHelpers NIOLock.swift
[290/393] Compiling NIOConcurrencyHelpers lock.swift
[291/393] Emitting module NIOConcurrencyHelpers
[292/393] Compiling NIOConcurrencyHelpers atomics.swift
[293/393] Emitting module NIOConcurrencyHelpers
[294/393] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[295/442] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[296/442] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[297/442] Compiling NIOConcurrencyHelpers NIOLock.swift
[298/442] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[299/442] Compiling NIOConcurrencyHelpers atomics.swift
[300/503] Compiling NIOCore ByteBuffer-core.swift
[301/503] Compiling NIOCore ByteBuffer-hex.swift
[302/503] Compiling NIOCore ByteBuffer-int.swift
[303/503] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[304/568] Emitting module ArgumentParser
[305/572] Compiling SwiftToolchain URLSession.swift
[306/572] Compiling SwiftToolchain ProgressAnimation.swift
[307/572] Compiling NIOCore EventLoop+Deprecated.swift
[308/572] Compiling NIOCore EventLoop+SerialExecutor.swift
[309/574] Compiling CartonHelpers StaticArchive.swift
[310/574] Compiling NIOCore NIOScheduledCallback.swift
[311/574] Compiling NIOCore NIOSendable.swift
[312/574] Compiling NIOCore RecvByteBufferAllocator.swift
[313/574] Emitting module CartonHelpers
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/FileSystem.swift:628:13: warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
626 | }
627 |
628 | private var _localFileSystem: FileSystem = LocalFileSystem()
| |- warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_localFileSystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_localFileSystem' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
629 |
630 | /// Public access to the local FS proxy.
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:210:27: warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
197 | }
198 |
199 | public enum OutputRedirection {
| `- note: consider making enum 'OutputRedirection' conform to the 'Sendable' protocol
200 | /// Do not redirect the output
201 | case none
:
208 |
209 | /// Default collect OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
210 | public static let collect: OutputRedirection = .collect(redirectStderr: false)
| |- warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'collect' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
211 |
212 | /// Default stream OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:269:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
267 | public typealias LoggingHandler = (String) -> Void
268 |
269 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
270 | private static let loggingHandlerLock = NSLock()
271 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:357:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
355 | /// Key: Executable name or path.
356 | /// Value: Path to the executable, if found.
357 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
358 | private static let validatedExecutablesMapLock = NSLock()
359 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/ProcessEnv.swift:85:22: warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
83 | public static var block: ProcessEnvironmentBlock { _vars }
84 |
85 | private static var _vars = ProcessEnvironmentBlock(
| |- warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_vars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_vars' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | uniqueKeysWithValues: ProcessInfo.processInfo.environment.map {
87 | (ProcessEnvironmentBlock.Key($0.key), $0.value)
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:829:12: warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
827 |
828 | /// Public stdout stream instance.
829 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stdoutStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stdoutStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
830 | LocalFileOutputByteStream(
831 | filePointer: stdout,
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:835:12: warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
833 |
834 | /// Public stderr stream instance.
835 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stderrStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stderrStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
836 | LocalFileOutputByteStream(
837 | filePointer: stderr,
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/FileSystem.swift:628:13: warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
626 | }
627 |
628 | private var _localFileSystem: FileSystem = LocalFileSystem()
| |- warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_localFileSystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_localFileSystem' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
629 |
630 | /// Public access to the local FS proxy.
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:210:27: warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
197 | }
198 |
199 | public enum OutputRedirection {
| `- note: consider making enum 'OutputRedirection' conform to the 'Sendable' protocol
200 | /// Do not redirect the output
201 | case none
:
208 |
209 | /// Default collect OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
210 | public static let collect: OutputRedirection = .collect(redirectStderr: false)
| |- warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'collect' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
211 |
212 | /// Default stream OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:269:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
267 | public typealias LoggingHandler = (String) -> Void
268 |
269 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
270 | private static let loggingHandlerLock = NSLock()
271 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:357:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
355 | /// Key: Executable name or path.
356 | /// Value: Path to the executable, if found.
357 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
358 | private static let validatedExecutablesMapLock = NSLock()
359 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/ProcessEnv.swift:85:22: warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
83 | public static var block: ProcessEnvironmentBlock { _vars }
84 |
85 | private static var _vars = ProcessEnvironmentBlock(
| |- warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_vars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_vars' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | uniqueKeysWithValues: ProcessInfo.processInfo.environment.map {
87 | (ProcessEnvironmentBlock.Key($0.key), $0.value)
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:829:12: warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
827 |
828 | /// Public stdout stream instance.
829 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stdoutStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stdoutStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
830 | LocalFileOutputByteStream(
831 | filePointer: stdout,
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:835:12: warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
833 |
834 | /// Public stderr stream instance.
835 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stderrStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stderrStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
836 | LocalFileOutputByteStream(
837 | filePointer: stderr,
[315/576] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[316/576] Compiling NIOCore SocketAddresses.swift
[317/576] Compiling NIOCore Channel.swift
[318/576] Compiling NIOCore ChannelHandler.swift
[319/576] Compiling NIOCore ChannelHandlers.swift
[320/576] Compiling NIOCore ChannelInvoker.swift
[321/576] Compiling NIOCore ChannelOption.swift
[322/576] Compiling NIOCore ChannelPipeline.swift
[323/576] Compiling SwiftToolchain AsyncFileDownload.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToolchain/AsyncFileDownload.swift:36:9: warning: non-final class 'FileDownloadDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | public var receivedBytes: Int
35 | }
36 | class FileDownloadDelegate: NSObject, URLSessionDownloadDelegate {
| `- warning: non-final class 'FileDownloadDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
37 | let path: String
38 | let onTotalBytes: (Int) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToolchain/AsyncFileDownload.swift:38:9: warning: stored property 'onTotalBytes' of 'Sendable'-conforming class 'FileDownloadDelegate' has non-sendable type '(Int) -> Void'; this is an error in the Swift 6 language mode
36 | class FileDownloadDelegate: NSObject, URLSessionDownloadDelegate {
37 | let path: String
38 | let onTotalBytes: (Int) -> Void
| |- warning: stored property 'onTotalBytes' of 'Sendable'-conforming class 'FileDownloadDelegate' has non-sendable type '(Int) -> Void'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
39 | let continuation: AsyncThrowingStream<Progress, Error>.Continuation
40 | var totalBytesToDownload: Int?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToolchain/AsyncFileDownload.swift:40:9: warning: stored property 'totalBytesToDownload' of 'Sendable'-conforming class 'FileDownloadDelegate' is mutable; this is an error in the Swift 6 language mode
38 | let onTotalBytes: (Int) -> Void
39 | let continuation: AsyncThrowingStream<Progress, Error>.Continuation
40 | var totalBytesToDownload: Int?
| `- warning: stored property 'totalBytesToDownload' of 'Sendable'-conforming class 'FileDownloadDelegate' is mutable; this is an error in the Swift 6 language mode
41 |
42 | init(
[324/576] Compiling SwiftToolchain ToolchainResolver.swift
[325/576] Compiling SwiftToolchain ToolchainInstallation.swift
[326/576] Emitting module SwiftToolchain
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToolchain/AsyncFileDownload.swift:36:9: warning: non-final class 'FileDownloadDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | public var receivedBytes: Int
35 | }
36 | class FileDownloadDelegate: NSObject, URLSessionDownloadDelegate {
| `- warning: non-final class 'FileDownloadDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
37 | let path: String
38 | let onTotalBytes: (Int) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToolchain/AsyncFileDownload.swift:38:9: warning: stored property 'onTotalBytes' of 'Sendable'-conforming class 'FileDownloadDelegate' has non-sendable type '(Int) -> Void'; this is an error in the Swift 6 language mode
36 | class FileDownloadDelegate: NSObject, URLSessionDownloadDelegate {
37 | let path: String
38 | let onTotalBytes: (Int) -> Void
| |- warning: stored property 'onTotalBytes' of 'Sendable'-conforming class 'FileDownloadDelegate' has non-sendable type '(Int) -> Void'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
39 | let continuation: AsyncThrowingStream<Progress, Error>.Continuation
40 | var totalBytesToDownload: Int?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToolchain/AsyncFileDownload.swift:40:9: warning: stored property 'totalBytesToDownload' of 'Sendable'-conforming class 'FileDownloadDelegate' is mutable; this is an error in the Swift 6 language mode
38 | let onTotalBytes: (Int) -> Void
39 | let continuation: AsyncThrowingStream<Progress, Error>.Continuation
40 | var totalBytesToDownload: Int?
| `- warning: stored property 'totalBytesToDownload' of 'Sendable'-conforming class 'FileDownloadDelegate' is mutable; this is an error in the Swift 6 language mode
41 |
42 | init(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToolchain/ToolchainManagement.swift:34:13: warning: let 'versionRegEx' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | private let versionRegEx = #/(?:swift-)?(.+-.)-.+\\.tar.gz/#
| |- warning: let 'versionRegEx' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'versionRegEx' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | private struct Release: Decodable {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[327/576] Compiling SwiftToolchain ToolchainManagement.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToolchain/ToolchainManagement.swift:34:13: warning: let 'versionRegEx' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | private let versionRegEx = #/(?:swift-)?(.+-.)-.+\\.tar.gz/#
| |- warning: let 'versionRegEx' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'versionRegEx' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | private struct Release: Decodable {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[328/578] Compiling CartonHelpers Retry.swift
[329/578] Compiling CartonHelpers StaticArchive.swift
[330/578] Compiling NIOCore CircularBuffer.swift
[331/578] Compiling NIOCore Interfaces.swift
[332/578] Compiling NIOCore Linux.swift
[333/578] Compiling NIOCore MarkedCircularBuffer.swift
[334/578] Compiling ArgumentParser Platform.swift
[335/578] Compiling ArgumentParser SequenceExtensions.swift
[336/578] Compiling ArgumentParser StringExtensions.swift
[337/578] Compiling ArgumentParser Tree.swift
[338/578] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:829:12: warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
827 |
828 | /// Public stdout stream instance.
829 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stdoutStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stdoutStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
830 | LocalFileOutputByteStream(
831 | filePointer: stdout,
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:835:12: warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
833 |
834 | /// Public stderr stream instance.
835 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stderrStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stderrStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
836 | LocalFileOutputByteStream(
837 | filePointer: stderr,
[339/578] Compiling NIOCore NIOAsyncWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:829:12: warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
827 |
828 | /// Public stdout stream instance.
829 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stdoutStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stdoutStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
830 | LocalFileOutputByteStream(
831 | filePointer: stdout,
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:835:12: warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
833 |
834 | /// Public stderr stream instance.
835 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stderrStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stderrStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
836 | LocalFileOutputByteStream(
837 | filePointer: stderr,
[342/578] Compiling NIOCore AsyncChannelOutboundWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/ProcessEnv.swift:85:22: warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
83 | public static var block: ProcessEnvironmentBlock { _vars }
84 |
85 | private static var _vars = ProcessEnvironmentBlock(
| |- warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_vars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_vars' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | uniqueKeysWithValues: ProcessInfo.processInfo.environment.map {
87 | (ProcessEnvironmentBlock.Key($0.key), $0.value)
[343/578] Compiling NIOCore NIOAsyncSequenceProducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/ProcessEnv.swift:85:22: warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
83 | public static var block: ProcessEnvironmentBlock { _vars }
84 |
85 | private static var _vars = ProcessEnvironmentBlock(
| |- warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_vars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_vars' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | uniqueKeysWithValues: ProcessInfo.processInfo.environment.map {
87 | (ProcessEnvironmentBlock.Key($0.key), $0.value)
[344/578] Compiling NIOCore DeadChannel.swift
[345/578] Compiling NIOCore DispatchQueue+WithFuture.swift
[360/578] Compiling NIOCore AddressedEnvelope.swift
[361/578] Compiling NIOCore AsyncAwaitSupport.swift
[362/578] Compiling NIOCore AsyncChannel.swift
[363/578] Compiling NIOCore AsyncChannelHandler.swift
[368/578] Compiling NIOCore AsyncChannelInboundStream.swift
[373/578] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[374/578] Compiling NIOCore BSDSocketAPI.swift
[375/578] Compiling NIOCore ByteBuffer-aux.swift
[376/578] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[381/578] Compiling NIOCore ByteBuffer-conversions.swift
[382/578] Compiling NIOCore Codec.swift
[383/578] Compiling NIOCore ConvenienceOptionSupport.swift
[397/578] Emitting module ArgumentParser
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:210:27: warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
197 | }
198 |
199 | public enum OutputRedirection {
| `- note: consider making enum 'OutputRedirection' conform to the 'Sendable' protocol
200 | /// Do not redirect the output
201 | case none
:
208 |
209 | /// Default collect OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
210 | public static let collect: OutputRedirection = .collect(redirectStderr: false)
| |- warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'collect' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
211 |
212 | /// Default stream OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:269:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
267 | public typealias LoggingHandler = (String) -> Void
268 |
269 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
270 | private static let loggingHandlerLock = NSLock()
271 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:357:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
355 | /// Key: Executable name or path.
356 | /// Value: Path to the executable, if found.
357 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
358 | private static let validatedExecutablesMapLock = NSLock()
359 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:925:36: warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
923 | self.state = .complete(executionResult)
924 | self.completionQueue.async {
925 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
926 | }
927 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:1150:17: warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
1148 | } catch {
1149 | completionQueue.async {
1150 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1151 | }
1152 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:210:27: warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
197 | }
198 |
199 | public enum OutputRedirection {
| `- note: consider making enum 'OutputRedirection' conform to the 'Sendable' protocol
200 | /// Do not redirect the output
201 | case none
:
208 |
209 | /// Default collect OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
210 | public static let collect: OutputRedirection = .collect(redirectStderr: false)
| |- warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'collect' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
211 |
212 | /// Default stream OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:269:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
267 | public typealias LoggingHandler = (String) -> Void
268 |
269 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
270 | private static let loggingHandlerLock = NSLock()
271 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:357:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
355 | /// Key: Executable name or path.
356 | /// Value: Path to the executable, if found.
357 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
358 | private static let validatedExecutablesMapLock = NSLock()
359 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:925:36: warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
923 | self.state = .complete(executionResult)
924 | self.completionQueue.async {
925 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
926 | }
927 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:1150:17: warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
1148 | } catch {
1149 | completionQueue.async {
1150 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1151 | }
1152 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:210:27: warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
197 | }
198 |
199 | public enum OutputRedirection {
| `- note: consider making enum 'OutputRedirection' conform to the 'Sendable' protocol
200 | /// Do not redirect the output
201 | case none
:
208 |
209 | /// Default collect OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
210 | public static let collect: OutputRedirection = .collect(redirectStderr: false)
| |- warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'collect' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
211 |
212 | /// Default stream OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:269:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
267 | public typealias LoggingHandler = (String) -> Void
268 |
269 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
270 | private static let loggingHandlerLock = NSLock()
271 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:357:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
355 | /// Key: Executable name or path.
356 | /// Value: Path to the executable, if found.
357 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
358 | private static let validatedExecutablesMapLock = NSLock()
359 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:925:36: warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
923 | self.state = .complete(executionResult)
924 | self.completionQueue.async {
925 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
926 | }
927 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:1150:17: warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
1148 | } catch {
1149 | completionQueue.async {
1150 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1151 | }
1152 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'CartonHelpers' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:210:27: warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
197 | }
198 |
199 | public enum OutputRedirection {
| `- note: consider making enum 'OutputRedirection' conform to the 'Sendable' protocol
200 | /// Do not redirect the output
201 | case none
:
208 |
209 | /// Default collect OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
210 | public static let collect: OutputRedirection = .collect(redirectStderr: false)
| |- warning: static property 'collect' is not concurrency-safe because non-'Sendable' type 'Process.OutputRedirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'collect' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
211 |
212 | /// Default stream OutputRedirection that defaults to not redirect stderr. Provided for API compatibility.
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:269:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
267 | public typealias LoggingHandler = (String) -> Void
268 |
269 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
270 | private static let loggingHandlerLock = NSLock()
271 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:357:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
355 | /// Key: Executable name or path.
356 | /// Value: Path to the executable, if found.
357 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
358 | private static let validatedExecutablesMapLock = NSLock()
359 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:925:36: warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
923 | self.state = .complete(executionResult)
924 | self.completionQueue.async {
925 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
926 | }
927 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/Process.swift:1150:17: warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
1148 | } catch {
1149 | completionQueue.async {
1150 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<ProcessResult, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1151 | }
1152 | }
[421/578] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[422/578] Compiling NIOCore EventLoopFuture+Deprecated.swift
[423/578] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[424/578] Compiling NIOCore EventLoopFuture.swift
[425/578] Compiling NIOCore FileDescriptor.swift
[426/578] Compiling NIOCore FileHandle.swift
[427/578] Compiling NIOCore FileRegion.swift
[428/578] Compiling NIOCore ByteBuffer-hex.swift
[429/578] Compiling NIOCore ByteBuffer-int.swift
[430/578] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[431/578] Compiling NIOCore ByteBuffer-multi-int.swift
[432/578] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[433/578] Compiling NIOCore ByteBuffer-views.swift
[434/584] Emitting module CartonDriver
[435/584] Compiling CartonDriver CartonDriverCommand.swift
[437/584] Compiling NIOCore IO.swift
[438/584] Compiling NIOCore IOData.swift
[439/584] Compiling NIOCore IPProtocol.swift
[440/584] Compiling NIOCore IntegerBitPacking.swift
[441/584] Compiling NIOCore IntegerTypes.swift
[442/584] Compiling NIOCore ByteBuffer-core.swift
[450/592] Compiling carton main.swift
[451/592] Emitting module carton
[451/592] Write Objects.LinkFileList
[453/592] Compiling NIOCore SocketOptionProvider.swift
[454/592] Compiling NIOCore SystemCallHelpers.swift
[455/592] Compiling NIOCore TimeAmount+Duration.swift
[456/592] Compiling NIOCore TypeAssistedChannelHandler.swift
[457/592] Compiling NIOCore UniversalBootstrapSupport.swift
[458/592] Compiling NIOCore Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/FileSystem.swift:628:13: warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
626 | }
627 |
628 | private var _localFileSystem: FileSystem = LocalFileSystem()
| |- warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_localFileSystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_localFileSystem' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
629 |
630 | /// Public access to the local FS proxy.
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/FileSystem.swift:628:13: warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
626 | }
627 |
628 | private var _localFileSystem: FileSystem = LocalFileSystem()
| |- warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_localFileSystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_localFileSystem' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
629 |
630 | /// Public access to the local FS proxy.
[513/592] Linking carton
[514/592] Applying carton
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/ProcessEnv.swift:85:22: warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
83 | public static var block: ProcessEnvironmentBlock { _vars }
84 |
85 | private static var _vars = ProcessEnvironmentBlock(
| |- warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_vars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_vars' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | uniqueKeysWithValues: ProcessInfo.processInfo.environment.map {
87 | (ProcessEnvironmentBlock.Key($0.key), $0.value)
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/Process/ProcessEnv.swift:85:22: warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
83 | public static var block: ProcessEnvironmentBlock { _vars }
84 |
85 | private static var _vars = ProcessEnvironmentBlock(
| |- warning: static property '_vars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_vars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_vars' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | uniqueKeysWithValues: ProcessInfo.processInfo.environment.map {
87 | (ProcessEnvironmentBlock.Key($0.key), $0.value)
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:829:12: warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
827 |
828 | /// Public stdout stream instance.
829 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stdoutStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stdoutStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
830 | LocalFileOutputByteStream(
831 | filePointer: stdout,
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:835:12: warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
833 |
834 | /// Public stderr stream instance.
835 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stderrStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stderrStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
836 | LocalFileOutputByteStream(
837 | filePointer: stderr,
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:829:12: warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
827 |
828 | /// Public stdout stream instance.
829 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stdoutStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stdoutStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
830 | LocalFileOutputByteStream(
831 | filePointer: stdout,
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/WritableByteStream.swift:835:12: warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
833 |
834 | /// Public stderr stream instance.
835 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(
| |- warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stderrStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stderrStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
836 | LocalFileOutputByteStream(
837 | filePointer: stderr,
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/FileSystem.swift:628:13: warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
626 | }
627 |
628 | private var _localFileSystem: FileSystem = LocalFileSystem()
| |- warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_localFileSystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_localFileSystem' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
629 |
630 | /// Public access to the local FS proxy.
/Users/admin/builder/spi-builder-workspace/Sources/CartonHelpers/Basics/FileSystem.swift:628:13: warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
626 | }
627 |
628 | private var _localFileSystem: FileSystem = LocalFileSystem()
| |- warning: var '_localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_localFileSystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_localFileSystem' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
629 |
630 | /// Public access to the local FS proxy.
[530/615] Compiling carton_release CartonReleaseCommand.swift
[531/615] Compiling carton_release HashArchive.swift
[532/615] Emitting module carton_release
[532/615] Write Objects.LinkFileList
[534/615] Compiling carton_frontend_slim JavaScriptTestRunner.swift
[535/615] Compiling carton_frontend_slim String+Regex.swift
[536/616] Compiling carton_frontend_slim CommandTestRunner.swift
[537/616] Compiling carton_frontend_slim CartonFrontendSlimCommand.swift
[538/617] Compiling carton_frontend_slim String+color.swift
[539/617] Compiling carton_frontend_slim TestRunner.swift
/Users/admin/builder/spi-builder-workspace/Sources/carton-frontend-slim/TestRunners/TestRunner.swift:87:21: warning: sending 'parser' risks causing data races; this is an error in the Swift 6 language mode
85 | startNewProcessGroup: true
86 | )
87 | async let _ = parser.parse(lines, terminal)
| |- warning: sending 'parser' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'parser' into async let risks causing data races between nonisolated and task-isolated uses
88 | try process.launch()
89 | let result = try await process.waitUntilExit()
/Users/admin/builder/spi-builder-workspace/Sources/carton-frontend-slim/TestRunners/TestRunner.swift:87:41: warning: sending 'terminal' risks causing data races; this is an error in the Swift 6 language mode
85 | startNewProcessGroup: true
86 | )
87 | async let _ = parser.parse(lines, terminal)
| |- warning: sending 'terminal' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'terminal' into async let risks causing data races between nonisolated and task-isolated uses
88 | try process.launch()
89 | let result = try await process.waitUntilExit()
[540/617] Compiling carton_frontend_slim String+Regex.swift
[541/617] Compiling carton_frontend_slim JavaScriptTestRunner.swift
[542/617] Compiling carton_frontend_slim CommandTestRunner.swift
[543/617] Compiling carton_frontend_slim TestRunner.swift
/Users/admin/builder/spi-builder-workspace/Sources/carton-frontend-slim/TestRunners/TestRunner.swift:87:21: warning: sending 'parser' risks causing data races; this is an error in the Swift 6 language mode
85 | startNewProcessGroup: true
86 | )
87 | async let _ = parser.parse(lines, terminal)
| |- warning: sending 'parser' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'parser' into async let risks causing data races between nonisolated and task-isolated uses
88 | try process.launch()
89 | let result = try await process.waitUntilExit()
/Users/admin/builder/spi-builder-workspace/Sources/carton-frontend-slim/TestRunners/TestRunner.swift:87:41: warning: sending 'terminal' risks causing data races; this is an error in the Swift 6 language mode
85 | startNewProcessGroup: true
86 | )
87 | async let _ = parser.parse(lines, terminal)
| |- warning: sending 'terminal' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'terminal' into async let risks causing data races between nonisolated and task-isolated uses
88 | try process.launch()
89 | let result = try await process.waitUntilExit()
[544/617] Compiling carton_frontend_slim String+color.swift
[545/617] Emitting module carton_frontend_slim
[546/617] Compiling carton_frontend_slim CartonFrontendSlimCommand.swift
[547/617] Emitting module carton_frontend_slim
[548/617] Compiling carton_frontend_slim BundleLayout.swift
[549/617] Compiling carton_frontend_slim CartonFrontendTestCommand.swift
[550/617] Compiling carton_frontend_slim CartonFrontendBundleCommand.swift
[551/617] Compiling carton_frontend_slim CartonFrontendTestCommand.swift
[552/617] Compiling carton_frontend_slim BundleLayout.swift
[553/617] Compiling carton_frontend_slim CartonFrontendBundleCommand.swift
[553/617] Linking carton-release
[554/617] Applying carton-release
[556/617] Compiling carton_frontend_slim TestsParser.swift
[557/617] Write Objects.LinkFileList
[606/617] Emitting module NIOCore
[607/617] Linking carton-frontend-slim-tool
[608/617] Linking carton-frontend-slim
[609/719] Applying carton-frontend-slim
[610/723] Applying carton-frontend-slim-tool
[612/723] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[613/723] Emitting module NIOEmbedded
[614/723] Compiling NIOEmbedded AsyncTestingChannel.swift
[615/723] Compiling NIOEmbedded Embedded.swift
[616/723] Compiling NIOEmbedded AsyncTestingChannel.swift
[617/723] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[618/723] Emitting module NIOEmbedded
[619/723] Compiling NIOEmbedded Embedded.swift
[620/723] Compiling NIOPosix SocketProtocols.swift
[621/723] Compiling NIOPosix System.swift
[622/723] Compiling NIOPosix Thread.swift
[623/723] Compiling NIOPosix ThreadPosix.swift
[624/723] Compiling NIOPosix ThreadWindows.swift
[625/728] Compiling NIOPosix SelectorKqueue.swift
[626/728] Compiling NIOPosix SelectorUring.swift
[627/728] Compiling NIOPosix ServerSocket.swift
[628/728] Compiling NIOPosix Socket.swift
[629/728] Compiling NIOPosix SocketChannel.swift
[630/733] Compiling NIOPosix PooledRecvBufferAllocator.swift
[631/733] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[632/733] Compiling NIOPosix PosixSingletons.swift
[633/733] Compiling NIOPosix RawSocketBootstrap.swift
[634/733] Compiling NIOPosix Resolver.swift
[635/733] Emitting module NIOPosix
[646/733] Compiling NIOPosix Selectable.swift
[647/733] Compiling NIOPosix SelectableChannel.swift
[648/733] Compiling NIOPosix SelectableEventLoop.swift
[649/733] Compiling NIOPosix SelectorEpoll.swift
[650/733] Compiling NIOPosix SelectorGeneric.swift
[651/733] Compiling NIOPosix LinuxCPUSet.swift
[652/733] Compiling NIOPosix LinuxUring.swift
[653/733] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[654/733] Compiling NIOPosix NIOThreadPool.swift
[655/733] Compiling NIOPosix NonBlockingFileIO.swift
[656/733] Compiling NIOPosix PendingDatagramWritesManager.swift
[657/733] Compiling NIOPosix PendingWritesManager.swift
[658/733] Compiling NIOPosix PipeChannel.swift
[659/733] Compiling NIOPosix PipePair.swift
[660/733] Compiling NIOPosix Pool.swift
[661/733] Compiling NIOPosix GetaddrinfoResolver.swift
[662/733] Compiling NIOPosix HappyEyeballs.swift
[663/733] Compiling NIOPosix IO.swift
[664/733] Compiling NIOPosix IntegerBitPacking.swift
[665/733] Compiling NIOPosix IntegerTypes.swift
[666/733] Compiling NIOPosix Linux.swift
[677/733] Compiling NIOPosix UnsafeTransfer.swift
[678/733] Compiling NIOPosix Utilities.swift
[679/733] Compiling NIOPosix VsockAddress.swift
[680/733] Compiling NIOPosix VsockChannelEvents.swift
[681/733] Compiling NIOPosix resource_bundle_accessor.swift
[703/733] Compiling NIOPosix BSDSocketAPICommon.swift
[704/733] Compiling NIOPosix BSDSocketAPIPosix.swift
[705/733] Compiling NIOPosix BSDSocketAPIWindows.swift
[706/733] Compiling NIOPosix BaseSocket.swift
[707/733] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[708/733] Compiling NIOPosix BaseSocketChannel.swift
[709/733] Compiling NIOPosix BaseStreamSocketChannel.swift
[710/733] Compiling NIOPosix Bootstrap.swift
[711/733] Compiling NIOPosix ControlMessage.swift
[712/733] Compiling NIOPosix DatagramVectorReadManager.swift
[713/733] Compiling NIOPosix Errors+Any.swift
[714/733] Compiling NIOPosix FileDescriptor.swift
[721/733] Emitting module NIOPosix
[728/737] Emitting module NIO
[729/737] Compiling NIO Exports.swift
[730/737] Emitting module NIO
[731/737] Compiling NIO Exports.swift
[732/781] Compiling WebDriver WebDriverHTTPClient.swift
[733/781] Compiling WebDriver WebDriverService.swift
[734/781] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[735/781] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[736/782] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[737/782] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[738/782] Emitting module WebDriver
[739/783] Compiling WebDriver URLSessionAsync.swift
[740/783] Compiling WebDriver URLSessionWebDriverHTTPClient.swift
[741/783] Compiling WebDriver WebDriverError.swift
[742/783] Compiling WebDriver RemoteWebDriverService.swift
[743/783] Compiling WebDriver WebDriverClient.swift
[744/783] Compiling WebDriver CurlWebDriverHTTPClient.swift
[745/783] Compiling WebDriver CommandWebDriverService.swift
[746/783] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[747/783] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[748/783] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[749/783] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[750/783] Compiling NIOHTTP1 HTTPEncoder.swift
[751/783] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[752/783] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[753/783] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[754/783] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[756/783] Emitting module NIOHTTP1
[760/783] Compiling NIOHTTP1 HTTPEncoder.swift
[761/783] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[764/783] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[765/783] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[768/783] Compiling NIOHTTP1 HTTPTypes.swift
[769/783] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[778/803] Compiling NIOWebSocket WebSocketOpcode.swift
[779/804] Compiling NIOWebSocket SHA1.swift
[780/804] Compiling NIOWebSocket WebSocketOpcode.swift
[781/804] Compiling NIOWebSocket WebSocketErrorCodes.swift
[782/805] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[784/805] Emitting module NIOWebSocket
[785/805] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
[786/805] Compiling NIOWebSocket NIOWebSocketClientUpgrader.swift
[787/805] Compiling NIOWebSocket NIOWebSocketServerUpgrader.swift
[788/805] Compiling NIOWebSocket NIOWebSocketFrameAggregator.swift
[789/805] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[790/805] Compiling NIOWebSocket WebSocketFrame.swift
[791/805] Emitting module NIOWebSocket
[792/805] Compiling NIOWebSocket SHA1.swift
[793/805] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[794/805] Compiling NIOWebSocket NIOWebSocketServerUpgrader.swift
[795/805] Compiling NIOWebSocket WebSocketErrorCodes.swift
[796/805] Compiling NIOWebSocket NIOWebSocketFrameAggregator.swift
[797/805] Compiling NIOWebSocket WebSocketFrame.swift
[798/805] Compiling NIOWebSocket NIOWebSocketClientUpgrader.swift
[799/805] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
[800/827] Compiling CartonKit FirefoxStackTrace.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/FirefoxStackTrace.swift:18:13: warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let webpackRegex = #/(.+)@webpack:///(.+)/#
| |- warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'webpackRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/(.+)@http://127.0.0.1.+WebAssembly.instantiate:(.+)/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/FirefoxStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let webpackRegex = #/(.+)@webpack:///(.+)/#
19 | private let wasmRegex = #/(.+)@http://127.0.0.1.+WebAssembly.instantiate:(.+)/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[801/828] Compiling CartonKit Entrypoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:18:13: warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
| |- warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'webpackRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[802/828] Compiling CartonKit ChromeStackTrace.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:18:13: warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
| |- warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'webpackRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:18:13: warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
| |- warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'webpackRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:18:13: warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
| |- warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'webpackRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[805/828] Emitting module CartonKit
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:18:13: warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
| |- warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'webpackRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/FirefoxStackTrace.swift:18:13: warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let webpackRegex = #/(.+)@webpack:///(.+)/#
| |- warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'webpackRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/(.+)@http://127.0.0.1.+WebAssembly.instantiate:(.+)/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/FirefoxStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let webpackRegex = #/(.+)@webpack:///(.+)/#
19 | private let wasmRegex = #/(.+)@http://127.0.0.1.+WebAssembly.instantiate:(.+)/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/SafariStackTrace.swift:18:13: warning: let 'jsRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring?)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let jsRegex = #/(.+?)(?:@(?:\[(?:native|wasm) code\]|(.+)))?$/#
| |- warning: let 'jsRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring?)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'jsRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/<\?>\.wasm-function\[(.+)\]@\[wasm code\]/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/SafariStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let jsRegex = #/(.+?)(?:@(?:\[(?:native|wasm) code\]|(.+)))?$/#
19 | private let wasmRegex = #/<\?>\.wasm-function\[(.+)\]@\[wasm code\]/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:137:24: warning: static property 'regex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
135 | }
136 |
137 | private static let regex = #/([\w ]+)/([\w\.]+) \(PID (\d+)\)/#
| |- warning: static property 'regex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'regex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
138 |
139 | public static func parse(_ string: String) throws -> ServerNameField {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:253:14: 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
251 | watcher = FSWatch(paths: builder.pathsToWatch, latency: 0.1) { [weak self] changes in
252 | guard let self = self, !changes.isEmpty else { return }
253 | Task { try await self.onChange(changes, configuration) }
| | `- note: closure captures 'configuration' which is accessible to code in the current 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
254 | }
255 | try watcher?.start()
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:253:31: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
251 | watcher = FSWatch(paths: builder.pathsToWatch, latency: 0.1) { [weak self] changes in
252 | guard let self = self, !changes.isEmpty else { return }
253 | Task { try await self.onChange(changes, configuration) }
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to actor-isolated instance method 'onChange' risks causing data races between actor-isolated and task-isolated uses
254 | }
255 | try watcher?.start()
[806/829] Compiling CartonKit ServerWebSocketHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerWebSocketHandler.swift:73:9: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
71 | let closeFrame = WebSocketFrame(fin: true, opcode: .connectionClose, data: closeDataCode)
72 | _ = context.write(self.wrapOutboundOut(closeFrame)).map { () in
73 | context.close(promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
74 | }
75 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerWebSocketHandler.swift:83:7: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
81 | let frame = WebSocketFrame(fin: true, opcode: .connectionClose, data: data)
82 | context.write(self.wrapOutboundOut(frame)).whenComplete { (_: Result<Void, Error>) in
83 | context.close(mode: .output, promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
84 | }
85 | awaitingClose = true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
[807/829] Compiling CartonKit SafariStackTrace.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/SafariStackTrace.swift:18:13: warning: let 'jsRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring?)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let jsRegex = #/(.+?)(?:@(?:\[(?:native|wasm) code\]|(.+)))?$/#
| |- warning: let 'jsRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring?)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'jsRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/<\?>\.wasm-function\[(.+)\]@\[wasm code\]/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/SafariStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let jsRegex = #/(.+?)(?:@(?:\[(?:native|wasm) code\]|(.+)))?$/#
19 | private let wasmRegex = #/<\?>\.wasm-function\[(.+)\]@\[wasm code\]/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[808/829] Emitting module CartonKit
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:18:13: warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
| |- warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'webpackRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/ChromeStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let webpackRegex = #/at (.+) \(webpack:///(.+?)\)/#
19 | private let wasmRegex = #/at (.+) \(<anonymous>:(.+?)\)/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/FirefoxStackTrace.swift:18:13: warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let webpackRegex = #/(.+)@webpack:///(.+)/#
| |- warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'webpackRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/(.+)@http://127.0.0.1.+WebAssembly.instantiate:(.+)/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/FirefoxStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let webpackRegex = #/(.+)@webpack:///(.+)/#
19 | private let wasmRegex = #/(.+)@http://127.0.0.1.+WebAssembly.instantiate:(.+)/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/SafariStackTrace.swift:18:13: warning: let 'jsRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring?)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let jsRegex = #/(.+?)(?:@(?:\[(?:native|wasm) code\]|(.+)))?$/#
| |- warning: let 'jsRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring?)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'jsRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/<\?>\.wasm-function\[(.+)\]@\[wasm code\]/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/SafariStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let jsRegex = #/(.+?)(?:@(?:\[(?:native|wasm) code\]|(.+)))?$/#
19 | private let wasmRegex = #/<\?>\.wasm-function\[(.+)\]@\[wasm code\]/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:137:24: warning: static property 'regex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
135 | }
136 |
137 | private static let regex = #/([\w ]+)/([\w\.]+) \(PID (\d+)\)/#
| |- warning: static property 'regex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'regex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
138 |
139 | public static func parse(_ string: String) throws -> ServerNameField {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:253:14: 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
251 | watcher = FSWatch(paths: builder.pathsToWatch, latency: 0.1) { [weak self] changes in
252 | guard let self = self, !changes.isEmpty else { return }
253 | Task { try await self.onChange(changes, configuration) }
| | `- note: closure captures 'configuration' which is accessible to code in the current 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
254 | }
255 | try watcher?.start()
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:253:31: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
251 | watcher = FSWatch(paths: builder.pathsToWatch, latency: 0.1) { [weak self] changes in
252 | guard let self = self, !changes.isEmpty else { return }
253 | Task { try await self.onChange(changes, configuration) }
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to actor-isolated instance method 'onChange' risks causing data races between actor-isolated and task-isolated uses
254 | }
255 | try watcher?.start()
[809/829] Compiling CartonKit StackTrace.swift
[810/829] Compiling CartonKit SafariStackTrace.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/SafariStackTrace.swift:18:13: warning: let 'jsRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring?)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let jsRegex = #/(.+?)(?:@(?:\[(?:native|wasm) code\]|(.+)))?$/#
| |- warning: let 'jsRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring?)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'jsRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/<\?>\.wasm-function\[(.+)\]@\[wasm code\]/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/SafariStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let jsRegex = #/(.+?)(?:@(?:\[(?:native|wasm) code\]|(.+)))?$/#
19 | private let wasmRegex = #/<\?>\.wasm-function\[(.+)\]@\[wasm code\]/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[811/829] Compiling CartonKit Environment+UserAgent.swift
[812/829] Compiling CartonKit FirefoxStackTrace.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/FirefoxStackTrace.swift:18:13: warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | //
17 |
18 | private let webpackRegex = #/(.+)@webpack:///(.+)/#
| |- warning: let 'webpackRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'webpackRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private let wasmRegex = #/(.+)@http://127.0.0.1.+WebAssembly.instantiate:(.+)/#
20 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Parsers/FirefoxStackTrace.swift:19:13: warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private let webpackRegex = #/(.+)@webpack:///(.+)/#
19 | private let wasmRegex = #/(.+)@http://127.0.0.1.+WebAssembly.instantiate:(.+)/#
| |- warning: let 'wasmRegex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'wasmRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension StringProtocol {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[813/829] Compiling CartonKit ServerHTTPHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:124:7: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
122 | context.write(self.wrapOutboundOut(.body(.byteBuffer(body))), promise: nil)
123 | context.write(self.wrapOutboundOut(.end(nil))).whenComplete { (_: Result<Void, Error>) in
124 | context.close(promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
125 | }
126 | context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:245:7: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
243 | context.write(self.wrapOutboundOut(.head(head)), promise: nil)
244 | context.write(self.wrapOutboundOut(.end(nil))).whenComplete { (_: Result<Void, Error>) in
245 | context.close(promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
246 | }
247 | context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:260:7: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
258 | context.write(self.wrapOutboundOut(.head(head)), promise: nil)
259 | context.write(self.wrapOutboundOut(.end(nil))).whenComplete { (_: Result<Void, Error>) in
260 | context.close(promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
261 | }
262 | context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
[814/829] Compiling CartonKit StackTrace.swift
[815/829] Compiling CartonKit FSWatch.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Utilities/FSWatch.swift:786:7: warning: capture of 'eventStream' with non-sendable type 'FSEventStream' in a '@Sendable' closure
784 |
785 | eventStream.callbacksQueue.async {
786 | eventStream.delegate.pathsDidReceiveEvent(paths)
| `- warning: capture of 'eventStream' with non-sendable type 'FSEventStream' in a '@Sendable' closure
787 | }
788 | }
:
793 |
794 | /// Wrapper for Darwin's FSEventStream API.
795 | public final class FSEventStream {
| `- note: class 'FSEventStream' does not conform to the 'Sendable' protocol
796 |
797 | /// The errors encountered during fs event watching.
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Utilities/FSWatch.swift:848:28: warning: capture of 'self' with non-sendable type 'FSEventStream?' in a '@Sendable' closure
793 |
794 | /// Wrapper for Darwin's FSEventStream API.
795 | public final class FSEventStream {
| `- note: class 'FSEventStream' does not conform to the 'Sendable' protocol
796 |
797 | /// The errors encountered during fs event watching.
:
846 | public func start() throws {
847 | let thread = Foundation.Thread { [weak self] in
848 | guard let `self` = self else { return }
| `- warning: capture of 'self' with non-sendable type 'FSEventStream?' in a '@Sendable' closure
849 | self.runLoop = CFRunLoopGetCurrent()
850 | let queue = DispatchQueue(label: "org.swiftwasm.carton.FSWatch")
[816/829] Compiling CartonKit ServerHTTPHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:124:7: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
122 | context.write(self.wrapOutboundOut(.body(.byteBuffer(body))), promise: nil)
123 | context.write(self.wrapOutboundOut(.end(nil))).whenComplete { (_: Result<Void, Error>) in
124 | context.close(promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
125 | }
126 | context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:245:7: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
243 | context.write(self.wrapOutboundOut(.head(head)), promise: nil)
244 | context.write(self.wrapOutboundOut(.end(nil))).whenComplete { (_: Result<Void, Error>) in
245 | context.close(promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
246 | }
247 | context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:260:7: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
258 | context.write(self.wrapOutboundOut(.head(head)), promise: nil)
259 | context.write(self.wrapOutboundOut(.end(nil))).whenComplete { (_: Result<Void, Error>) in
260 | context.close(promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
261 | }
262 | context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
[817/829] Compiling CartonKit Server.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:137:24: warning: static property 'regex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
135 | }
136 |
137 | private static let regex = #/([\w ]+)/([\w\.]+) \(PID (\d+)\)/#
| |- warning: static property 'regex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'regex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
138 |
139 | public static func parse(_ string: String) throws -> ServerNameField {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:311:34: warning: type 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
309 | },
310 | upgradePipelineHandler: { (channel: Channel, head: HTTPRequestHead) in
311 | return channel.eventLoop.makeFutureWithTask { () -> ServerWebSocketHandler? in
| `- warning: type 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
312 | guard head.uri == "/watcher" else {
313 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerWebSocketHandler.swift:19:13: note: class 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
17 | import NIOWebSocket
18 |
19 | final class ServerWebSocketHandler: ChannelInboundHandler {
| `- note: class 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
20 | typealias InboundIn = WebSocketFrame
21 | typealias OutboundOut = WebSocketFrame
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:339:47: warning: conformance of 'NIOWebSocketFrameAggregator' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
337 | maxAccumulatedFrameSize: .max
338 | )
339 | return channel.pipeline.addHandlers(aggregator, handler)
| `- warning: conformance of 'NIOWebSocketFrameAggregator' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
340 | }
341 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOWebSocket/NIOWebSocketFrameAggregator.swift:138:1: note: conformance of 'NIOWebSocketFrameAggregator' to 'Sendable' has been explicitly marked unavailable here
136 |
137 | @available(*, unavailable)
138 | extension NIOWebSocketFrameAggregator: Sendable {}
| `- note: conformance of 'NIOWebSocketFrameAggregator' to 'Sendable' has been explicitly marked unavailable here
139 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:339:59: warning: type 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
337 | maxAccumulatedFrameSize: .max
338 | )
339 | return channel.pipeline.addHandlers(aggregator, handler)
| `- warning: type 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
340 | }
341 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerWebSocketHandler.swift:19:13: note: class 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
17 | import NIOWebSocket
18 |
19 | final class ServerWebSocketHandler: ChannelInboundHandler {
| `- note: class 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
20 | typealias InboundIn = WebSocketFrame
21 | typealias OutboundOut = WebSocketFrame
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:361:44: warning: type 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
359 | upgraders: [upgrader],
360 | completionHandler: { _ in
361 | channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
362 | }
363 | )
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:20:13: note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
18 | import NIOHTTP1
19 |
20 | final class ServerHTTPHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
21 | typealias InboundIn = HTTPServerRequestPart
22 | typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:364:80: warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
362 | }
363 | )
364 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config).flatMap {
| `- warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
365 | channel.pipeline.addHandler(httpHandler)
366 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:365:39: warning: type 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
363 | )
364 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config).flatMap {
365 | channel.pipeline.addHandler(httpHandler)
| `- warning: type 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
366 | }
367 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:20:13: note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
18 | import NIOHTTP1
19 |
20 | final class ServerHTTPHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
21 | typealias InboundIn = HTTPServerRequestPart
22 | typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:357:60: warning: capture of 'handlerConfiguration' with non-sendable type 'ServerHTTPHandler.Configuration' in a '@Sendable' closure
355 | .serverChannelOption(ChannelOptions.socketOption(.so_reuseaddr), value: 1)
356 | .childChannelInitializer { channel in
357 | let httpHandler = ServerHTTPHandler(configuration: handlerConfiguration)
| `- warning: capture of 'handlerConfiguration' with non-sendable type 'ServerHTTPHandler.Configuration' in a '@Sendable' closure
358 | let config: NIOHTTPServerUpgradeConfiguration = (
359 | upgraders: [upgrader],
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:24:10: note: consider making struct 'Configuration' conform to the 'Sendable' protocol
22 | typealias OutboundOut = HTTPServerResponsePart
23 |
24 | struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
25 | let logger: Logger
26 | let mainWasmPath: AbsolutePath
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:361:44: warning: capture of 'httpHandler' with non-sendable type 'ServerHTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
359 | upgraders: [upgrader],
360 | completionHandler: { _ in
361 | channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: capture of 'httpHandler' with non-sendable type 'ServerHTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
362 | }
363 | )
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:20:13: note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
18 | import NIOHTTP1
19 |
20 | final class ServerHTTPHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
21 | typealias InboundIn = HTTPServerRequestPart
22 | typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:365:39: warning: capture of 'httpHandler' with non-sendable type 'ServerHTTPHandler' in a '@Sendable' closure
363 | )
364 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config).flatMap {
365 | channel.pipeline.addHandler(httpHandler)
| `- warning: capture of 'httpHandler' with non-sendable type 'ServerHTTPHandler' in a '@Sendable' closure
366 | }
367 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:20:13: note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
18 | import NIOHTTP1
19 |
20 | final class ServerHTTPHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
21 | typealias InboundIn = HTTPServerRequestPart
22 | typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:424:25: warning: actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | private var isSubsequentBuildScheduled = false
171 |
172 | private let configuration: Configuration
| `- note: property declared here
173 |
174 | private let serverName: ServerNameField
:
422 | }
423 |
424 | let terminal = self.configuration.terminal
| `- warning: actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
425 |
426 | switch event {
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:456:25: warning: actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | private var isSubsequentBuildScheduled = false
171 |
172 | private let configuration: Configuration
| `- note: property declared here
173 |
174 | private let serverName: ServerNameField
:
454 |
455 | nonisolated func webSocketBinaryHandler(data: Data) {
456 | let terminal = self.configuration.terminal
| `- warning: actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
457 |
458 | if data.count < 2 {
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:253:14: 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
251 | watcher = FSWatch(paths: builder.pathsToWatch, latency: 0.1) { [weak self] changes in
252 | guard let self = self, !changes.isEmpty else { return }
253 | Task { try await self.onChange(changes, configuration) }
| | `- note: closure captures 'configuration' which is accessible to code in the current 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
254 | }
255 | try watcher?.start()
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:394:25: warning: sending 'builder' risks causing data races; this is an error in the Swift 6 language mode
392 | ) async throws {
393 | do {
394 | try await builder.run()
| |- warning: sending 'builder' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'builder' to nonisolated instance method 'run()' risks causing data races between nonisolated and 'self'-isolated uses
395 | } catch {
396 | terminal.write("Build failed\n", inColor: .red)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:253:31: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
251 | watcher = FSWatch(paths: builder.pathsToWatch, latency: 0.1) { [weak self] changes in
252 | guard let self = self, !changes.isEmpty else { return }
253 | Task { try await self.onChange(changes, configuration) }
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to actor-isolated instance method 'onChange' risks causing data races between actor-isolated and task-isolated uses
254 | }
255 | try watcher?.start()
[818/829] Compiling CartonKit ContentTypes.swift
[819/829] Compiling CartonKit ServerWebSocketHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerWebSocketHandler.swift:73:9: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
71 | let closeFrame = WebSocketFrame(fin: true, opcode: .connectionClose, data: closeDataCode)
72 | _ = context.write(self.wrapOutboundOut(closeFrame)).map { () in
73 | context.close(promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
74 | }
75 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerWebSocketHandler.swift:83:7: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
81 | let frame = WebSocketFrame(fin: true, opcode: .connectionClose, data: data)
82 | context.write(self.wrapOutboundOut(frame)).whenComplete { (_: Result<Void, Error>) in
83 | context.close(mode: .output, promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
84 | }
85 | awaitingClose = true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
[820/829] Compiling CartonKit FSWatch.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Utilities/FSWatch.swift:786:7: warning: capture of 'eventStream' with non-sendable type 'FSEventStream' in a '@Sendable' closure
784 |
785 | eventStream.callbacksQueue.async {
786 | eventStream.delegate.pathsDidReceiveEvent(paths)
| `- warning: capture of 'eventStream' with non-sendable type 'FSEventStream' in a '@Sendable' closure
787 | }
788 | }
:
793 |
794 | /// Wrapper for Darwin's FSEventStream API.
795 | public final class FSEventStream {
| `- note: class 'FSEventStream' does not conform to the 'Sendable' protocol
796 |
797 | /// The errors encountered during fs event watching.
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Utilities/FSWatch.swift:848:28: warning: capture of 'self' with non-sendable type 'FSEventStream?' in a '@Sendable' closure
793 |
794 | /// Wrapper for Darwin's FSEventStream API.
795 | public final class FSEventStream {
| `- note: class 'FSEventStream' does not conform to the 'Sendable' protocol
796 |
797 | /// The errors encountered during fs event watching.
:
846 | public func start() throws {
847 | let thread = Foundation.Thread { [weak self] in
848 | guard let `self` = self else { return }
| `- warning: capture of 'self' with non-sendable type 'FSEventStream?' in a '@Sendable' closure
849 | self.runLoop = CFRunLoopGetCurrent()
850 | let queue = DispatchQueue(label: "org.swiftwasm.carton.FSWatch")
[821/829] Compiling CartonKit Environment+UserAgent.swift
[822/829] Compiling CartonKit ContentTypes.swift
[823/829] Compiling CartonKit Server.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:137:24: warning: static property 'regex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
135 | }
136 |
137 | private static let regex = #/([\w ]+)/([\w\.]+) \(PID (\d+)\)/#
| |- warning: static property 'regex' is not concurrency-safe because non-'Sendable' type 'Regex<(Substring, Substring, Substring, Substring)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'regex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
138 |
139 | public static func parse(_ string: String) throws -> ServerNameField {
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:311:34: warning: type 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
309 | },
310 | upgradePipelineHandler: { (channel: Channel, head: HTTPRequestHead) in
311 | return channel.eventLoop.makeFutureWithTask { () -> ServerWebSocketHandler? in
| `- warning: type 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
312 | guard head.uri == "/watcher" else {
313 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerWebSocketHandler.swift:19:13: note: class 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
17 | import NIOWebSocket
18 |
19 | final class ServerWebSocketHandler: ChannelInboundHandler {
| `- note: class 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
20 | typealias InboundIn = WebSocketFrame
21 | typealias OutboundOut = WebSocketFrame
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:339:47: warning: conformance of 'NIOWebSocketFrameAggregator' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
337 | maxAccumulatedFrameSize: .max
338 | )
339 | return channel.pipeline.addHandlers(aggregator, handler)
| `- warning: conformance of 'NIOWebSocketFrameAggregator' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
340 | }
341 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOWebSocket/NIOWebSocketFrameAggregator.swift:138:1: note: conformance of 'NIOWebSocketFrameAggregator' to 'Sendable' has been explicitly marked unavailable here
136 |
137 | @available(*, unavailable)
138 | extension NIOWebSocketFrameAggregator: Sendable {}
| `- note: conformance of 'NIOWebSocketFrameAggregator' to 'Sendable' has been explicitly marked unavailable here
139 |
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:339:59: warning: type 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
337 | maxAccumulatedFrameSize: .max
338 | )
339 | return channel.pipeline.addHandlers(aggregator, handler)
| `- warning: type 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
340 | }
341 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerWebSocketHandler.swift:19:13: note: class 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
17 | import NIOWebSocket
18 |
19 | final class ServerWebSocketHandler: ChannelInboundHandler {
| `- note: class 'ServerWebSocketHandler' does not conform to the 'Sendable' protocol
20 | typealias InboundIn = WebSocketFrame
21 | typealias OutboundOut = WebSocketFrame
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:361:44: warning: type 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
359 | upgraders: [upgrader],
360 | completionHandler: { _ in
361 | channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
362 | }
363 | )
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:20:13: note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
18 | import NIOHTTP1
19 |
20 | final class ServerHTTPHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
21 | typealias InboundIn = HTTPServerRequestPart
22 | typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:364:80: warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
362 | }
363 | )
364 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config).flatMap {
| `- warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
365 | channel.pipeline.addHandler(httpHandler)
366 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:365:39: warning: type 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
363 | )
364 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config).flatMap {
365 | channel.pipeline.addHandler(httpHandler)
| `- warning: type 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
366 | }
367 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:20:13: note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
18 | import NIOHTTP1
19 |
20 | final class ServerHTTPHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
21 | typealias InboundIn = HTTPServerRequestPart
22 | typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:357:60: warning: capture of 'handlerConfiguration' with non-sendable type 'ServerHTTPHandler.Configuration' in a '@Sendable' closure
355 | .serverChannelOption(ChannelOptions.socketOption(.so_reuseaddr), value: 1)
356 | .childChannelInitializer { channel in
357 | let httpHandler = ServerHTTPHandler(configuration: handlerConfiguration)
| `- warning: capture of 'handlerConfiguration' with non-sendable type 'ServerHTTPHandler.Configuration' in a '@Sendable' closure
358 | let config: NIOHTTPServerUpgradeConfiguration = (
359 | upgraders: [upgrader],
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:24:10: note: consider making struct 'Configuration' conform to the 'Sendable' protocol
22 | typealias OutboundOut = HTTPServerResponsePart
23 |
24 | struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
25 | let logger: Logger
26 | let mainWasmPath: AbsolutePath
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:361:44: warning: capture of 'httpHandler' with non-sendable type 'ServerHTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
359 | upgraders: [upgrader],
360 | completionHandler: { _ in
361 | channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: capture of 'httpHandler' with non-sendable type 'ServerHTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
362 | }
363 | )
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:20:13: note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
18 | import NIOHTTP1
19 |
20 | final class ServerHTTPHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
21 | typealias InboundIn = HTTPServerRequestPart
22 | typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:365:39: warning: capture of 'httpHandler' with non-sendable type 'ServerHTTPHandler' in a '@Sendable' closure
363 | )
364 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config).flatMap {
365 | channel.pipeline.addHandler(httpHandler)
| `- warning: capture of 'httpHandler' with non-sendable type 'ServerHTTPHandler' in a '@Sendable' closure
366 | }
367 | }
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/ServerHTTPHandler.swift:20:13: note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
18 | import NIOHTTP1
19 |
20 | final class ServerHTTPHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'ServerHTTPHandler' does not conform to the 'Sendable' protocol
21 | typealias InboundIn = HTTPServerRequestPart
22 | typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:424:25: warning: actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | private var isSubsequentBuildScheduled = false
171 |
172 | private let configuration: Configuration
| `- note: property declared here
173 |
174 | private let serverName: ServerNameField
:
422 | }
423 |
424 | let terminal = self.configuration.terminal
| `- warning: actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
425 |
426 | switch event {
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:456:25: warning: actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | private var isSubsequentBuildScheduled = false
171 |
172 | private let configuration: Configuration
| `- note: property declared here
173 |
174 | private let serverName: ServerNameField
:
454 |
455 | nonisolated func webSocketBinaryHandler(data: Data) {
456 | let terminal = self.configuration.terminal
| `- warning: actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
457 |
458 | if data.count < 2 {
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:253:14: 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
251 | watcher = FSWatch(paths: builder.pathsToWatch, latency: 0.1) { [weak self] changes in
252 | guard let self = self, !changes.isEmpty else { return }
253 | Task { try await self.onChange(changes, configuration) }
| | `- note: closure captures 'configuration' which is accessible to code in the current 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
254 | }
255 | try watcher?.start()
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:394:25: warning: sending 'builder' risks causing data races; this is an error in the Swift 6 language mode
392 | ) async throws {
393 | do {
394 | try await builder.run()
| |- warning: sending 'builder' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'builder' to nonisolated instance method 'run()' risks causing data races between nonisolated and 'self'-isolated uses
395 | } catch {
396 | terminal.write("Build failed\n", inColor: .red)
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Server/Server.swift:253:31: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
251 | watcher = FSWatch(paths: builder.pathsToWatch, latency: 0.1) { [weak self] changes in
252 | guard let self = self, !changes.isEmpty else { return }
253 | Task { try await self.onChange(changes, configuration) }
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to actor-isolated instance method 'onChange' risks causing data races between actor-isolated and task-isolated uses
254 | }
255 | try watcher?.start()
[824/835] Compiling CartonFrontend CartonFrontendCommand.swift
[825/835] Emitting module CartonFrontend
/Users/admin/builder/spi-builder-workspace/Sources/CartonFrontend/Commands/CartonFrontendDevCommand.swift:44:14: warning: static property 'entrypoint' is not concurrency-safe because non-'Sendable' type 'Entrypoint' may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | struct CartonFrontendDevCommand: AsyncParsableCommand {
44 | static let entrypoint = Entrypoint(fileName: "dev.js", content: StaticResource.dev)
| `- warning: static property 'entrypoint' is not concurrency-safe because non-'Sendable' type 'Entrypoint' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | @Option(help: "Specify name of an executable product in development.")
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Model/Entrypoint.swift:18:15: note: struct 'Entrypoint' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public struct Entrypoint {
| `- note: struct 'Entrypoint' does not conform to the 'Sendable' protocol
19 | let fileName: String
20 | let content: ByteString
/Users/admin/builder/spi-builder-workspace/Sources/CartonFrontend/Commands/CartonFrontendDevCommand.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CartonKit'
16 | import CartonCore
17 | import CartonHelpers
18 | import CartonKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CartonKit'
19 | import Foundation
20 |
:
42 |
43 | struct CartonFrontendDevCommand: AsyncParsableCommand {
44 | static let entrypoint = Entrypoint(fileName: "dev.js", content: StaticResource.dev)
| |- note: add '@MainActor' to make static property 'entrypoint' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | @Option(help: "Specify name of an executable product in development.")
[826/835] Compiling CartonFrontend CartonFrontendDevCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonFrontend/Commands/CartonFrontendDevCommand.swift:44:14: warning: static property 'entrypoint' is not concurrency-safe because non-'Sendable' type 'Entrypoint' may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | struct CartonFrontendDevCommand: AsyncParsableCommand {
44 | static let entrypoint = Entrypoint(fileName: "dev.js", content: StaticResource.dev)
| `- warning: static property 'entrypoint' is not concurrency-safe because non-'Sendable' type 'Entrypoint' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | @Option(help: "Specify name of an executable product in development.")
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Model/Entrypoint.swift:18:15: note: struct 'Entrypoint' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public struct Entrypoint {
| `- note: struct 'Entrypoint' does not conform to the 'Sendable' protocol
19 | let fileName: String
20 | let content: ByteString
/Users/admin/builder/spi-builder-workspace/Sources/CartonFrontend/Commands/CartonFrontendDevCommand.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CartonKit'
16 | import CartonCore
17 | import CartonHelpers
18 | import CartonKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CartonKit'
19 | import Foundation
20 |
:
42 |
43 | struct CartonFrontendDevCommand: AsyncParsableCommand {
44 | static let entrypoint = Entrypoint(fileName: "dev.js", content: StaticResource.dev)
| |- note: add '@MainActor' to make static property 'entrypoint' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | @Option(help: "Specify name of an executable product in development.")
/Users/admin/builder/spi-builder-workspace/Sources/CartonFrontend/Commands/CartonFrontendDevCommand.swift:164:28: warning: sending value of non-Sendable type 'Server.Configuration' risks causing data races; this is an error in the Swift 6 language mode
162 | }
163 |
164 | let server = try await Server(
| |- warning: sending value of non-Sendable type 'Server.Configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'Server.Configuration' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
165 | .init(
166 | builder: try makeBuilderIfNeed(),
:
185 | try openInSystemBrowser(url: localURL)
186 | } catch {
187 | terminal.write("open browser failed: \(error)", inColor: .red)
| `- note: access can happen concurrently
188 | }
189 | }
[827/835] Compiling CartonFrontend CartonFrontendCommand.swift
[828/835] Compiling CartonFrontend CartonFrontendDevCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/CartonFrontend/Commands/CartonFrontendDevCommand.swift:44:14: warning: static property 'entrypoint' is not concurrency-safe because non-'Sendable' type 'Entrypoint' may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | struct CartonFrontendDevCommand: AsyncParsableCommand {
44 | static let entrypoint = Entrypoint(fileName: "dev.js", content: StaticResource.dev)
| `- warning: static property 'entrypoint' is not concurrency-safe because non-'Sendable' type 'Entrypoint' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | @Option(help: "Specify name of an executable product in development.")
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Model/Entrypoint.swift:18:15: note: struct 'Entrypoint' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public struct Entrypoint {
| `- note: struct 'Entrypoint' does not conform to the 'Sendable' protocol
19 | let fileName: String
20 | let content: ByteString
/Users/admin/builder/spi-builder-workspace/Sources/CartonFrontend/Commands/CartonFrontendDevCommand.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CartonKit'
16 | import CartonCore
17 | import CartonHelpers
18 | import CartonKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CartonKit'
19 | import Foundation
20 |
:
42 |
43 | struct CartonFrontendDevCommand: AsyncParsableCommand {
44 | static let entrypoint = Entrypoint(fileName: "dev.js", content: StaticResource.dev)
| |- note: add '@MainActor' to make static property 'entrypoint' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | @Option(help: "Specify name of an executable product in development.")
/Users/admin/builder/spi-builder-workspace/Sources/CartonFrontend/Commands/CartonFrontendDevCommand.swift:164:28: warning: sending value of non-Sendable type 'Server.Configuration' risks causing data races; this is an error in the Swift 6 language mode
162 | }
163 |
164 | let server = try await Server(
| |- warning: sending value of non-Sendable type 'Server.Configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'Server.Configuration' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
165 | .init(
166 | builder: try makeBuilderIfNeed(),
:
185 | try openInSystemBrowser(url: localURL)
186 | } catch {
187 | terminal.write("open browser failed: \(error)", inColor: .red)
| `- note: access can happen concurrently
188 | }
189 | }
[829/835] Emitting module CartonFrontend
/Users/admin/builder/spi-builder-workspace/Sources/CartonFrontend/Commands/CartonFrontendDevCommand.swift:44:14: warning: static property 'entrypoint' is not concurrency-safe because non-'Sendable' type 'Entrypoint' may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | struct CartonFrontendDevCommand: AsyncParsableCommand {
44 | static let entrypoint = Entrypoint(fileName: "dev.js", content: StaticResource.dev)
| `- warning: static property 'entrypoint' is not concurrency-safe because non-'Sendable' type 'Entrypoint' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | @Option(help: "Specify name of an executable product in development.")
/Users/admin/builder/spi-builder-workspace/Sources/CartonKit/Model/Entrypoint.swift:18:15: note: struct 'Entrypoint' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public struct Entrypoint {
| `- note: struct 'Entrypoint' does not conform to the 'Sendable' protocol
19 | let fileName: String
20 | let content: ByteString
/Users/admin/builder/spi-builder-workspace/Sources/CartonFrontend/Commands/CartonFrontendDevCommand.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CartonKit'
16 | import CartonCore
17 | import CartonHelpers
18 | import CartonKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CartonKit'
19 | import Foundation
20 |
:
42 |
43 | struct CartonFrontendDevCommand: AsyncParsableCommand {
44 | static let entrypoint = Entrypoint(fileName: "dev.js", content: StaticResource.dev)
| |- note: add '@MainActor' to make static property 'entrypoint' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | @Option(help: "Specify name of an executable product in development.")
[830/839] Emitting module carton_frontend
[831/839] Compiling carton_frontend main.swift
[831/839] Write Objects.LinkFileList
[833/839] Emitting module carton_frontend
[834/839] Compiling carton_frontend main.swift
[834/839] Write Objects.LinkFileList
[835/839] Linking carton-frontend
[836/839] Applying carton-frontend
[837/839] Linking carton-frontend-tool
[838/839] Applying carton-frontend-tool
Build complete! (38.29s)
Fetching https://github.com/swiftwasm/WasmTransformer
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/apple/swift-argument-parser.git from cache
[1/809] Fetching wasmtransformer
Fetched https://github.com/swiftwasm/WasmTransformer from cache (0.91s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.91s)
Fetched https://github.com/apple/swift-nio.git from cache (0.91s)
Computing version for https://github.com/swiftwasm/WasmTransformer
Computed https://github.com/swiftwasm/WasmTransformer at 0.5.0 (1.82s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.1 (0.45s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.82.1 (0.65s)
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-atomics.git from cache (0.76s)
Fetched https://github.com/apple/swift-system.git from cache (0.77s)
Fetched https://github.com/apple/swift-collections.git from cache (0.79s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.27s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.45s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.68s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/swiftwasm/WasmTransformer
Working copy of https://github.com/swiftwasm/WasmTransformer resolved at 0.5.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.82.1
Build complete.
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "1.4.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.34.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "wasmtransformer",
"requirement" : {
"range" : [
{
"lower_bound" : "0.5.0",
"upper_bound" : "0.6.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftwasm/WasmTransformer"
}
],
"manifest_display_name" : "carton",
"name" : "carton",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "carton",
"targets" : [
"carton"
],
"type" : {
"executable" : null
}
},
{
"name" : "carton-release",
"targets" : [
"carton-release"
],
"type" : {
"executable" : null
}
},
{
"name" : "CartonBundlePlugin",
"targets" : [
"CartonBundlePlugin"
],
"type" : {
"plugin" : null
}
},
{
"name" : "CartonTestPlugin",
"targets" : [
"CartonTestPlugin"
],
"type" : {
"plugin" : null
}
},
{
"name" : "CartonDevPlugin",
"targets" : [
"CartonDevPlugin"
],
"type" : {
"plugin" : null
}
},
{
"name" : "carton-plugin-helper",
"targets" : [
"carton-plugin-helper"
],
"type" : {
"executable" : null
}
},
{
"name" : "carton-frontend-slim",
"targets" : [
"carton-frontend-slim"
],
"type" : {
"executable" : null
}
},
{
"name" : "carton-frontend",
"targets" : [
"carton-frontend"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "carton_release",
"module_type" : "SwiftTarget",
"name" : "carton-release",
"path" : "Sources/carton-release",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"carton-release"
],
"sources" : [
"CartonReleaseCommand.swift",
"HashArchive.swift"
],
"target_dependencies" : [
"CartonHelpers",
"CartonCore"
],
"type" : "executable"
},
{
"c99name" : "carton_plugin_helper",
"module_type" : "SwiftTarget",
"name" : "carton-plugin-helper",
"path" : "Sources/carton-plugin-helper",
"product_memberships" : [
"carton-plugin-helper"
],
"sources" : [
"main.swift"
],
"type" : "executable"
},
{
"c99name" : "carton_frontend_slim",
"module_type" : "SwiftTarget",
"name" : "carton-frontend-slim",
"path" : "Sources/carton-frontend-slim",
"product_dependencies" : [
"ArgumentParser",
"WasmTransformer"
],
"product_memberships" : [
"CartonBundlePlugin",
"CartonTestPlugin",
"carton-frontend-slim"
],
"sources" : [
"BundleLayout.swift",
"CartonFrontendBundleCommand.swift",
"CartonFrontendSlimCommand.swift",
"CartonFrontendTestCommand.swift",
"TestRunners/CommandTestRunner.swift",
"TestRunners/JavaScriptTestRunner.swift",
"TestRunners/String+Regex.swift",
"TestRunners/String+color.swift",
"TestRunners/TestRunner.swift",
"TestRunners/TestsParser.swift"
],
"target_dependencies" : [
"CartonHelpers"
],
"type" : "executable"
},
{
"c99name" : "carton_frontend",
"module_type" : "SwiftTarget",
"name" : "carton-frontend",
"path" : "Sources/carton-frontend",
"product_memberships" : [
"CartonDevPlugin",
"carton-frontend"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CartonFrontend"
],
"type" : "executable"
},
{
"c99name" : "carton",
"module_type" : "SwiftTarget",
"name" : "carton",
"path" : "Sources/carton",
"product_memberships" : [
"carton"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CartonDriver"
],
"type" : "executable"
},
{
"c99name" : "WebDriverTests",
"module_type" : "SwiftTarget",
"name" : "WebDriverTests",
"path" : "Tests/WebDriverTests",
"sources" : [
"WebDriverClientTests.swift"
],
"target_dependencies" : [
"WebDriver"
],
"type" : "test"
},
{
"c99name" : "WebDriver",
"module_type" : "SwiftTarget",
"name" : "WebDriver",
"path" : "Sources/WebDriver",
"product_dependencies" : [
"NIO"
],
"sources" : [
"CommandWebDriverService.swift",
"CurlWebDriverHTTPClient.swift",
"RemoteWebDriverService.swift",
"URLSessionAsync.swift",
"URLSessionWebDriverHTTPClient.swift",
"WebDriverClient.swift",
"WebDriverError.swift",
"WebDriverHTTPClient.swift",
"WebDriverService.swift"
],
"target_dependencies" : [
"CartonHelpers"
],
"type" : "library"
},
{
"c99name" : "TSCclibc",
"module_type" : "ClangTarget",
"name" : "TSCclibc",
"path" : "Sources/TSCclibc",
"product_memberships" : [
"carton-release",
"CartonBundlePlugin",
"CartonTestPlugin",
"CartonDevPlugin",
"carton-frontend-slim",
"carton-frontend"
],
"sources" : [
"process.c.c"
],
"type" : "library"
},
{
"c99name" : "TSCLibc",
"module_type" : "SwiftTarget",
"name" : "TSCLibc",
"path" : "Sources/TSCLibc",
"product_memberships" : [
"carton-release",
"CartonBundlePlugin",
"CartonTestPlugin",
"CartonDevPlugin",
"carton-frontend-slim",
"carton-frontend"
],
"sources" : [
"libc.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftToolchain",
"module_type" : "SwiftTarget",
"name" : "SwiftToolchain",
"path" : "Sources/SwiftToolchain",
"product_memberships" : [
"carton"
],
"sources" : [
"AsyncFileDownload.swift",
"ToolchainInstallation.swift",
"ToolchainManagement.swift",
"ToolchainResolver.swift",
"URLSession.swift",
"Utilities/ProgressAnimation.swift"
],
"target_dependencies" : [
"CartonCore"
],
"type" : "library"
},
{
"c99name" : "CartonTests",
"module_type" : "SwiftTarget",
"name" : "CartonTests",
"path" : "Tests/CartonTests",
"product_dependencies" : [
"ArgumentParser"
],
"sources" : [
"CartonTests.swift",
"ProcessTests.swift",
"StackTraceTests.swift"
],
"target_dependencies" : [
"CartonFrontend",
"CartonHelpers"
],
"type" : "test"
},
{
"c99name" : "CartonTestPlugin",
"module_type" : "PluginTarget",
"name" : "CartonTestPlugin",
"path" : "Plugins/CartonTestPlugin",
"plugin_capability" : {
"intent" : {
"description" : "Run the tests in a WASI environment.",
"type" : "custom",
"verb" : "carton-test"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"CartonTestPlugin"
],
"sources" : [
"CartonCore/Environment.swift",
"CartonCore/FileSystem+traverseRecursively.swift",
"CartonCore/FoundationProcessEx.swift",
"CartonCore/InteractiveWriter.swift",
"CartonCore/Misc.swift",
"CartonCore/TerminalController.swift",
"CartonPluginShared/PluginShared.swift",
"CartonTestPluginCommand.swift"
],
"target_dependencies" : [
"carton-frontend-slim"
],
"type" : "plugin"
},
{
"c99name" : "CartonKit",
"module_type" : "SwiftTarget",
"name" : "CartonKit",
"path" : "Sources/CartonKit",
"product_dependencies" : [
"NIOWebSocket",
"NIOHTTP1",
"NIO",
"ArgumentParser",
"WasmTransformer"
],
"product_memberships" : [
"CartonDevPlugin",
"carton-frontend"
],
"sources" : [
"Model/Entrypoint.swift",
"Parsers/ChromeStackTrace.swift",
"Parsers/FirefoxStackTrace.swift",
"Parsers/SafariStackTrace.swift",
"Parsers/StackTrace.swift",
"Server/ContentTypes.swift",
"Server/Environment+UserAgent.swift",
"Server/Server.swift",
"Server/ServerHTTPHandler.swift",
"Server/ServerWebSocketHandler.swift",
"Utilities/FSWatch.swift"
],
"target_dependencies" : [
"CartonHelpers"
],
"type" : "library"
},
{
"c99name" : "CartonHelpers",
"module_type" : "SwiftTarget",
"name" : "CartonHelpers",
"path" : "Sources/CartonHelpers",
"product_memberships" : [
"carton-release",
"CartonBundlePlugin",
"CartonTestPlugin",
"CartonDevPlugin",
"carton-frontend-slim",
"carton-frontend"
],
"sources" : [
"Basics/ByteString.swift",
"Basics/CStringArray.swift",
"Basics/Closable.swift",
"Basics/CollectionExtensions.swift",
"Basics/Condition.swift",
"Basics/FileInfo.swift",
"Basics/FileSystem.swift",
"Basics/HashAlgorithms.swift",
"Basics/Lock.swift",
"Basics/Path.swift",
"Basics/PathShims.swift",
"Basics/Process/Process.swift",
"Basics/Process/ProcessEnv.swift",
"Basics/StringConversions.swift",
"Basics/Thread.swift",
"Basics/WritableByteStream.swift",
"Basics/misc.swift",
"HTML.swift",
"Process+run.swift",
"ProcessEx.swift",
"Retry.swift",
"StaticArchive.swift"
],
"target_dependencies" : [
"TSCclibc",
"TSCLibc",
"CartonCore"
],
"type" : "library"
},
{
"c99name" : "CartonFrontend",
"module_type" : "SwiftTarget",
"name" : "CartonFrontend",
"path" : "Sources/CartonFrontend",
"product_memberships" : [
"CartonDevPlugin",
"carton-frontend"
],
"sources" : [
"CartonFrontendCommand.swift",
"Commands/CartonFrontendDevCommand.swift"
],
"target_dependencies" : [
"CartonKit"
],
"type" : "library"
},
{
"c99name" : "CartonDriver",
"module_type" : "SwiftTarget",
"name" : "CartonDriver",
"path" : "Sources/CartonDriver",
"product_memberships" : [
"carton"
],
"sources" : [
"CartonDriverCommand.swift"
],
"target_dependencies" : [
"SwiftToolchain"
],
"type" : "library"
},
{
"c99name" : "CartonDevPlugin",
"module_type" : "PluginTarget",
"name" : "CartonDevPlugin",
"path" : "Plugins/CartonDevPlugin",
"plugin_capability" : {
"intent" : {
"description" : "Watch the current directory, host the app, rebuild on change.",
"type" : "custom",
"verb" : "carton-dev"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"CartonDevPlugin"
],
"sources" : [
"CartonCore/Environment.swift",
"CartonCore/FileSystem+traverseRecursively.swift",
"CartonCore/FoundationProcessEx.swift",
"CartonCore/InteractiveWriter.swift",
"CartonCore/Misc.swift",
"CartonCore/TerminalController.swift",
"CartonDevPluginCommand.swift",
"CartonPluginShared/PluginShared.swift"
],
"target_dependencies" : [
"carton-frontend"
],
"type" : "plugin"
},
{
"c99name" : "CartonCore",
"module_type" : "SwiftTarget",
"name" : "CartonCore",
"path" : "Sources/CartonCore",
"product_memberships" : [
"carton",
"carton-release",
"CartonBundlePlugin",
"CartonTestPlugin",
"CartonDevPlugin",
"carton-frontend-slim",
"carton-frontend"
],
"sources" : [
"Environment.swift",
"FileSystem+traverseRecursively.swift",
"FoundationProcessEx.swift",
"InteractiveWriter.swift",
"Misc.swift",
"TerminalController.swift"
],
"type" : "library"
},
{
"c99name" : "CartonCommandTests",
"module_type" : "SwiftTarget",
"name" : "CartonCommandTests",
"path" : "Tests/CartonCommandTests",
"product_dependencies" : [
"ArgumentParser"
],
"sources" : [
"BundleCommandTests.swift",
"CommandTestHelper.swift",
"DevCommandTests.swift",
"FrontendDevServerTests.swift",
"TestCommandTests.swift",
"Testable.swift"
],
"target_dependencies" : [
"CartonFrontend",
"SwiftToolchain",
"WebDriver"
],
"type" : "test"
},
{
"c99name" : "CartonBundlePlugin",
"module_type" : "PluginTarget",
"name" : "CartonBundlePlugin",
"path" : "Plugins/CartonBundlePlugin",
"plugin_capability" : {
"intent" : {
"description" : "Produces an optimized app bundle for distribution.",
"type" : "custom",
"verb" : "carton-bundle"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"CartonBundlePlugin"
],
"sources" : [
"CartonBundlePluginCommand.swift",
"CartonCore/Environment.swift",
"CartonCore/FileSystem+traverseRecursively.swift",
"CartonCore/FoundationProcessEx.swift",
"CartonCore/InteractiveWriter.swift",
"CartonCore/Misc.swift",
"CartonCore/TerminalController.swift",
"CartonPluginShared/PluginShared.swift"
],
"target_dependencies" : [
"carton-frontend-slim"
],
"type" : "plugin"
}
],
"tools_version" : "5.8"
}
Done.