The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Seagull, reference 0.2.0 (bb9fa7), with Swift 6.1 for Linux on 25 Apr 2025 11:00:59 UTC.

Swift 6 data race errors: 14

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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: 0.2.0
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
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at bb9fa72 updated README
Cloned https://github.com/gavrilaf/seagull.git
Revision (git rev-parse @):
bb9fa724af5bbd17ea531844310f3dc51603b402
SUCCESS checkout https://github.com/gavrilaf/seagull.git at 0.2.0
========================================
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.8.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    }
  ],
  "manifest_display_name" : "Seagull",
  "name" : "Seagull",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Seagull",
      "targets" : [
        "Seagull"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Simple",
      "targets" : [
        "Simple"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "Rest",
      "targets" : [
        "Rest"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Simple",
      "module_type" : "SwiftTarget",
      "name" : "Simple",
      "path" : "Sources/Examples/Simple",
      "product_memberships" : [
        "Simple"
      ],
      "sources" : [
        "handlers.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "Seagull"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SeagullTests",
      "module_type" : "SwiftTarget",
      "name" : "SeagullTests",
      "path" : "Tests/SeagullTests",
      "sources" : [
        "EngineIntegrationTests.swift",
        "EngineNIOTests.swift",
        "NIOTestHelpers.swift",
        "RouterTests.swift",
        "SgHandlerTests.swift",
        "TestHelpers.swift",
        "TestServer.swift",
        "UriParserTests.swift"
      ],
      "target_dependencies" : [
        "Seagull"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Seagull",
      "module_type" : "SwiftTarget",
      "name" : "Seagull",
      "path" : "Sources/Seagull",
      "product_dependencies" : [
        "NIO",
        "NIOHTTP1",
        "NIOConcurrencyHelpers",
        "Result"
      ],
      "product_memberships" : [
        "Seagull",
        "Simple",
        "Rest"
      ],
      "sources" : [
        "Engine.swift",
        "ErrorProvider.swift",
        "Errors.swift",
        "HTTP+Seagull.swift",
        "HTTPHandler.swift",
        "LogProvider.swift",
        "Router.swift",
        "RouterGroup.swift",
        "SgDataResponse.swift",
        "SgFileResponse.swift",
        "SgHandler.swift",
        "SgRequest.swift",
        "SgRequestContext.swift",
        "SgResult.swift",
        "UriParser.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Rest",
      "module_type" : "SwiftTarget",
      "name" : "Rest",
      "path" : "Sources/Examples/Rest",
      "product_memberships" : [
        "Rest"
      ],
      "sources" : [
        "SafeMap.swift",
        "handlers.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "Seagull"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/apple/swift-nio.git
Fetching https://github.com/antitypical/Result.git
[1/2533] Fetching result
[2534/77964] Fetching result, swift-nio
Fetched https://github.com/antitypical/Result.git from cache (2.25s)
[49031/75431] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (9.27s)
Computing version for https://github.com/antitypical/Result.git
Computed https://github.com/antitypical/Result.git at 4.1.0 (14.33s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (2.14s)
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.42s)
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 (1.53s)
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
Creating working copy for https://github.com/antitypical/Result.git
Working copy of https://github.com/antitypical/Result.git resolved at 4.1.0
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
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
Building for debugging...
[0/28] Write sources
[8/28] Compiling CNIOZlib empty.c
[9/28] Compiling CNIOSHA1 c_nio_sha1.c
[10/28] Compiling CNIOLinux ifaddrs-android.c
[11/28] Compiling CNIODarwin shim.c
[12/28] Compiling CNIOLinux shim.c
[13/28] Compiling CNIOHTTPParser c_nio_http_parser.c
[14/28] Write swift-version-24593BA9C3E375BF.txt
[15/36] Compiling c-atomics.c
[17/39] Compiling Result ResultProtocol.swift
[18/39] Compiling NIOPriorityQueue PriorityQueue.swift
[19/39] Compiling NIOConcurrencyHelpers atomics.swift
[20/39] Emitting module NIOPriorityQueue
[21/39] Compiling NIOPriorityQueue Heap.swift
[22/40] Emitting module NIOConcurrencyHelpers
[23/40] Compiling NIOConcurrencyHelpers lock.swift
[25/41] Wrapping AST for NIOPriorityQueue for debugging
[26/41] Wrapping AST for NIOConcurrencyHelpers for debugging
[28/49] Emitting module Result
[29/50] Compiling Result AnyError.swift
[30/73] Compiling Result NoError.swift
[31/80] Compiling Result Result.swift
[32/92] Wrapping AST for Result for debugging
[34/92] Emitting module NIO
[35/98] Compiling NIO RecvByteBufferAllocator.swift
[36/98] Compiling NIO Resolver.swift
[37/98] Compiling NIO Selectable.swift
[38/98] Compiling NIO Selector.swift
[39/98] Compiling NIO ServerSocket.swift
[40/98] Compiling NIO Socket.swift
[41/98] Compiling NIO SocketAddresses.swift
[42/98] Compiling NIO Heap.swift
[43/98] Compiling NIO IO.swift
[44/98] Compiling NIO IOData.swift
[45/98] Compiling NIO IntegerTypes.swift
[46/98] Compiling NIO Interfaces.swift
[47/98] Compiling NIO Linux.swift
[48/98] Compiling NIO LinuxCPUSet.swift
[49/98] Compiling NIO MarkedCircularBuffer.swift
[50/98] Compiling NIO MulticastChannel.swift
[51/98] Compiling NIO NIOAny.swift
[52/98] Compiling NIO NonBlockingFileIO.swift
[53/98] Compiling NIO PendingDatagramWritesManager.swift
[54/98] Compiling NIO PendingWritesManager.swift
[55/98] Compiling NIO PriorityQueue.swift
[56/98] Compiling NIO EventLoop.swift
[57/98] Compiling NIO EventLoopFuture.swift
[58/98] Compiling NIO FileDescriptor.swift
[59/98] Compiling NIO FileHandle.swift
[60/98] Compiling NIO FileRegion.swift
[61/98] Compiling NIO GetaddrinfoResolver.swift
[62/98] Compiling NIO HappyEyeballs.swift
[63/98] Compiling NIO ByteBuffer-int.swift
[64/98] Compiling NIO ByteBuffer-views.swift
[65/98] Compiling NIO Channel.swift
[66/98] Compiling NIO ChannelHandler.swift
[67/98] Compiling NIO ChannelHandlers.swift
[68/98] Compiling NIO ChannelInvoker.swift
[69/98] Compiling NIO ChannelOption.swift
[70/98] Compiling NIO ChannelPipeline.swift
[71/98] Compiling NIO CircularBuffer.swift
[72/98] Compiling NIO Codec.swift
[73/98] Compiling NIO CompositeError.swift
[74/98] Compiling NIO ContiguousCollection.swift
[75/98] Compiling NIO DeadChannel.swift
[76/98] Compiling NIO Embedded.swift
[77/98] Compiling NIO SocketChannel.swift
[78/98] Compiling NIO SocketOptionProvider.swift
[79/98] Compiling NIO System.swift
[80/98] Compiling NIO Thread.swift
[81/98] Compiling NIO TypeAssistedChannelHandler.swift
[82/98] Compiling NIO Utilities.swift
[83/98] Compiling NIO AddressedEnvelope.swift
[84/98] Compiling NIO BaseSocket.swift
[85/98] Compiling NIO BaseSocketChannel.swift
[86/98] Compiling NIO BlockingIOThreadPool.swift
[87/98] Compiling NIO Bootstrap.swift
[88/98] Compiling NIO ByteBuffer-aux.swift
[89/98] Compiling NIO ByteBuffer-core.swift
[90/99] Wrapping AST for NIO for debugging
[92/108] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[93/109] Emitting module NIOHTTP1
[94/109] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[95/109] Compiling NIOHTTP1 HTTPResponseCompressor.swift
[96/109] Compiling NIOHTTP1 HTTPEncoder.swift
[97/109] Compiling NIOHTTP1 HTTPUpgradeHandler.swift
[98/109] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[99/109] Compiling NIOHTTP1 HTTPTypes.swift
[100/109] Compiling NIOHTTP1 ByteCollectionUtils.swift
[101/109] Compiling NIOHTTP1 HTTPDecoder.swift
[102/110] Wrapping AST for NIOHTTP1 for debugging
[104/125] Compiling Seagull SgDataResponse.swift
[105/125] Compiling Seagull SgFileResponse.swift
[106/125] Compiling Seagull SgRequestContext.swift
[107/125] Compiling Seagull SgResult.swift
[108/125] Compiling Seagull SgHandler.swift
[109/125] Compiling Seagull SgRequest.swift
[110/125] Compiling Seagull Router.swift
[111/125] Compiling Seagull RouterGroup.swift
[112/126] Emitting module Seagull
/host/spi-builder-workspace/Sources/Seagull/Errors.swift:39:10: warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
 37 | public enum RouterError: SgError {
 38 |     case invalidPath(path: String)
 39 |     case notFound(method: HTTPMethod, uri: String)
    |          `- warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
 40 |
 41 |     public var httpCode: HTTPResponseStatus {
/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/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/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/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/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/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/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/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/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/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 {
[113/126] Compiling Seagull Errors.swift
/host/spi-builder-workspace/Sources/Seagull/Errors.swift:39:10: warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
 37 | public enum RouterError: SgError {
 38 |     case invalidPath(path: String)
 39 |     case notFound(method: HTTPMethod, uri: String)
    |          `- warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
 40 |
 41 |     public var httpCode: HTTPResponseStatus {
/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/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/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/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/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/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/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/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/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/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 {
[114/126] Compiling Seagull HTTP+Seagull.swift
/host/spi-builder-workspace/Sources/Seagull/Errors.swift:39:10: warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
 37 | public enum RouterError: SgError {
 38 |     case invalidPath(path: String)
 39 |     case notFound(method: HTTPMethod, uri: String)
    |          `- warning: associated value 'notFound(method:uri:)' of 'Sendable'-conforming enum 'RouterError' has non-sendable type 'HTTPMethod'; this is an error in the Swift 6 language mode
 40 |
 41 |     public var httpCode: HTTPResponseStatus {
/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/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/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/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/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/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/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/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/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/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 {
[115/126] Compiling Seagull UriParser.swift
[116/126] Compiling Seagull HTTPHandler.swift
/host/spi-builder-workspace/Sources/Seagull/LogProvider.swift:17:36: warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 |     public func info(_ msg: @autoclosure @escaping () -> String) {
16 |         queue.async {
17 |             DefaultLogger.printMsg(msg(), prefix: Prefix.info)
   |                                    |- warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
18 |         }
19 |     }
/host/spi-builder-workspace/Sources/Seagull/LogProvider.swift:23:36: warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
21 |     public func warning(_ msg: @autoclosure @escaping () -> String) {
22 |         queue.async {
23 |             DefaultLogger.printMsg(msg(), prefix: Prefix.warning)
   |                                    |- warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
24 |         }
25 |     }
/host/spi-builder-workspace/Sources/Seagull/LogProvider.swift:29:36: warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
27 |     public func error(_ msg: @autoclosure @escaping () -> String) {
28 |         queue.async {
29 |             DefaultLogger.printMsg(msg(), prefix: Prefix.error)
   |                                    |- warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
30 |         }
31 |     }
[117/126] Compiling Seagull LogProvider.swift
/host/spi-builder-workspace/Sources/Seagull/LogProvider.swift:17:36: warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 |     public func info(_ msg: @autoclosure @escaping () -> String) {
16 |         queue.async {
17 |             DefaultLogger.printMsg(msg(), prefix: Prefix.info)
   |                                    |- warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
18 |         }
19 |     }
/host/spi-builder-workspace/Sources/Seagull/LogProvider.swift:23:36: warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
21 |     public func warning(_ msg: @autoclosure @escaping () -> String) {
22 |         queue.async {
23 |             DefaultLogger.printMsg(msg(), prefix: Prefix.warning)
   |                                    |- warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
24 |         }
25 |     }
/host/spi-builder-workspace/Sources/Seagull/LogProvider.swift:29:36: warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
27 |     public func error(_ msg: @autoclosure @escaping () -> String) {
28 |         queue.async {
29 |             DefaultLogger.printMsg(msg(), prefix: Prefix.error)
   |                                    |- warning: capture of 'msg' with non-sendable type '() -> String' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
30 |         }
31 |     }
[118/126] Compiling Seagull Engine.swift
[119/126] Compiling Seagull ErrorProvider.swift
[120/127] Wrapping AST for Seagull for debugging
[122/134] Emitting module Simple
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:5:5: warning: let 'plainTextHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
 3 | import NIOHTTP1
 4 |
 5 | let plainTextHandler: RequestHandler = { (_, ctx) in
   |     |- warning: let 'plainTextHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'plainTextHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |     return SgResult.data(response: SgDataResponse.from(string: "This is just a string"))
 7 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:9:5: warning: let 'jsonObjHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
 7 | }
 8 |
 9 | let jsonObjHandler: RequestHandler = { (_, ctx) in
   |     |- warning: let 'jsonObjHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'jsonObjHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |     struct TestObj: Encodable {
11 |         let id: Int
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:19:5: warning: let 'jsonDictHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
17 | }
18 |
19 | let jsonDictHandler: RequestHandler = { (_, ctx) in
   |     |- warning: let 'jsonDictHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'jsonDictHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |     let dict: [String: Any] = [
21 |         "id": 123,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:29:5: warning: let 'fileHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | let fileHandler: RequestHandler = { (_, ctx) in
   |     |- warning: let 'fileHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'fileHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |     let path = FileManager.default.currentDirectoryPath + "/README.md"
31 |     let fileResp = SgFileResponse(path: path, headers: Headers.MIME.text)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:36:5: warning: let 'siteRootHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 |
36 | let siteRootHandler: RequestHandler = { (_, ctx) in
   |     |- warning: let 'siteRootHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'siteRootHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |     let path = FileManager.default.currentDirectoryPath + "/html/index.html"
38 |     let fileResp = SgFileResponse(path: path, headers: Headers.MIME.html)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:42:5: warning: let 'siteContentHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
40 | }
41 |
42 | let siteContentHandler: RequestHandler = { (req, ctx) in
   |     |- warning: let 'siteContentHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'siteContentHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |     let pathParam = req.urlParams["path"] ?? "not-found"
44 |
[123/134] Compiling Simple main.swift
/host/spi-builder-workspace/Sources/Examples/Simple/main.swift:16:9: warning: variable 'router' was never mutated; consider changing to 'let' constant
14 |     print("Starting Seagull test server...")
15 |
16 |     var router = Router()
   |         `- warning: variable 'router' was never mutated; consider changing to 'let' constant
17 |
18 |     try router.add(method: .GET, relativePath: "/text", handler: plainTextHandler)
[124/134] Compiling Simple handlers.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:5:5: warning: let 'plainTextHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
 3 | import NIOHTTP1
 4 |
 5 | let plainTextHandler: RequestHandler = { (_, ctx) in
   |     |- warning: let 'plainTextHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'plainTextHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |     return SgResult.data(response: SgDataResponse.from(string: "This is just a string"))
 7 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:9:5: warning: let 'jsonObjHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
 7 | }
 8 |
 9 | let jsonObjHandler: RequestHandler = { (_, ctx) in
   |     |- warning: let 'jsonObjHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'jsonObjHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |     struct TestObj: Encodable {
11 |         let id: Int
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:19:5: warning: let 'jsonDictHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
17 | }
18 |
19 | let jsonDictHandler: RequestHandler = { (_, ctx) in
   |     |- warning: let 'jsonDictHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'jsonDictHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |     let dict: [String: Any] = [
21 |         "id": 123,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:29:5: warning: let 'fileHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | let fileHandler: RequestHandler = { (_, ctx) in
   |     |- warning: let 'fileHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'fileHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |     let path = FileManager.default.currentDirectoryPath + "/README.md"
31 |     let fileResp = SgFileResponse(path: path, headers: Headers.MIME.text)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:36:5: warning: let 'siteRootHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 |
36 | let siteRootHandler: RequestHandler = { (_, ctx) in
   |     |- warning: let 'siteRootHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'siteRootHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |     let path = FileManager.default.currentDirectoryPath + "/html/index.html"
38 |     let fileResp = SgFileResponse(path: path, headers: Headers.MIME.html)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Examples/Simple/handlers.swift:42:5: warning: let 'siteContentHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
40 | }
41 |
42 | let siteContentHandler: RequestHandler = { (req, ctx) in
   |     |- warning: let 'siteContentHandler' is not concurrency-safe because non-'Sendable' type 'RequestHandler' (aka '(SgRequest, SgRequestContext) -> SgResult') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'siteContentHandler' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |     let pathParam = req.urlParams["path"] ?? "not-found"
44 |
[125/135] Compiling Rest main.swift
/host/spi-builder-workspace/Sources/Examples/Rest/main.swift:15:9: warning: variable 'router' was never mutated; consider changing to 'let' constant
13 |     print("Starting Seagull base REST server...")
14 |
15 |     var router = Router()
   |         `- warning: variable 'router' was never mutated; consider changing to 'let' constant
16 |
17 |     try router.add(method: .GET, relativePath: "/", handler: Handlers.ping)
[126/135] Emitting module Rest
/host/spi-builder-workspace/Sources/Examples/Rest/handlers.swift:56:16: warning: static property 'inst' is not concurrency-safe because non-'Sendable' type 'Db' may have shared mutable state; this is an error in the Swift 6 language mode
 52 | // MARK: -
 53 |
 54 | class Db {
    |       `- note: class 'Db' does not conform to the 'Sendable' protocol
 55 |
 56 |     static let inst = Db()
    |                |- warning: static property 'inst' is not concurrency-safe because non-'Sendable' type 'Db' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: 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: -
[127/135] Compiling Rest handlers.swift
/host/spi-builder-workspace/Sources/Examples/Rest/handlers.swift:56:16: warning: static property 'inst' is not concurrency-safe because non-'Sendable' type 'Db' may have shared mutable state; this is an error in the Swift 6 language mode
 52 | // MARK: -
 53 |
 54 | class Db {
    |       `- note: class 'Db' does not conform to the 'Sendable' protocol
 55 |
 56 |     static let inst = Db()
    |                |- warning: static property 'inst' is not concurrency-safe because non-'Sendable' type 'Db' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: 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: -
[128/135] Compiling Rest SafeMap.swift
/host/spi-builder-workspace/Sources/Examples/Rest/SafeMap.swift:17:13: warning: capture of 'self' with non-sendable type 'SafeMap<T, E>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 2 | import Dispatch
 3 |
 4 | class SafeMap<T: Hashable, E> {
   |       `- note: generic class 'SafeMap' does not conform to the 'Sendable' protocol
 5 |
 6 |     private let queue = DispatchQueue(label:"", attributes: .concurrent)
   :
15 |     func set(value: E, forKey key: T) {
16 |         queue.async(flags: .barrier) {
17 |             self.map[key] = value
   |             `- warning: capture of 'self' with non-sendable type 'SafeMap<T, E>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 |         }
19 |     }
/host/spi-builder-workspace/Sources/Examples/Rest/SafeMap.swift:17:22: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 2 | import Dispatch
 3 |
 4 | class SafeMap<T: Hashable, E> {
   |               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 5 |
 6 |     private let queue = DispatchQueue(label:"", attributes: .concurrent)
   :
15 |     func set(value: E, forKey key: T) {
16 |         queue.async(flags: .barrier) {
17 |             self.map[key] = value
   |                      `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 |         }
19 |     }
/host/spi-builder-workspace/Sources/Examples/Rest/SafeMap.swift:17:29: warning: capture of 'value' with non-sendable type 'E' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 2 | import Dispatch
 3 |
 4 | class SafeMap<T: Hashable, E> {
   |                            `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
 5 |
 6 |     private let queue = DispatchQueue(label:"", attributes: .concurrent)
   :
15 |     func set(value: E, forKey key: T) {
16 |         queue.async(flags: .barrier) {
17 |             self.map[key] = value
   |                             `- warning: capture of 'value' with non-sendable type 'E' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 |         }
19 |     }
/host/spi-builder-workspace/Sources/Examples/Rest/SafeMap.swift:23:13: warning: capture of 'self' with non-sendable type 'SafeMap<T, E>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 2 | import Dispatch
 3 |
 4 | class SafeMap<T: Hashable, E> {
   |       `- note: generic class 'SafeMap' does not conform to the 'Sendable' protocol
 5 |
 6 |     private let queue = DispatchQueue(label:"", attributes: .concurrent)
   :
21 |     func remove(key: T) {
22 |         queue.async(flags: .barrier) {
23 |             self.map.removeValue(forKey: key)
   |             `- warning: capture of 'self' with non-sendable type 'SafeMap<T, E>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
24 |         }
25 |     }
/host/spi-builder-workspace/Sources/Examples/Rest/SafeMap.swift:23:42: warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 2 | import Dispatch
 3 |
 4 | class SafeMap<T: Hashable, E> {
   |               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 5 |
 6 |     private let queue = DispatchQueue(label:"", attributes: .concurrent)
   :
21 |     func remove(key: T) {
22 |         queue.async(flags: .barrier) {
23 |             self.map.removeValue(forKey: key)
   |                                          `- warning: capture of 'key' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
24 |         }
25 |     }
[130/136] Wrapping AST for Simple for debugging
[131/136] Write Objects.LinkFileList
[132/136] Wrapping AST for Rest for debugging
[133/136] Write Objects.LinkFileList
[134/136] Linking Simple
[135/136] Linking Rest
Build complete! (49.97s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "result",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/antitypical/Result.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.8.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    }
  ],
  "manifest_display_name" : "Seagull",
  "name" : "Seagull",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Seagull",
      "targets" : [
        "Seagull"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Simple",
      "targets" : [
        "Simple"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "Rest",
      "targets" : [
        "Rest"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Simple",
      "module_type" : "SwiftTarget",
      "name" : "Simple",
      "path" : "Sources/Examples/Simple",
      "product_memberships" : [
        "Simple"
      ],
      "sources" : [
        "handlers.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "Seagull"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SeagullTests",
      "module_type" : "SwiftTarget",
      "name" : "SeagullTests",
      "path" : "Tests/SeagullTests",
      "sources" : [
        "EngineIntegrationTests.swift",
        "EngineNIOTests.swift",
        "NIOTestHelpers.swift",
        "RouterTests.swift",
        "SgHandlerTests.swift",
        "TestHelpers.swift",
        "TestServer.swift",
        "UriParserTests.swift"
      ],
      "target_dependencies" : [
        "Seagull"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Seagull",
      "module_type" : "SwiftTarget",
      "name" : "Seagull",
      "path" : "Sources/Seagull",
      "product_dependencies" : [
        "NIO",
        "NIOHTTP1",
        "NIOConcurrencyHelpers",
        "Result"
      ],
      "product_memberships" : [
        "Seagull",
        "Simple",
        "Rest"
      ],
      "sources" : [
        "Engine.swift",
        "ErrorProvider.swift",
        "Errors.swift",
        "HTTP+Seagull.swift",
        "HTTPHandler.swift",
        "LogProvider.swift",
        "Router.swift",
        "RouterGroup.swift",
        "SgDataResponse.swift",
        "SgFileResponse.swift",
        "SgHandler.swift",
        "SgRequest.swift",
        "SgRequestContext.swift",
        "SgResult.swift",
        "UriParser.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Rest",
      "module_type" : "SwiftTarget",
      "name" : "Rest",
      "path" : "Sources/Examples/Rest",
      "product_memberships" : [
        "Rest"
      ],
      "sources" : [
        "SafeMap.swift",
        "handlers.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "Seagull"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "4.0"
}
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.