Build Information
Successful build of Seagull, reference 0.2.0 (bb9fa7
), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 10:34:02 UTC.
Swift 6 data race errors: 14
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gavrilaf/seagull.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/gavrilaf/seagull
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at bb9fa72 updated README
Cloned https://github.com/gavrilaf/seagull.git
Revision (git rev-parse @):
bb9fa724af5bbd17ea531844310f3dc51603b402
SUCCESS checkout https://github.com/gavrilaf/seagull.git at 0.2.0
Fetching https://github.com/antitypical/Result.git
Fetching https://github.com/apple/swift-nio.git
[1/2533] Fetching result
[2534/74425] Fetching result, swift-nio
Fetched https://github.com/antitypical/Result.git from cache (6.68s)
Fetched https://github.com/apple/swift-nio.git from cache (6.68s)
Computing version for https://github.com/antitypical/Result.git
Computed https://github.com/antitypical/Result.git at 4.1.0 (2.53s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.61s)
Fetching https://github.com/apple/swift-nio-zlib-support.git
[1/15] Fetching swift-nio-zlib-support
Fetched https://github.com/apple/swift-nio-zlib-support.git from cache (0.57s)
Computing version for https://github.com/apple/swift-nio-zlib-support.git
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (0.56s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
Creating working copy for https://github.com/antitypical/Result.git
Working copy of https://github.com/antitypical/Result.git resolved at 4.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "seagull",
"name": "Seagull",
"url": "https://github.com/gavrilaf/seagull.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/seagull",
"dependencies": [
{
"identity": "result",
"name": "Result",
"url": "https://github.com/antitypical/Result.git",
"version": "4.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Result",
"dependencies": [
]
},
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio.git",
"version": "1.14.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"dependencies": [
{
"identity": "swift-nio-zlib-support",
"name": "swift-nio-zlib-support",
"url": "https://github.com/apple/swift-nio-zlib-support.git",
"version": "1.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio-zlib-support",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/gavrilaf/seagull.git
[1/799] Fetching seagull
Fetched https://github.com/gavrilaf/seagull.git from cache (0.83s)
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/antitypical/Result.git from cache
Fetched https://github.com/apple/swift-nio.git from cache (0.72s)
Fetched https://github.com/antitypical/Result.git from cache (0.72s)
Computing version for https://github.com/antitypical/Result.git
Computed https://github.com/antitypical/Result.git at 4.1.0 (0.03s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.03s)
Fetching https://github.com/apple/swift-nio-zlib-support.git from cache
Fetched https://github.com/apple/swift-nio-zlib-support.git from cache (0.52s)
Computing version for https://github.com/apple/swift-nio-zlib-support.git
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (0.02s)
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
Creating working copy for https://github.com/antitypical/Result.git
Working copy of https://github.com/antitypical/Result.git resolved at 4.1.0
Creating working copy for https://github.com/gavrilaf/seagull.git
Working copy of https://github.com/gavrilaf/seagull.git resolved at 0.2.0 (bb9fa72)
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
Found 2 product dependencies
- Result
- swift-nio
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/gavrilaf/seagull.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
Building for debugging...
[0/24] Write sources
[5/24] Write Rest-entitlement.plist
[6/24] Write sources
[8/24] Write Simple-entitlement.plist
[9/24] Write sources
[10/24] Write swift-version--7754E27361AE5C74.txt
[11/24] Compiling CNIOLinux ifaddrs-android.c
[11/24] Compiling CNIOZlib empty.c
[13/24] Compiling CNIOLinux shim.c
[14/32] Compiling CNIOHTTPParser c_nio_http_parser.c
[15/32] Compiling CNIODarwin shim.c
[16/32] Compiling CNIOSHA1 c_nio_sha1.c
[17/32] Compiling c-atomics.c
[19/35] Compiling NIOPriorityQueue PriorityQueue.swift
[20/35] Emitting module NIOPriorityQueue
[21/35] Compiling NIOPriorityQueue Heap.swift
[22/35] Compiling NIOConcurrencyHelpers lock.swift
[23/35] Emitting module NIOConcurrencyHelpers
[24/35] Compiling NIOConcurrencyHelpers atomics.swift
[25/86] Compiling Result ResultProtocol.swift
[26/86] Compiling NIO FileHandle.swift
[27/86] Compiling NIO FileRegion.swift
[28/86] Compiling NIO GetaddrinfoResolver.swift
[29/86] Compiling NIO HappyEyeballs.swift
[30/86] Compiling NIO Heap.swift
[31/86] Compiling NIO IO.swift
[32/91] Compiling NIO ChannelInvoker.swift
[33/91] Compiling NIO ChannelOption.swift
[34/91] Compiling NIO ChannelPipeline.swift
[35/91] Compiling NIO CircularBuffer.swift
[36/91] Compiling NIO Codec.swift
[37/91] Compiling NIO CompositeError.swift
[38/91] Compiling NIO PendingWritesManager.swift
[39/91] Compiling NIO PriorityQueue.swift
[40/91] Compiling NIO RecvByteBufferAllocator.swift
[41/91] Compiling NIO Resolver.swift
[42/91] Compiling NIO Selectable.swift
[43/91] Compiling NIO IOData.swift
[44/91] Compiling NIO IntegerTypes.swift
[45/91] Compiling NIO Interfaces.swift
[46/91] Compiling NIO Linux.swift
[47/91] Compiling NIO LinuxCPUSet.swift
[48/91] Compiling NIO SocketOptionProvider.swift
[49/91] Compiling NIO System.swift
[50/91] Compiling NIO Thread.swift
[51/91] Compiling NIO TypeAssistedChannelHandler.swift
[52/91] Compiling NIO Utilities.swift
[53/91] Compiling NIO ContiguousCollection.swift
[54/91] Compiling NIO DeadChannel.swift
[55/91] Compiling NIO Embedded.swift
[56/91] Compiling NIO EventLoop.swift
[57/91] Compiling NIO EventLoopFuture.swift
[58/91] Compiling NIO FileDescriptor.swift
[59/91] Compiling NIO AddressedEnvelope.swift
[60/91] Compiling NIO BaseSocket.swift
[61/91] Compiling NIO BaseSocketChannel.swift
[62/91] Compiling NIO BlockingIOThreadPool.swift
[63/91] Compiling NIO Bootstrap.swift
[64/91] Compiling NIO ByteBuffer-aux.swift
[65/91] Compiling NIO MarkedCircularBuffer.swift
[66/91] Compiling NIO MulticastChannel.swift
[67/91] Compiling NIO NIOAny.swift
[68/91] Compiling NIO NonBlockingFileIO.swift
[69/91] Compiling NIO PendingDatagramWritesManager.swift
[70/91] Compiling NIO Selector.swift
[71/91] Compiling NIO ServerSocket.swift
[72/91] Compiling NIO Socket.swift
[73/91] Compiling NIO SocketAddresses.swift
[74/91] Compiling NIO SocketChannel.swift
[75/91] Compiling NIO ByteBuffer-core.swift
[76/91] Compiling NIO ByteBuffer-int.swift
[77/91] Compiling NIO ByteBuffer-views.swift
[78/91] Compiling NIO Channel.swift
[79/91] Compiling NIO ChannelHandler.swift
[80/91] Compiling NIO ChannelHandlers.swift
[81/91] Emitting module NIO
[82/101] Compiling Result AnyError.swift
[83/101] Compiling Result NoError.swift
[84/101] Compiling Result Result.swift
[85/101] Emitting module Result
[86/101] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[87/101] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[88/101] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[89/101] Compiling NIOHTTP1 HTTPTypes.swift
[90/101] Compiling NIOHTTP1 HTTPUpgradeHandler.swift
[91/101] Compiling NIOHTTP1 HTTPResponseCompressor.swift
[92/101] Compiling NIOHTTP1 HTTPEncoder.swift
[93/101] Compiling NIOHTTP1 ByteCollectionUtils.swift
[94/101] Emitting module NIOHTTP1
[95/101] Compiling NIOHTTP1 HTTPDecoder.swift
[96/116] Compiling Seagull SgRequestContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:7:27: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
| `- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
1 | import Foundation
2 | import NIOHTTP1
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
3 |
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
| |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
[97/116] Compiling Seagull SgResult.swift
[98/117] Compiling Seagull SgRequest.swift
[99/117] Compiling Seagull SgDataResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:6:27: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| `- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
1 | import Foundation
2 | import NIOHTTP1
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
3 |
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:7:27: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:8:27: warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
| |- warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'octetStream' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
10 | public static let jpg = HTTPHeaders([("Content-Type", "image/jpg")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
[100/117] Compiling Seagull SgFileResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:6:27: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| `- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
1 | import Foundation
2 | import NIOHTTP1
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
3 |
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:7:27: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:8:27: warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
| |- warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'octetStream' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
10 | public static let jpg = HTTPHeaders([("Content-Type", "image/jpg")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
[101/117] Compiling Seagull SgHandler.swift
[102/117] Compiling Seagull Router.swift
[103/117] Compiling Seagull RouterGroup.swift
[104/117] Compiling Seagull Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Errors.swift:39:10: warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
37 | public enum RouterError: SgError {
38 | case invalidPath(path: String)
39 | case notFound(method: HTTPMethod, uri: String)
| `- warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
40 |
41 | public var httpCode: HTTPResponseStatus {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:840:13: note: enum 'HTTPMethod' does not conform to the 'Sendable' protocol
838 | }
839 |
840 | public enum HTTPMethod: Equatable {
| `- note: enum 'HTTPMethod' does not conform to the 'Sendable' protocol
841 | public enum HasBody {
842 | case yes
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Errors.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
1 | import Foundation
2 | import NIO
3 | import NIOHTTP1
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
4 |
5 | // MARK: -
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Errors.swift:86:16: warning: stored property 'response' of 'Sendable'-conforming struct 'SgErrorResponse' has non-sendable type 'SgDataResponse'; this is an error in the Swift 6 language mode
84 |
85 | public struct SgErrorResponse: Error {
86 | public let response: SgDataResponse
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'SgErrorResponse' has non-sendable type 'SgDataResponse'; this is an error in the Swift 6 language mode
87 | public let error: Error?
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/SgDataResponse.swift:4:15: note: consider making struct 'SgDataResponse' conform to the 'Sendable' protocol
2 | import NIOHTTP1
3 |
4 | public struct SgDataResponse {
| `- note: consider making struct 'SgDataResponse' conform to the 'Sendable' protocol
5 | public let code: HTTPResponseStatus
6 | public let headers: HTTPHeaders
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:6:27: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| `- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
1 | import Foundation
2 | import NIOHTTP1
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
3 |
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:7:27: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:8:27: warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
| |- warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'octetStream' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
10 | public static let jpg = HTTPHeaders([("Content-Type", "image/jpg")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:9:27: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
| |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'html' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let jpg = HTTPHeaders([("Content-Type", "image/jpg")])
11 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:10:27: warning: static property 'jpg' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
10 | public static let jpg = HTTPHeaders([("Content-Type", "image/jpg")])
| |- warning: static property 'jpg' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jpg' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
[105/117] Compiling Seagull HTTP+Seagull.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Errors.swift:39:10: warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
37 | public enum RouterError: SgError {
38 | case invalidPath(path: String)
39 | case notFound(method: HTTPMethod, uri: String)
| `- warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
40 |
41 | public var httpCode: HTTPResponseStatus {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:840:13: note: enum 'HTTPMethod' does not conform to the 'Sendable' protocol
838 | }
839 |
840 | public enum HTTPMethod: Equatable {
| `- note: enum 'HTTPMethod' does not conform to the 'Sendable' protocol
841 | public enum HasBody {
842 | case yes
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Errors.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
1 | import Foundation
2 | import NIO
3 | import NIOHTTP1
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
4 |
5 | // MARK: -
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Errors.swift:86:16: warning: stored property 'response' of 'Sendable'-conforming struct 'SgErrorResponse' has non-sendable type 'SgDataResponse'; this is an error in the Swift 6 language mode
84 |
85 | public struct SgErrorResponse: Error {
86 | public let response: SgDataResponse
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'SgErrorResponse' has non-sendable type 'SgDataResponse'; this is an error in the Swift 6 language mode
87 | public let error: Error?
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/SgDataResponse.swift:4:15: note: consider making struct 'SgDataResponse' conform to the 'Sendable' protocol
2 | import NIOHTTP1
3 |
4 | public struct SgDataResponse {
| `- note: consider making struct 'SgDataResponse' conform to the 'Sendable' protocol
5 | public let code: HTTPResponseStatus
6 | public let headers: HTTPHeaders
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:6:27: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| `- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
1 | import Foundation
2 | import NIOHTTP1
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
3 |
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:7:27: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:8:27: warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
| |- warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'octetStream' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
10 | public static let jpg = HTTPHeaders([("Content-Type", "image/jpg")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:9:27: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
| |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'html' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let jpg = HTTPHeaders([("Content-Type", "image/jpg")])
11 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:10:27: warning: static property 'jpg' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
10 | public static let jpg = HTTPHeaders([("Content-Type", "image/jpg")])
| |- warning: static property 'jpg' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jpg' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
[106/117] Emitting module Seagull
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Errors.swift:39:10: warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
37 | public enum RouterError: SgError {
38 | case invalidPath(path: String)
39 | case notFound(method: HTTPMethod, uri: String)
| `- warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
40 |
41 | public var httpCode: HTTPResponseStatus {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:840:13: note: enum 'HTTPMethod' does not conform to the 'Sendable' protocol
838 | }
839 |
840 | public enum HTTPMethod: Equatable {
| `- note: enum 'HTTPMethod' does not conform to the 'Sendable' protocol
841 | public enum HasBody {
842 | case yes
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Errors.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
1 | import Foundation
2 | import NIO
3 | import NIOHTTP1
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
4 |
5 | // MARK: -
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Errors.swift:86:16: warning: stored property 'response' of 'Sendable'-conforming struct 'SgErrorResponse' has non-sendable type 'SgDataResponse'; this is an error in the Swift 6 language mode
84 |
85 | public struct SgErrorResponse: Error {
86 | public let response: SgDataResponse
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'SgErrorResponse' has non-sendable type 'SgDataResponse'; this is an error in the Swift 6 language mode
87 | public let error: Error?
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/SgDataResponse.swift:4:15: note: consider making struct 'SgDataResponse' conform to the 'Sendable' protocol
2 | import NIOHTTP1
3 |
4 | public struct SgDataResponse {
| `- note: consider making struct 'SgDataResponse' conform to the 'Sendable' protocol
5 | public let code: HTTPResponseStatus
6 | public let headers: HTTPHeaders
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:6:27: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| `- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
1 | import Foundation
2 | import NIOHTTP1
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
3 |
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:7:27: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:8:27: warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
| |- warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'octetStream' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
10 | public static let jpg = HTTPHeaders([("Content-Type", "image/jpg")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:9:27: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
| |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'html' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let jpg = HTTPHeaders([("Content-Type", "image/jpg")])
11 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:10:27: warning: static property 'jpg' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
9 | public static let html = HTTPHeaders([("Content-Type", "text/html")])
10 | public static let jpg = HTTPHeaders([("Content-Type", "image/jpg")])
| |- warning: static property 'jpg' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jpg' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
[107/117] Compiling Seagull Engine.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:6:27: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| `- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
1 | import Foundation
2 | import NIOHTTP1
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
3 |
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
[108/117] Compiling Seagull ErrorProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:6:27: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| `- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPTypes.swift:446:15: note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
444 | /// or split representation, such that header fields that are able to be repeated
445 | /// can be represented appropriately.
446 | public struct HTTPHeaders: CustomStringConvertible {
| `- note: struct 'HTTPHeaders' does not conform to the 'Sendable' protocol
447 |
448 | private final class _Storage {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/HTTP+Seagull.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
1 | import Foundation
2 | import NIOHTTP1
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
3 |
4 | public struct Headers {
5 | public struct MIME {
6 | public static let text = HTTPHeaders([("Content-Type", "text/plain")])
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let json = HTTPHeaders([("Content-Type", "application/json")])
8 | public static let octetStream = HTTPHeaders([("Content-Type", "application/octet-stream")])
[109/117] Compiling Seagull HTTPHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/LogProvider.swift:17:36: warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | public func info(_ msg: @autoclosure @escaping () -> String) {
16 | queue.async {
17 | DefaultLogger.printMsg(msg(), prefix: Prefix.info)
| |- warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
18 | }
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/LogProvider.swift:23:36: warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | public func warning(_ msg: @autoclosure @escaping () -> String) {
22 | queue.async {
23 | DefaultLogger.printMsg(msg(), prefix: Prefix.warning)
| |- warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/LogProvider.swift:29:36: warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | public func error(_ msg: @autoclosure @escaping () -> String) {
28 | queue.async {
29 | DefaultLogger.printMsg(msg(), prefix: Prefix.error)
| |- warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
30 | }
31 | }
[110/117] Compiling Seagull LogProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/LogProvider.swift:17:36: warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | public func info(_ msg: @autoclosure @escaping () -> String) {
16 | queue.async {
17 | DefaultLogger.printMsg(msg(), prefix: Prefix.info)
| |- warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
18 | }
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/LogProvider.swift:23:36: warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | public func warning(_ msg: @autoclosure @escaping () -> String) {
22 | queue.async {
23 | DefaultLogger.printMsg(msg(), prefix: Prefix.warning)
| |- warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/LogProvider.swift:29:36: warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | public func error(_ msg: @autoclosure @escaping () -> String) {
28 | queue.async {
29 | DefaultLogger.printMsg(msg(), prefix: Prefix.error)
| |- warning: capture of 'msg' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
30 | }
31 | }
[111/117] Compiling Seagull UriParser.swift
[112/124] Compiling Simple main.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:5:5: warning: let 'plainTextHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import NIOHTTP1
4 |
5 | let plainTextHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'plainTextHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'plainTextHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | return SgResult.data(response: SgDataResponse.from(string: "This is just a string"))
7 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:9:5: warning: let 'jsonObjHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
7 | }
8 |
9 | let jsonObjHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'jsonObjHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jsonObjHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | struct TestObj: Encodable {
11 | let id: Int
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:19:5: warning: let 'jsonDictHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
17 | }
18 |
19 | let jsonDictHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'jsonDictHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jsonDictHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | let dict: [String: Any] = [
21 | "id": 123,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:29:5: warning: let 'fileHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | let fileHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'fileHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fileHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | let path = FileManager.default.currentDirectoryPath + "/README.md"
31 | let fileResp = SgFileResponse(path: path, headers: Headers.MIME.text)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:36:5: warning: let 'siteRootHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 |
36 | let siteRootHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'siteRootHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'siteRootHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | let path = FileManager.default.currentDirectoryPath + "/html/index.html"
38 | let fileResp = SgFileResponse(path: path, headers: Headers.MIME.html)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:42:5: warning: let 'siteContentHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
40 | }
41 |
42 | let siteContentHandler: RequestHandler = { (req, ctx) in
| |- warning: let 'siteContentHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'siteContentHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | let pathParam = req.urlParams["path"] ?? "not-found"
44 |
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/main.swift:16:9: warning: variable 'router' was never mutated; consider changing to 'let' constant
14 | print("Starting Seagull test server...")
15 |
16 | var router = Router()
| `- warning: variable 'router' was never mutated; consider changing to 'let' constant
17 |
18 | try router.add(method: .GET, relativePath: "/text", handler: plainTextHandler)
[113/124] Emitting module Simple
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:5:5: warning: let 'plainTextHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import NIOHTTP1
4 |
5 | let plainTextHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'plainTextHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'plainTextHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | return SgResult.data(response: SgDataResponse.from(string: "This is just a string"))
7 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:9:5: warning: let 'jsonObjHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
7 | }
8 |
9 | let jsonObjHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'jsonObjHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jsonObjHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | struct TestObj: Encodable {
11 | let id: Int
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:19:5: warning: let 'jsonDictHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
17 | }
18 |
19 | let jsonDictHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'jsonDictHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jsonDictHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | let dict: [String: Any] = [
21 | "id": 123,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:29:5: warning: let 'fileHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | let fileHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'fileHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fileHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | let path = FileManager.default.currentDirectoryPath + "/README.md"
31 | let fileResp = SgFileResponse(path: path, headers: Headers.MIME.text)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:36:5: warning: let 'siteRootHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 |
36 | let siteRootHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'siteRootHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'siteRootHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | let path = FileManager.default.currentDirectoryPath + "/html/index.html"
38 | let fileResp = SgFileResponse(path: path, headers: Headers.MIME.html)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:42:5: warning: let 'siteContentHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
40 | }
41 |
42 | let siteContentHandler: RequestHandler = { (req, ctx) in
| |- warning: let 'siteContentHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'siteContentHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | let pathParam = req.urlParams["path"] ?? "not-found"
44 |
[114/124] Compiling Simple handlers.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:5:5: warning: let 'plainTextHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import NIOHTTP1
4 |
5 | let plainTextHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'plainTextHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'plainTextHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | return SgResult.data(response: SgDataResponse.from(string: "This is just a string"))
7 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:9:5: warning: let 'jsonObjHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
7 | }
8 |
9 | let jsonObjHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'jsonObjHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jsonObjHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | struct TestObj: Encodable {
11 | let id: Int
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:19:5: warning: let 'jsonDictHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
17 | }
18 |
19 | let jsonDictHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'jsonDictHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jsonDictHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | let dict: [String: Any] = [
21 | "id": 123,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:29:5: warning: let 'fileHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | let fileHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'fileHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fileHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | let path = FileManager.default.currentDirectoryPath + "/README.md"
31 | let fileResp = SgFileResponse(path: path, headers: Headers.MIME.text)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:36:5: warning: let 'siteRootHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 |
36 | let siteRootHandler: RequestHandler = { (_, ctx) in
| |- warning: let 'siteRootHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'siteRootHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | let path = FileManager.default.currentDirectoryPath + "/html/index.html"
38 | let fileResp = SgFileResponse(path: path, headers: Headers.MIME.html)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:42:5: warning: let 'siteContentHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
40 | }
41 |
42 | let siteContentHandler: RequestHandler = { (req, ctx) in
| |- warning: let 'siteContentHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'siteContentHandler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | let pathParam = req.urlParams["path"] ?? "not-found"
44 |
[114/124] Write Objects.LinkFileList
[116/124] Emitting module Rest
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Rest/handlers.swift:56:16: warning: static property 'inst' is not concurrency-safe because non-'Sendable' type 'Db' may have shared mutable state; this is an error in the Swift 6 language mode
52 | // MARK: -
53 |
54 | class Db {
| `- note: class 'Db' does not conform to the 'Sendable' protocol
55 |
56 | static let inst = Db()
| |- warning: static property 'inst' is not concurrency-safe because non-'Sendable' type 'Db' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inst' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | // MARK: -
[117/124] Compiling Rest main.swift
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Rest/main.swift:15:9: warning: variable 'router' was never mutated; consider changing to 'let' constant
13 | print("Starting Seagull base REST server...")
14 |
15 | var router = Router()
| `- warning: variable 'router' was never mutated; consider changing to 'let' constant
16 |
17 | try router.add(method: .GET, relativePath: "/", handler: Handlers.ping)
[118/124] Compiling Rest handlers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Rest/handlers.swift:56:16: warning: static property 'inst' is not concurrency-safe because non-'Sendable' type 'Db' may have shared mutable state; this is an error in the Swift 6 language mode
52 | // MARK: -
53 |
54 | class Db {
| `- note: class 'Db' does not conform to the 'Sendable' protocol
55 |
56 | static let inst = Db()
| |- warning: static property 'inst' is not concurrency-safe because non-'Sendable' type 'Db' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inst' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | // MARK: -
[119/124] Compiling Rest SafeMap.swift
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Rest/SafeMap.swift:17:13: warning: capture of 'self' with non-sendable type 'SafeMap<T, E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | class SafeMap<T: Hashable, E> {
| `- note: generic class 'SafeMap' does not conform to the 'Sendable' protocol
5 |
6 | private let queue = DispatchQueue(label:"", attributes: .concurrent)
:
15 | func set(value: E, forKey key: T) {
16 | queue.async(flags: .barrier) {
17 | self.map[key] = value
| `- warning: capture of 'self' with non-sendable type 'SafeMap<T, E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | }
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Rest/SafeMap.swift:17:22: warning: capture of 'key' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | class SafeMap<T: Hashable, E> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | private let queue = DispatchQueue(label:"", attributes: .concurrent)
:
15 | func set(value: E, forKey key: T) {
16 | queue.async(flags: .barrier) {
17 | self.map[key] = value
| `- warning: capture of 'key' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | }
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Rest/SafeMap.swift:17:29: warning: capture of 'value' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | class SafeMap<T: Hashable, E> {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
5 |
6 | private let queue = DispatchQueue(label:"", attributes: .concurrent)
:
15 | func set(value: E, forKey key: T) {
16 | queue.async(flags: .barrier) {
17 | self.map[key] = value
| `- warning: capture of 'value' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | }
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Rest/SafeMap.swift:23:13: warning: capture of 'self' with non-sendable type 'SafeMap<T, E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | class SafeMap<T: Hashable, E> {
| `- note: generic class 'SafeMap' does not conform to the 'Sendable' protocol
5 |
6 | private let queue = DispatchQueue(label:"", attributes: .concurrent)
:
21 | func remove(key: T) {
22 | queue.async(flags: .barrier) {
23 | self.map.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'SafeMap<T, E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Examples/Rest/SafeMap.swift:23:42: warning: capture of 'key' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | class SafeMap<T: Hashable, E> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | private let queue = DispatchQueue(label:"", attributes: .concurrent)
:
21 | func remove(key: T) {
22 | queue.async(flags: .barrier) {
23 | self.map.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 | }
[119/124] Write Objects.LinkFileList
[120/124] Linking Simple
[121/124] Applying Simple
[122/124] Linking Rest
[123/124] Applying Rest
Build complete! (14.68s)
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: couldn't find pc file for zlib
Build complete.
{
"dependencies" : [
{
"identity" : "result",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/antitypical/Result.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "1.8.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
}
],
"manifest_display_name" : "Seagull",
"name" : "Seagull",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Seagull",
"targets" : [
"Seagull"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Simple",
"targets" : [
"Simple"
],
"type" : {
"executable" : null
}
},
{
"name" : "Rest",
"targets" : [
"Rest"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "Simple",
"module_type" : "SwiftTarget",
"name" : "Simple",
"path" : "Sources/Examples/Simple",
"product_memberships" : [
"Simple"
],
"sources" : [
"handlers.swift",
"main.swift"
],
"target_dependencies" : [
"Seagull"
],
"type" : "executable"
},
{
"c99name" : "SeagullTests",
"module_type" : "SwiftTarget",
"name" : "SeagullTests",
"path" : "Tests/SeagullTests",
"sources" : [
"EngineIntegrationTests.swift",
"EngineNIOTests.swift",
"NIOTestHelpers.swift",
"RouterTests.swift",
"SgHandlerTests.swift",
"TestHelpers.swift",
"TestServer.swift",
"UriParserTests.swift"
],
"target_dependencies" : [
"Seagull"
],
"type" : "test"
},
{
"c99name" : "Seagull",
"module_type" : "SwiftTarget",
"name" : "Seagull",
"path" : "Sources/Seagull",
"product_dependencies" : [
"NIO",
"NIOHTTP1",
"NIOConcurrencyHelpers",
"Result"
],
"product_memberships" : [
"Seagull",
"Simple",
"Rest"
],
"sources" : [
"Engine.swift",
"ErrorProvider.swift",
"Errors.swift",
"HTTP+Seagull.swift",
"HTTPHandler.swift",
"LogProvider.swift",
"Router.swift",
"RouterGroup.swift",
"SgDataResponse.swift",
"SgFileResponse.swift",
"SgHandler.swift",
"SgRequest.swift",
"SgRequestContext.swift",
"SgResult.swift",
"UriParser.swift"
],
"type" : "library"
},
{
"c99name" : "Rest",
"module_type" : "SwiftTarget",
"name" : "Rest",
"path" : "Sources/Examples/Rest",
"product_memberships" : [
"Rest"
],
"sources" : [
"SafeMap.swift",
"handlers.swift",
"main.swift"
],
"target_dependencies" : [
"Seagull"
],
"type" : "executable"
}
],
"tools_version" : "4.0"
}
Done.