Build Information
Successful build of Seagull, reference master (4c9a7f
), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 10:34:24 UTC.
Swift 6 data race errors: 8
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: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/gavrilaf/seagull
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 4c9a7f6 Update README.md
Cloned https://github.com/gavrilaf/seagull.git
Revision (git rev-parse @):
4c9a7f6c9cd8d8a306a70c08174eaea77b96e46e
SUCCESS checkout https://github.com/gavrilaf/seagull.git at master
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/gavrilaf/SgRouter.git
Fetching https://github.com/gavrilaf/SwiftPerfTool.git
Fetching https://github.com/antitypical/Result.git
[1/2533] Fetching result
[103/2605] Fetching result, swiftperftool
[428/2695] Fetching result, swiftperftool, sgrouter
[2696/74587] Fetching result, swiftperftool, sgrouter, swift-nio
Fetched https://github.com/antitypical/Result.git from cache (32.57s)
Fetched https://github.com/gavrilaf/SgRouter.git from cache (32.57s)
Fetched https://github.com/gavrilaf/SwiftPerfTool.git from cache (32.57s)
Fetched https://github.com/apple/swift-nio.git from cache (32.57s)
Computing version for https://github.com/gavrilaf/SwiftPerfTool.git
Computed https://github.com/gavrilaf/SwiftPerfTool.git at 0.1.1 (0.54s)
Computing version for https://github.com/gavrilaf/SgRouter.git
Computed https://github.com/gavrilaf/SgRouter.git at 0.1.1 (0.53s)
Computing version for https://github.com/antitypical/Result.git
Computed https://github.com/antitypical/Result.git at 4.1.0 (2.37s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.56s)
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.56s)
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.54s)
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/SgRouter.git
Working copy of https://github.com/gavrilaf/SgRouter.git resolved at 0.1.1
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/gavrilaf/SwiftPerfTool.git
Working copy of https://github.com/gavrilaf/SwiftPerfTool.git resolved at 0.1.1
========================================
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": [
]
}
]
},
{
"identity": "swiftperftool",
"name": "SwiftPerfTool",
"url": "https://github.com/gavrilaf/SwiftPerfTool.git",
"version": "0.1.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftPerfTool",
"dependencies": [
]
},
{
"identity": "sgrouter",
"name": "SgRouter",
"url": "https://github.com/gavrilaf/SgRouter.git",
"version": "0.1.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SgRouter",
"dependencies": [
{
"identity": "swiftperftool",
"name": "SwiftPerfTool",
"url": "https://github.com/gavrilaf/SwiftPerfTool.git",
"version": "0.1.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftPerfTool",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/gavrilaf/seagull.git
[8/799] Fetching seagull
Fetched https://github.com/gavrilaf/seagull.git from cache (0.81s)
Fetching https://github.com/gavrilaf/SgRouter.git from cache
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/gavrilaf/SwiftPerfTool.git from cache
Fetching https://github.com/antitypical/Result.git from cache
Fetched https://github.com/gavrilaf/SgRouter.git from cache (0.53s)
Fetched https://github.com/gavrilaf/SwiftPerfTool.git from cache (0.74s)
Fetched https://github.com/antitypical/Result.git from cache (0.74s)
Fetched https://github.com/apple/swift-nio.git from cache (0.74s)
Computing version for https://github.com/gavrilaf/SwiftPerfTool.git
Computed https://github.com/gavrilaf/SwiftPerfTool.git at 0.1.1 (0.02s)
Computing version for https://github.com/gavrilaf/SgRouter.git
Computed https://github.com/gavrilaf/SgRouter.git at 0.1.1 (0.02s)
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.02s)
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.53s)
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/gavrilaf/SgRouter.git
Working copy of https://github.com/gavrilaf/SgRouter.git resolved at 0.1.1
Creating working copy for https://github.com/gavrilaf/SwiftPerfTool.git
Working copy of https://github.com/gavrilaf/SwiftPerfTool.git resolved at 0.1.1
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/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/gavrilaf/seagull.git
Working copy of https://github.com/gavrilaf/seagull.git resolved at master (4c9a7f6)
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
Found 4 product dependencies
- Result
- swift-nio
- SwiftPerfTool
- SgRouter
========================================
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/26] Write sources
[4/26] Write SeagullPerfTest-entitlement.plist
[6/26] Write sources
[10/26] Write SeagullRestDemo-entitlement.plist
[11/26] Write sources
[12/26] Write swift-version--7754E27361AE5C74.txt
[13/26] Compiling CNIOLinux ifaddrs-android.c
[13/26] Compiling CNIOZlib empty.c
[14/26] Compiling CNIOLinux shim.c
[16/45] Compiling CNIOHTTPParser c_nio_http_parser.c
[17/45] Compiling CNIODarwin shim.c
[18/45] Compiling CNIOSHA1 c_nio_sha1.c
[19/45] Compiling c-atomics.c
[21/48] Compiling NIOPriorityQueue PriorityQueue.swift
[22/48] Compiling NIOPriorityQueue Heap.swift
[23/48] Emitting module NIOPriorityQueue
[24/48] Compiling NIOConcurrencyHelpers lock.swift
[25/48] Compiling NIOConcurrencyHelpers atomics.swift
[26/48] Emitting module NIOConcurrencyHelpers
[27/99] Compiling Result ResultProtocol.swift
[28/99] Compiling NIO ChannelInvoker.swift
[29/99] Compiling NIO ChannelOption.swift
[30/99] Compiling NIO ChannelPipeline.swift
[31/99] Compiling NIO CircularBuffer.swift
[32/99] Compiling NIO Codec.swift
[33/99] Compiling NIO CompositeError.swift
[34/99] Compiling NIO MarkedCircularBuffer.swift
[35/99] Compiling NIO MulticastChannel.swift
[36/99] Compiling NIO NIOAny.swift
[37/99] Compiling NIO NonBlockingFileIO.swift
[38/99] Compiling NIO PendingDatagramWritesManager.swift
[39/104] Compiling NIO ByteBuffer-core.swift
[40/104] Compiling NIO ByteBuffer-int.swift
[41/104] Compiling NIO ByteBuffer-views.swift
[42/104] Compiling NIO Channel.swift
[43/104] Compiling NIO ChannelHandler.swift
[44/104] Compiling NIO ChannelHandlers.swift
[45/104] Compiling NIO Selector.swift
[46/104] Compiling NIO ServerSocket.swift
[47/104] Compiling NIO Socket.swift
[48/104] Compiling NIO SocketAddresses.swift
[49/104] Compiling NIO SocketChannel.swift
[50/104] Compiling NIO ContiguousCollection.swift
[51/104] Compiling NIO DeadChannel.swift
[52/104] Compiling NIO Embedded.swift
[53/104] Compiling NIO EventLoop.swift
[54/104] Compiling NIO EventLoopFuture.swift
[55/104] Compiling NIO FileDescriptor.swift
[56/104] Compiling NIO SocketOptionProvider.swift
[57/104] Compiling NIO System.swift
[58/104] Compiling NIO Thread.swift
[59/104] Compiling NIO TypeAssistedChannelHandler.swift
[60/104] Compiling NIO Utilities.swift
[61/104] Compiling NIO AddressedEnvelope.swift
[62/104] Compiling NIO BaseSocket.swift
[63/104] Compiling NIO BaseSocketChannel.swift
[64/104] Compiling NIO BlockingIOThreadPool.swift
[65/104] Compiling NIO Bootstrap.swift
[66/104] Compiling NIO ByteBuffer-aux.swift
[67/104] Compiling NIO FileHandle.swift
[68/104] Compiling NIO FileRegion.swift
[69/104] Compiling NIO GetaddrinfoResolver.swift
[70/104] Compiling NIO HappyEyeballs.swift
[71/104] Compiling NIO Heap.swift
[72/104] Compiling NIO IO.swift
[73/104] Compiling NIO PendingWritesManager.swift
[74/104] Compiling NIO PriorityQueue.swift
[75/104] Compiling NIO RecvByteBufferAllocator.swift
[76/104] Compiling NIO Resolver.swift
[77/104] Compiling NIO Selectable.swift
[78/104] Compiling NIO IOData.swift
[79/104] Compiling NIO IntegerTypes.swift
[80/104] Compiling NIO Interfaces.swift
[81/104] Compiling NIO Linux.swift
[82/104] Compiling NIO LinuxCPUSet.swift
[83/104] Emitting module NIO
[84/114] Compiling SwiftPerfTool Scores.swift
[85/114] Compiling Result AnyError.swift
[86/114] Emitting module Result
[87/114] Compiling Result NoError.swift
[88/114] Compiling Result Result.swift
[89/114] Compiling SgRouter Router.swift
[90/114] Compiling SgRouter UriParser.swift
[91/114] Compiling SgRouter RouterError.swift
[92/114] Compiling SwiftPerfTool SwiftPerfTool.swift
[93/114] Compiling SwiftPerfTool ApproximateEquatable.swift
[94/114] Emitting module SwiftPerfTool
[95/114] Compiling SwiftPerfTool Errors.swift
[96/114] Compiling SwiftPerfTool Memory.swift
[97/114] Emitting module SgRouter
[98/114] Compiling SgRouter Node.swift
[99/114] Emitting module NIOHTTP1
[100/114] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[101/114] Compiling NIOHTTP1 HTTPResponseCompressor.swift
[102/114] Compiling NIOHTTP1 HTTPUpgradeHandler.swift
[103/114] Compiling NIOHTTP1 HTTPTypes.swift
[104/114] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[105/114] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[106/114] Compiling NIOHTTP1 ByteCollectionUtils.swift
[107/114] Compiling NIOHTTP1 HTTPEncoder.swift
[108/114] Compiling NIOHTTP1 HTTPDecoder.swift
[109/130] Compiling Seagull Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Types/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/Types/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/Types/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/Types/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/Utils/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/Utils/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/Utils/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 {
[110/130] Compiling Seagull SgDataResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Types/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/Types/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/Types/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/Types/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/Utils/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/Utils/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/Utils/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 {
[111/131] Compiling Seagull HTTP+Seagull.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Utils/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/Utils/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/Utils/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/Utils/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/Utils/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/Utils/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 {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Utils/HTTP+Seagull.swift:16:1: warning: extension declares a conformance of imported type 'HTTPMethod' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'NIOHTTP1' introduce this conformance in the future
14 | // MARK: -
15 |
16 | extension HTTPMethod: Hashable {
| |- warning: extension declares a conformance of imported type 'HTTPMethod' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'NIOHTTP1' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public var hashValue: Int {
18 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Utils/HTTP+Seagull.swift:17:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPMethod' to 'Hashable' by implementing 'hash(into:)' instead
15 |
16 | extension HTTPMethod: Hashable {
17 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPMethod' to 'Hashable' by implementing 'hash(into:)' instead
18 | switch self {
19 | case .GET:
[112/131] Compiling Seagull SgFileResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Utils/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
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/Utils/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 {
:
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")])
| |- 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")])
[113/131] Compiling Seagull SgRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Utils/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
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/Utils/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 {
:
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")])
| |- 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")])
[114/131] Compiling Seagull RouterGroup.swift
[115/131] Compiling Seagull UriHandler.swift
[116/131] Compiling Seagull ErrorProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Utils/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/Utils/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")])
[117/131] Compiling Seagull LogProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Utils/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/Utils/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/Utils/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 | }
[118/131] Compiling Seagull HttpRouter.swift
[119/131] Compiling Seagull RouteHandler.swift
[120/131] Compiling Seagull SgRequestContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Utils/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/Utils/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")])
[121/131] Compiling Seagull SgResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Utils/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/Utils/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")])
[122/131] Compiling Seagull NIOHelpers.swift
[123/131] Emitting module Seagull
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Types/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/Types/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/Types/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/Types/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/Utils/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/Utils/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/Utils/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/Utils/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/Utils/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/Utils/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 {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Utils/HTTP+Seagull.swift:16:1: warning: extension declares a conformance of imported type 'HTTPMethod' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'NIOHTTP1' introduce this conformance in the future
14 | // MARK: -
15 |
16 | extension HTTPMethod: Hashable {
| |- warning: extension declares a conformance of imported type 'HTTPMethod' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'NIOHTTP1' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public var hashValue: Int {
18 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/Seagull/Utils/HTTP+Seagull.swift:17:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPMethod' to 'Hashable' by implementing 'hash(into:)' instead
15 |
16 | extension HTTPMethod: Hashable {
17 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HTTPMethod' to 'Hashable' by implementing 'hash(into:)' instead
18 | switch self {
19 | case .GET:
[124/131] Compiling Seagull Engine.swift
[125/131] Compiling Seagull HTTPHandler.swift
[126/137] Emitting module SeagullPerfTest
[127/137] Compiling SeagullPerfTest main.swift
[127/137] Write Objects.LinkFileList
[129/137] Compiling SeagullRestDemo main.swift
/Users/admin/builder/spi-builder-workspace/Sources/Examples/SeagullRestDemo/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 = HttpRouter()
| `- warning: variable 'router' was never mutated; consider changing to 'let' constant
16 |
17 | try router.GET("/", handler: Handlers.ping)
[130/137] Compiling SeagullRestDemo SafeMap.swift
/Users/admin/builder/spi-builder-workspace/Sources/Examples/SeagullRestDemo/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/SeagullRestDemo/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/SeagullRestDemo/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/SeagullRestDemo/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/SeagullRestDemo/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 | }
[131/137] Emitting module SeagullRestDemo
/Users/admin/builder/spi-builder-workspace/Sources/Examples/SeagullRestDemo/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: -
[132/137] Compiling SeagullRestDemo handlers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Examples/SeagullRestDemo/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: -
[132/137] Write Objects.LinkFileList
[133/137] Linking SeagullRestDemo
[134/137] Linking SeagullPerfTest
[135/137] Applying SeagullPerfTest
[136/137] Applying SeagullRestDemo
Build complete! (24.87s)
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.9.5",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swiftperftool",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/gavrilaf/SwiftPerfTool.git"
},
{
"identity" : "sgrouter",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/gavrilaf/SgRouter.git"
}
],
"manifest_display_name" : "Seagull",
"name" : "Seagull",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Seagull",
"targets" : [
"Seagull"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SeagullRestDemo",
"targets" : [
"SeagullRestDemo"
],
"type" : {
"executable" : null
}
},
{
"name" : "SeagullPerfTest",
"targets" : [
"SeagullPerfTest"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SeagullTests",
"module_type" : "SwiftTarget",
"name" : "SeagullTests",
"path" : "Tests/SeagullTests",
"sources" : [
"EngineIntegrationTests.swift",
"EngineNIOTests.swift",
"Helpers/Asserts.swift",
"Helpers/NIO+TestHelpers.swift",
"Helpers/Resources+TestHelpres.swift",
"Helpers/Route+TestHelpers.swift",
"Helpers/TestServer.swift",
"RouterTests.swift",
"SgHandlerTests.swift"
],
"target_dependencies" : [
"Seagull"
],
"type" : "test"
},
{
"c99name" : "SeagullRestDemo",
"module_type" : "SwiftTarget",
"name" : "SeagullRestDemo",
"path" : "Sources/Examples/SeagullRestDemo",
"product_memberships" : [
"SeagullRestDemo"
],
"sources" : [
"SafeMap.swift",
"handlers.swift",
"main.swift"
],
"target_dependencies" : [
"Seagull"
],
"type" : "executable"
},
{
"c99name" : "SeagullPerfTest",
"module_type" : "SwiftTarget",
"name" : "SeagullPerfTest",
"path" : "Sources/Examples/SeagullPerfTest",
"product_dependencies" : [
"SwiftPerfTool"
],
"product_memberships" : [
"SeagullPerfTest"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Seagull"
],
"type" : "executable"
},
{
"c99name" : "Seagull",
"module_type" : "SwiftTarget",
"name" : "Seagull",
"path" : "Sources/Seagull",
"product_dependencies" : [
"NIO",
"NIOHTTP1",
"NIOConcurrencyHelpers",
"Result",
"SgRouter"
],
"product_memberships" : [
"Seagull",
"SeagullRestDemo",
"SeagullPerfTest"
],
"sources" : [
"Engine.swift",
"HTTPHandler.swift",
"Router/HttpRouter.swift",
"Router/RouteHandler.swift",
"Router/RouterGroup.swift",
"Router/UriHandler.swift",
"Types/Errors.swift",
"Types/SgDataResponse.swift",
"Types/SgFileResponse.swift",
"Types/SgRequest.swift",
"Types/SgRequestContext.swift",
"Types/SgResult.swift",
"Utils/ErrorProvider.swift",
"Utils/HTTP+Seagull.swift",
"Utils/LogProvider.swift",
"Utils/NIOHelpers.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.