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

Failed to build SwiftNIOMock, reference master (cc14a0), with Swift 6.0 for Linux on 31 Oct 2024 10:44:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ilyapuchka/SwiftNIOMock.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/ilyapuchka/SwiftNIOMock
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at cc14a07 update readme
Cloned https://github.com/ilyapuchka/SwiftNIOMock.git
Revision (git rev-parse @):
cc14a07e137597194d439cfbb3ca7b6b99701ccb
SUCCESS checkout https://github.com/ilyapuchka/SwiftNIOMock.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ilyapuchka/SwiftNIOMock.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/ilyapuchka/URLFormat.git
[1/118] Fetching urlformat
Fetched https://github.com/ilyapuchka/URLFormat.git from cache (0.17s)
Fetching https://github.com/ilyapuchka/common-parsers.git
[1/72] Fetching common-parsers
Fetched https://github.com/ilyapuchka/common-parsers.git from cache (0.18s)
Fetching https://github.com/pointfreeco/swift-prelude.git
[1/3294] Fetching swift-prelude
Fetched https://github.com/pointfreeco/swift-prelude.git from cache (0.23s)
Fetching https://github.com/apple/swift-nio.git
[1/71097] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (4.50s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.50s)
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.18s)
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.46s)
Creating working copy for https://github.com/ilyapuchka/URLFormat.git
Working copy of https://github.com/ilyapuchka/URLFormat.git resolved at master (0f50393)
Creating working copy for https://github.com/pointfreeco/swift-prelude.git
Working copy of https://github.com/pointfreeco/swift-prelude.git resolved at master (b4ceef2)
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
Creating working copy for https://github.com/ilyapuchka/common-parsers.git
Working copy of https://github.com/ilyapuchka/common-parsers.git resolved at master (fb6f45c)
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
Building for debugging...
[0/16] Write sources
[8/16] Compiling CNIOZlib empty.c
[8/16] Compiling CNIOLinux ifaddrs-android.c
[10/16] Compiling CNIODarwin shim.c
[11/16] Compiling CNIOLinux shim.c
[12/16] Compiling CNIOSHA1 c_nio_sha1.c
[13/16] Compiling CNIOHTTPParser c_nio_http_parser.c
[14/16] Write swift-version-24593BA9C3E375BF.txt
[15/52] Compiling c-atomics.c
[17/55] Emitting module Prelude
[18/55] Compiling Prelude Alt.swift
[19/55] Compiling Prelude Array.swift
[20/55] Compiling Prelude Collection.swift
[21/55] Compiling Prelude CommutativeRing.swift
[22/55] Compiling Prelude Comparable.swift
[23/59] Compiling Prelude Semigroup.swift
[24/59] Compiling Prelude Semiring.swift
[25/59] Compiling Prelude Sequence.swift
[26/59] Compiling Prelude Set.swift
[27/59] Compiling Prelude Field.swift
[28/59] Compiling Prelude Filterable.swift
[29/59] Compiling Prelude FreeNearSemiring.swift
[30/59] Compiling Prelude Func.swift
[31/59] Compiling Prelude Function.swift
[32/59] Compiling Prelude String.swift
[33/59] Compiling Prelude Strong.swift
[34/59] Compiling Prelude Tuple.swift
[35/59] Compiling Prelude Unit.swift
[36/59] Compiling NIOPriorityQueue PriorityQueue.swift
[37/59] Emitting module NIOPriorityQueue
[38/59] Compiling NIOPriorityQueue Heap.swift
[39/60] Compiling NIOConcurrencyHelpers atomics.swift
[40/60] Emitting module NIOConcurrencyHelpers
[41/60] Compiling NIOConcurrencyHelpers lock.swift
[44/111] Compiling NIO DeadChannel.swift
[45/111] Compiling NIO Embedded.swift
[46/111] Compiling NIO ByteBuffer-int.swift
[47/111] Compiling NIO ByteBuffer-views.swift
[48/111] Compiling NIO Channel.swift
[49/111] Compiling NIO AddressedEnvelope.swift
[50/111] Compiling NIO BaseSocket.swift
[51/111] Compiling NIO BaseSocketChannel.swift
[52/111] Compiling NIO BlockingIOThreadPool.swift
[53/111] Compiling NIO ChannelHandler.swift
[54/111] Compiling NIO ChannelHandlers.swift
[55/111] Compiling NIO ChannelInvoker.swift
[56/111] Compiling NIO ChannelOption.swift
[57/111] Compiling NIO Bootstrap.swift
[58/111] Compiling NIO ByteBuffer-aux.swift
[59/111] Compiling NIO ByteBuffer-core.swift
[60/111] Compiling NIO MarkedCircularBuffer.swift
[61/111] Compiling NIO MulticastChannel.swift
[63/119] Compiling CommonParsers Template.swift
[66/119] Compiling NIO NIOAny.swift
[67/119] Compiling NIO NonBlockingFileIO.swift
[68/119] Compiling NIO PendingDatagramWritesManager.swift
[69/119] Compiling NIO PendingWritesManager.swift
[70/119] Compiling NIO PriorityQueue.swift
[71/125] Emitting module CommonParsers
[72/125] Compiling CommonParsers Parser.swift
[73/125] Compiling CommonParsers PartialIso.swift
[74/125] Compiling NIO RecvByteBufferAllocator.swift
[75/125] Compiling NIO Resolver.swift
[76/125] Compiling NIO Selectable.swift
[77/125] Compiling NIO Selector.swift
[78/125] Compiling NIO ServerSocket.swift
[79/125] Compiling NIO Socket.swift
[80/125] Compiling NIO SocketAddresses.swift
[81/125] Compiling NIO EventLoop.swift
[82/125] Compiling NIO EventLoopFuture.swift
[83/125] Compiling NIO FileDescriptor.swift
[84/125] Compiling NIO FileHandle.swift
[85/125] Compiling NIO FileRegion.swift
[86/125] Compiling NIO GetaddrinfoResolver.swift
[87/125] Compiling NIO HappyEyeballs.swift
[88/125] Compiling NIO Heap.swift
[89/125] Compiling NIO IO.swift
[90/125] Compiling NIO IOData.swift
[91/125] Compiling NIO IntegerTypes.swift
[92/125] Compiling NIO Interfaces.swift
[93/125] Compiling NIO Linux.swift
[94/125] Compiling NIO LinuxCPUSet.swift
[95/125] Emitting module NIO
[103/125] Compiling NIO ChannelPipeline.swift
[104/125] Compiling NIO CircularBuffer.swift
[105/125] Compiling NIO Codec.swift
[106/125] Compiling NIO CompositeError.swift
[107/125] Compiling NIO ContiguousCollection.swift
[110/125] Compiling CommonParsers Matchable.swift
[111/125] Compiling CommonParsers Format.swift
[112/125] Compiling CommonParsers Parenthesize.swift
[121/128] Compiling NIO SocketChannel.swift
[122/128] Compiling NIO SocketOptionProvider.swift
[123/128] Compiling NIO System.swift
[124/128] Compiling NIO Thread.swift
[125/128] Compiling NIO TypeAssistedChannelHandler.swift
[126/128] Compiling NIO Utilities.swift
[128/138] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[129/138] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[130/139] Emitting module URLFormat
[131/139] Compiling URLFormat URLFormat.swift
[133/140] Compiling NIOHTTP1 HTTPEncoder.swift
[134/140] Compiling NIOHTTP1 HTTPUpgradeHandler.swift
[135/140] Compiling NIOHTTP1 HTTPTypes.swift
[136/140] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[137/140] Compiling NIOHTTP1 HTTPResponseCompressor.swift
[138/140] Compiling NIOHTTP1 ByteCollectionUtils.swift
[139/140] Compiling NIOHTTP1 HTTPDecoder.swift
[140/140] Emitting module NIOHTTP1
[142/145] Compiling SwiftNIOMock Service.swift
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:39:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
37 | }
38 |
39 | @_functionBuilder
   |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
