Build Information
Successful build of Seagull, reference master (4c9a7f
), with Swift 6.1 for Linux on 25 Apr 2025 11:00:17 UTC.
Swift 6 data race errors: 8
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gavrilaf/seagull.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
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
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/gavrilaf/seagull.git
https://github.com/gavrilaf/seagull.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"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" : "/host/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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/antitypical/Result.git
Fetching https://github.com/gavrilaf/SgRouter.git
Fetching https://github.com/gavrilaf/SwiftPerfTool.git
Fetching https://github.com/apple/swift-nio.git
[1/2533] Fetching result
[2307/2623] Fetching result, sgrouter
[2395/2695] Fetching result, sgrouter, swiftperftool
[2696/78126] Fetching result, sgrouter, swiftperftool, swift-nio
Fetched https://github.com/antitypical/Result.git from cache (0.69s)
[3934/75593] Fetching sgrouter, swiftperftool, swift-nio
Fetched https://github.com/gavrilaf/SgRouter.git from cache (3.86s)
Fetched https://github.com/gavrilaf/SwiftPerfTool.git from cache (3.86s)
Fetched https://github.com/apple/swift-nio.git from cache (3.95s)
Computing version for https://github.com/gavrilaf/SwiftPerfTool.git
Computed https://github.com/gavrilaf/SwiftPerfTool.git at 0.1.1 (4.44s)
Computing version for https://github.com/gavrilaf/SgRouter.git
Computed https://github.com/gavrilaf/SgRouter.git at 0.1.1 (0.45s)
Computing version for https://github.com/antitypical/Result.git
Computed https://github.com/antitypical/Result.git at 4.1.0 (2.23s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.53s)
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.28s)
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.85s)
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/gavrilaf/SgRouter.git
Working copy of https://github.com/gavrilaf/SgRouter.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-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
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
Building for debugging...
[0/32] Write sources
[10/32] Compiling CNIODarwin shim.c
[10/32] Compiling CNIOLinux ifaddrs-android.c
[12/32] Compiling CNIOSHA1 c_nio_sha1.c
[13/32] Compiling CNIOLinux shim.c
[14/32] Compiling CNIOHTTPParser c_nio_http_parser.c
[15/32] Compiling CNIOZlib empty.c
[16/32] Write swift-version-24593BA9C3E375BF.txt
[17/51] Compiling c-atomics.c
[19/54] Compiling NIOPriorityQueue PriorityQueue.swift
[20/54] Compiling Result ResultProtocol.swift
[21/54] Emitting module NIOConcurrencyHelpers
[22/54] Compiling NIOConcurrencyHelpers atomics.swift
[23/54] Compiling NIOConcurrencyHelpers lock.swift
[25/55] Compiling SgRouter UriParser.swift
[26/55] Emitting module NIOPriorityQueue
[27/55] Compiling NIOPriorityQueue Heap.swift
[28/56] Compiling SgRouter RouterError.swift
[29/56] Compiling SwiftPerfTool Scores.swift
[30/56] Compiling SwiftPerfTool Memory.swift
[31/56] Compiling SwiftPerfTool Errors.swift
[32/56] Compiling SwiftPerfTool SwiftPerfTool.swift
[33/56] Emitting module SwiftPerfTool
[34/56] Compiling SwiftPerfTool ApproximateEquatable.swift
[36/57] Compiling Result Result.swift
[37/57] Compiling Result NoError.swift
[38/57] Compiling SgRouter Node.swift
[39/57] Emitting module SgRouter
[40/57] Compiling SgRouter Router.swift
[41/57] Emitting module Result
[42/57] Compiling Result AnyError.swift
[42/59] Wrapping AST for NIOConcurrencyHelpers for debugging
[46/59] Wrapping AST for NIOPriorityQueue for debugging
[47/60] Wrapping AST for SwiftPerfTool for debugging
[48/81] Wrapping AST for SgRouter for debugging
[49/102] Wrapping AST for Result for debugging
[51/109] Compiling NIO ByteBuffer-int.swift
[52/109] Compiling NIO ByteBuffer-views.swift
[53/109] Compiling NIO Channel.swift
[54/109] Compiling NIO ChannelHandler.swift
[55/109] Compiling NIO ChannelHandlers.swift
[56/109] Compiling NIO ChannelInvoker.swift
[57/109] Compiling NIO ChannelOption.swift
[58/115] Emitting module NIO
[59/115] Compiling NIO Heap.swift
[60/115] Compiling NIO IO.swift
[61/115] Compiling NIO IOData.swift
[62/115] Compiling NIO IntegerTypes.swift
[63/115] Compiling NIO Interfaces.swift
[64/115] Compiling NIO Linux.swift
[65/115] Compiling NIO LinuxCPUSet.swift
[66/115] Compiling NIO MarkedCircularBuffer.swift
[67/115] Compiling NIO MulticastChannel.swift
[68/115] Compiling NIO NIOAny.swift
[69/115] Compiling NIO NonBlockingFileIO.swift
[70/115] Compiling NIO PendingDatagramWritesManager.swift
[71/115] Compiling NIO PendingWritesManager.swift
[72/115] Compiling NIO PriorityQueue.swift
[73/115] Compiling NIO EventLoop.swift
[74/115] Compiling NIO EventLoopFuture.swift
[75/115] Compiling NIO FileDescriptor.swift
[76/115] Compiling NIO FileHandle.swift
[77/115] Compiling NIO FileRegion.swift
[78/115] Compiling NIO GetaddrinfoResolver.swift
[79/115] Compiling NIO HappyEyeballs.swift
[80/115] Compiling NIO RecvByteBufferAllocator.swift
[81/115] Compiling NIO Resolver.swift
[82/115] Compiling NIO Selectable.swift
[83/115] Compiling NIO Selector.swift
[84/115] Compiling NIO ServerSocket.swift
[85/115] Compiling NIO Socket.swift
[86/115] Compiling NIO SocketAddresses.swift
[87/115] Compiling NIO ChannelPipeline.swift
[88/115] Compiling NIO CircularBuffer.swift
[89/115] Compiling NIO Codec.swift
[90/115] Compiling NIO CompositeError.swift
[91/115] Compiling NIO ContiguousCollection.swift
[92/115] Compiling NIO DeadChannel.swift
[93/115] Compiling NIO Embedded.swift
[94/115] Compiling NIO SocketChannel.swift
[95/115] Compiling NIO SocketOptionProvider.swift
[96/115] Compiling NIO System.swift
[97/115] Compiling NIO Thread.swift
[98/115] Compiling NIO TypeAssistedChannelHandler.swift
[99/115] Compiling NIO Utilities.swift
[100/115] Compiling NIO AddressedEnvelope.swift
[101/115] Compiling NIO BaseSocket.swift
[102/115] Compiling NIO BaseSocketChannel.swift
[103/115] Compiling NIO BlockingIOThreadPool.swift
[104/115] Compiling NIO Bootstrap.swift
[105/115] Compiling NIO ByteBuffer-aux.swift
[106/115] Compiling NIO ByteBuffer-core.swift
[107/116] Wrapping AST for NIO for debugging
[109/125] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[110/126] Compiling NIOHTTP1 HTTPEncoder.swift
[111/126] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[112/126] Compiling NIOHTTP1 HTTPResponseCompressor.swift
[113/126] Compiling NIOHTTP1 HTTPUpgradeHandler.swift
[114/126] Emitting module NIOHTTP1
[115/126] Compiling NIOHTTP1 ByteCollectionUtils.swift
[116/126] Compiling NIOHTTP1 HTTPDecoder.swift
[117/126] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[118/126] Compiling NIOHTTP1 HTTPTypes.swift
[119/127] Wrapping AST for NIOHTTP1 for debugging
[121/142] Compiling Seagull SgRequestContext.swift
[122/142] Compiling Seagull SgResult.swift
[123/144] Compiling Seagull SgFileResponse.swift
[124/144] Compiling Seagull SgRequest.swift
[125/144] Compiling Seagull ErrorProvider.swift
/host/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")])
/host/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 {
/host/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: add '@MainActor' to make static property 'text' part of global actor 'MainActor'
| `- 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")])
/host/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: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- 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")])
/host/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 {
/host/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: add '@MainActor' to make static property 'octetStream' part of global actor 'MainActor'
| `- 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")])
/host/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 {
/host/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: add '@MainActor' to make static property 'html' part of global actor 'MainActor'
| `- 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 | }
/host/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 {
/host/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: add '@MainActor' to make static property 'jpg' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 | }
/host/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 {
/host/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 {
/host/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:
[126/144] Compiling Seagull HTTP+Seagull.swift
/host/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")])
/host/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 {
/host/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: add '@MainActor' to make static property 'text' part of global actor 'MainActor'
| `- 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")])
/host/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: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- 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")])
/host/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 {
/host/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: add '@MainActor' to make static property 'octetStream' part of global actor 'MainActor'
| `- 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")])
/host/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 {
/host/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: add '@MainActor' to make static property 'html' part of global actor 'MainActor'
| `- 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 | }
/host/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 {
/host/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: add '@MainActor' to make static property 'jpg' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 | }
/host/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 {
/host/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 {
/host/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:
[127/144] Compiling Seagull Errors.swift
/host/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 {
/host/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
/host/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: -
/host/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 | }
/host/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
[128/144] Compiling Seagull SgDataResponse.swift
/host/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 {
/host/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
/host/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: -
/host/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 | }
/host/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
[129/144] Compiling Seagull RouterGroup.swift
[130/144] Compiling Seagull UriHandler.swift
[131/144] Compiling Seagull LogProvider.swift
/host/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 | }
/host/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 | }
/host/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 | }
[132/144] Compiling Seagull NIOHelpers.swift
/host/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 | }
/host/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 | }
/host/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 | }
[133/144] Compiling Seagull HttpRouter.swift
[134/144] Compiling Seagull RouteHandler.swift
[135/144] Emitting module Seagull
/host/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 {
/host/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
/host/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: -
/host/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 | }
/host/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
/host/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")])
/host/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 {
/host/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: add '@MainActor' to make static property 'text' part of global actor 'MainActor'
| `- 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")])
/host/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: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- 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")])
/host/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 {
/host/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: add '@MainActor' to make static property 'octetStream' part of global actor 'MainActor'
| `- 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")])
/host/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 {
/host/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: add '@MainActor' to make static property 'html' part of global actor 'MainActor'
| `- 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 | }
/host/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 {
/host/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: add '@MainActor' to make static property 'jpg' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 | }
/host/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 {
/host/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 {
/host/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:
[136/144] Compiling Seagull Engine.swift
[137/144] Compiling Seagull HTTPHandler.swift
[138/145] Wrapping AST for Seagull for debugging
[140/151] Compiling SeagullRestDemo main.swift
/host/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)
[141/151] Compiling SeagullPerfTest main.swift
[142/151] Emitting module SeagullPerfTest
[143/152] Compiling SeagullRestDemo SafeMap.swift
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
[144/152] Emitting module SeagullRestDemo
/host/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: add '@MainActor' to make static property 'inst' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | // MARK: -
[145/152] Compiling SeagullRestDemo handlers.swift
/host/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: add '@MainActor' to make static property 'inst' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | // MARK: -
[147/153] Wrapping AST for SeagullPerfTest for debugging
[148/153] Wrapping AST for SeagullRestDemo for debugging
[149/153] Write Objects.LinkFileList
[151/153] Linking SeagullPerfTest
[152/153] Linking SeagullRestDemo
Build complete! (33.29s)
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" : "/host/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"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.