40 | public struct ServiceRouterBuilder {
41 |     public typealias RouteClosure<S: Service> = (S) -> Middleware
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:58:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
56 | }
57 |
58 | @_functionBuilder
   |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
59 | public struct RouterBuilder {
60 |     public static func buildBlock(_ items: Middleware...) -> Middleware {
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:22:12: warning: let 'GET' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
   |            `- warning: let 'GET' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
/host/spi-builder-workspace/.build/checkouts/URLFormat/Sources/URLFormat/URLFormat.swift:104:14: note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
102 | // url does not have a query and is complete, not expeciting any path parameters
103 | // only query parameters can be added
104 | public class ClosedPathFormat<A>: URLFormat<A>, ExpressibleByStringLiteral {
    |              `- note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
105 |     public required init(_ parser: Parser<URLRequestComponents, A>) {
106 |         super.init(parser)
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'URLFormat'
 1 | import NIOHTTP1
 2 | import URLFormat
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'URLFormat'
 3 |
 4 | public protocol ServiceProtocol: class {}
   :
20 | }
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
   |            |- note: annotate 'GET' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:22:12: warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
20 | }
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
   |            `- warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: type declared here
 1 | public struct Unit: Codable {}
   |               `- note: type declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:23:12: warning: let 'PUT' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
   |            |- warning: let 'PUT' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'PUT' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
/host/spi-builder-workspace/.build/checkouts/URLFormat/Sources/URLFormat/URLFormat.swift:104:14: note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
102 | // url does not have a query and is complete, not expeciting any path parameters
103 | // only query parameters can be added
104 | public class ClosedPathFormat<A>: URLFormat<A>, ExpressibleByStringLiteral {
    |              `- note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
105 |     public required init(_ parser: Parser<URLRequestComponents, A>) {
106 |         super.init(parser)
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:23:12: warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
   |            `- warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: type declared here
 1 | public struct Unit: Codable {}
   |               `- note: type declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:24:12: warning: let 'POST' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
   |            |- warning: let 'POST' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'POST' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
/host/spi-builder-workspace/.build/checkouts/URLFormat/Sources/URLFormat/URLFormat.swift:104:14: note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
102 | // url does not have a query and is complete, not expeciting any path parameters
103 | // only query parameters can be added
104 | public class ClosedPathFormat<A>: URLFormat<A>, ExpressibleByStringLiteral {
    |              `- note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
105 |     public required init(_ parser: Parser<URLRequestComponents, A>) {
106 |         super.init(parser)
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:24:12: warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
   |            `- warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: type declared here
 1 | public struct Unit: Codable {}
   |               `- note: type declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:25:12: warning: let 'PATCH' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
   |            |- warning: let 'PATCH' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'PATCH' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
27 |
/host/spi-builder-workspace/.build/checkouts/URLFormat/Sources/URLFormat/URLFormat.swift:104:14: note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
102 | // url does not have a query and is complete, not expeciting any path parameters
103 | // only query parameters can be added
104 | public class ClosedPathFormat<A>: URLFormat<A>, ExpressibleByStringLiteral {
    |              `- note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
105 |     public required init(_ parser: Parser<URLRequestComponents, A>) {
106 |         super.init(parser)
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:25:12: warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
   |            `- warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
27 |
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: type declared here
 1 | public struct Unit: Codable {}
   |               `- note: type declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:26:12: warning: let 'DELETE' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
   |            |- warning: let 'DELETE' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'DELETE' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | public extension ServiceProtocol where Self: Service {
/host/spi-builder-workspace/.build/checkouts/URLFormat/Sources/URLFormat/URLFormat.swift:104:14: note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
102 | // url does not have a query and is complete, not expeciting any path parameters
103 | // only query parameters can be added
104 | public class ClosedPathFormat<A>: URLFormat<A>, ExpressibleByStringLiteral {
    |              `- note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
105 |     public required init(_ parser: Parser<URLRequestComponents, A>) {
106 |         super.init(parser)
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:26:12: warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
   |            `- warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
27 |
28 | public extension ServiceProtocol where Self: Service {
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: type declared here
 1 | public struct Unit: Codable {}
   |               `- note: type declared here
 2 |
 3 | public let unit = Unit()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[143/145] Compiling SwiftNIOMock Router.swift
[144/145] Emitting module SwiftNIOMock
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:39:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
37 | }
38 |
39 | @_functionBuilder
   |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
40 | public struct ServiceRouterBuilder {
41 |     public typealias RouteClosure<S: Service> = (S) -> Middleware
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:58:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
56 | }
57 |
58 | @_functionBuilder
   |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
59 | public struct RouterBuilder {
60 |     public static func buildBlock(_ items: Middleware...) -> Middleware {
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:215:11: error: cannot find type 'URLRequest' in scope
213 | }
214 |
215 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
216 |     public init(_ request: Server.HTTPHandler.Request) {
217 |         let url = URL(string: request.head.uri)!
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:235:12: warning: let 'notFound' is not concurrency-safe because non-'Sendable' type 'Middleware' (aka '(Server.HTTPHandler.Request, Server.HTTPHandler.Response, @escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
233 | ) -> Void
234 |
235 | public let notFound: Middleware = { _, response, next in
    |            |- warning: let 'notFound' is not concurrency-safe because non-'Sendable' type 'Middleware' (aka '(Server.HTTPHandler.Request, Server.HTTPHandler.Response, @escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'notFound' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
236 |     response.sendString(.notFound)
237 |     next()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:253:18: error: cannot find type 'NSURLRequest' in scope
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
253 |     cachePolicy: NSURLRequest.CachePolicy = .reloadIgnoringLocalAndRemoteCacheData,
    |                  `- error: cannot find type 'NSURLRequest' in scope
254 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
255 |     response intercept: @escaping (Server.HTTPHandler.Response) -> Void = { _ in }
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:252:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | /// Middleware that allows to redirect incomming request and intercept responses
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 |     cachePolicy: NSURLRequest.CachePolicy = .reloadIgnoringLocalAndRemoteCacheData,
254 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:252:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
250 | /// Middleware that allows to redirect incomming request and intercept responses
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 |     cachePolicy: NSURLRequest.CachePolicy = .reloadIgnoringLocalAndRemoteCacheData,
254 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:22:12: warning: let 'GET' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
   |            `- warning: let 'GET' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
/host/spi-builder-workspace/.build/checkouts/URLFormat/Sources/URLFormat/URLFormat.swift:104:14: note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
102 | // url does not have a query and is complete, not expeciting any path parameters
103 | // only query parameters can be added
104 | public class ClosedPathFormat<A>: URLFormat<A>, ExpressibleByStringLiteral {
    |              `- note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
105 |     public required init(_ parser: Parser<URLRequestComponents, A>) {
106 |         super.init(parser)
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'URLFormat'
 1 | import NIOHTTP1
 2 | import URLFormat
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'URLFormat'
 3 |
 4 | public protocol ServiceProtocol: class {}
   :
20 | }
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
   |            |- note: annotate 'GET' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:22:12: warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
20 | }
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
   |            `- warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: type declared here
 1 | public struct Unit: Codable {}
   |               `- note: type declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:23:12: warning: let 'PUT' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
   |            |- warning: let 'PUT' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'PUT' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
/host/spi-builder-workspace/.build/checkouts/URLFormat/Sources/URLFormat/URLFormat.swift:104:14: note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
102 | // url does not have a query and is complete, not expeciting any path parameters
103 | // only query parameters can be added
104 | public class ClosedPathFormat<A>: URLFormat<A>, ExpressibleByStringLiteral {
    |              `- note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
105 |     public required init(_ parser: Parser<URLRequestComponents, A>) {
106 |         super.init(parser)
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:23:12: warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
   |            `- warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: type declared here
 1 | public struct Unit: Codable {}
   |               `- note: type declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:24:12: warning: let 'POST' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
   |            |- warning: let 'POST' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'POST' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
/host/spi-builder-workspace/.build/checkouts/URLFormat/Sources/URLFormat/URLFormat.swift:104:14: note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
102 | // url does not have a query and is complete, not expeciting any path parameters
103 | // only query parameters can be added
104 | public class ClosedPathFormat<A>: URLFormat<A>, ExpressibleByStringLiteral {
    |              `- note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
105 |     public required init(_ parser: Parser<URLRequestComponents, A>) {
106 |         super.init(parser)
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:24:12: warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
   |            `- warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: type declared here
 1 | public struct Unit: Codable {}
   |               `- note: type declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:25:12: warning: let 'PATCH' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
   |            |- warning: let 'PATCH' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'PATCH' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
27 |
/host/spi-builder-workspace/.build/checkouts/URLFormat/Sources/URLFormat/URLFormat.swift:104:14: note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
102 | // url does not have a query and is complete, not expeciting any path parameters
103 | // only query parameters can be added
104 | public class ClosedPathFormat<A>: URLFormat<A>, ExpressibleByStringLiteral {
    |              `- note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
105 |     public required init(_ parser: Parser<URLRequestComponents, A>) {
106 |         super.init(parser)
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:25:12: warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
   |            `- warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
27 |
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: type declared here
 1 | public struct Unit: Codable {}
   |               `- note: type declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:26:12: warning: let 'DELETE' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
   |            |- warning: let 'DELETE' is not concurrency-safe because non-'Sendable' type 'ClosedPathFormat<Unit>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'DELETE' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | public extension ServiceProtocol where Self: Service {
/host/spi-builder-workspace/.build/checkouts/URLFormat/Sources/URLFormat/URLFormat.swift:104:14: note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
102 | // url does not have a query and is complete, not expeciting any path parameters
103 | // only query parameters can be added
104 | public class ClosedPathFormat<A>: URLFormat<A>, ExpressibleByStringLiteral {
    |              `- note: generic class 'ClosedPathFormat' does not conform to the 'Sendable' protocol
105 |     public required init(_ parser: Parser<URLRequestComponents, A>) {
106 |         super.init(parser)
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:26:12: warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
   |            `- warning: cannot use struct 'Unit' here; 'Prelude' was not imported by this file
27 |
28 | public extension ServiceProtocol where Self: Service {
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: type declared here
 1 | public struct Unit: Codable {}
   |               `- note: type declared here
 2 |
 3 | public let unit = Unit()
[145/145] Compiling SwiftNIOMock Server.swift
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:215:11: error: cannot find type 'URLRequest' in scope
213 | }
214 |
215 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
216 |     public init(_ request: Server.HTTPHandler.Request) {
217 |         let url = URL(string: request.head.uri)!
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:235:12: warning: let 'notFound' is not concurrency-safe because non-'Sendable' type 'Middleware' (aka '(Server.HTTPHandler.Request, Server.HTTPHandler.Response, @escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
233 | ) -> Void
234 |
235 | public let notFound: Middleware = { _, response, next in
    |            |- warning: let 'notFound' is not concurrency-safe because non-'Sendable' type 'Middleware' (aka '(Server.HTTPHandler.Request, Server.HTTPHandler.Response, @escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'notFound' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
236 |     response.sendString(.notFound)
237 |     next()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:253:18: error: cannot find type 'NSURLRequest' in scope
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
253 |     cachePolicy: NSURLRequest.CachePolicy = .reloadIgnoringLocalAndRemoteCacheData,
    |                  `- error: cannot find type 'NSURLRequest' in scope
254 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
255 |     response intercept: @escaping (Server.HTTPHandler.Response) -> Void = { _ in }
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:252:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | /// Middleware that allows to redirect incomming request and intercept responses
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 |     cachePolicy: NSURLRequest.CachePolicy = .reloadIgnoringLocalAndRemoteCacheData,
254 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:252:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
250 | /// Middleware that allows to redirect incomming request and intercept responses
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 |     cachePolicy: NSURLRequest.CachePolicy = .reloadIgnoringLocalAndRemoteCacheData,
254 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:258:24: error: cannot find 'URLRequest' in scope
256 | ) -> Middleware {
257 |     return { request, response, next in
258 |         var redirect = URLRequest(redirect(request))
    |                        `- error: cannot find 'URLRequest' in scope
259 |         redirect.cachePolicy = cachePolicy
260 |
BUILD FAILURE 6.0 linux