The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftNIOMock, reference master (cc14a0), with Swift 6.3 for Linux on 10 Apr 2026 22:03:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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.3
Building package at path:  $PWD
https://github.com/ilyapuchka/SwiftNIOMock.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Fetching https://github.com/ilyapuchka/URLFormat.git
[1/118] Fetching urlformat
Fetched https://github.com/ilyapuchka/URLFormat.git from cache (0.22s)
Fetching https://github.com/ilyapuchka/common-parsers.git
[1/72] Fetching common-parsers
Fetched https://github.com/ilyapuchka/common-parsers.git from cache (0.20s)
Fetching https://github.com/pointfreeco/swift-prelude.git
[1/3298] Fetching swift-prelude
Fetched https://github.com/pointfreeco/swift-prelude.git from cache (0.30s)
Fetching https://github.com/apple/swift-nio.git
[1/83101] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (6.51s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (8.65s)
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.36s)
Computing version for https://github.com/apple/swift-nio-zlib-support.git
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (0.85s)
Creating working copy for https://github.com/ilyapuchka/common-parsers.git
Working copy of https://github.com/ilyapuchka/common-parsers.git resolved at master (fb6f45c)
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.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
Creating working copy for https://github.com/ilyapuchka/URLFormat.git
Working copy of https://github.com/ilyapuchka/URLFormat.git resolved at master (0f50393)
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
[9/16] Compiling CNIOLinux ifaddrs-android.c
[10/16] Compiling CNIODarwin shim.c
[11/16] Compiling CNIOSHA1 c_nio_sha1.c
[12/16] Compiling CNIOLinux shim.c
[13/16] Write swift-version-24593BA9C3E375BF.txt
[14/20] Compiling CNIOHTTPParser c_nio_http_parser.c
[15/52] Compiling c-atomics.c
[17/55] Emitting module Prelude
[18/59] Compiling Prelude NearSemiring.swift
[19/59] Compiling Prelude Never.swift
[20/59] Compiling Prelude Operators.swift
[21/59] Compiling Prelude Optional.swift
[22/59] Compiling Prelude String.swift
[23/59] Compiling Prelude Strong.swift
[24/59] Compiling Prelude Tuple.swift
[25/59] Compiling Prelude Unit.swift
[26/59] Compiling Prelude Field.swift
[27/59] Compiling Prelude Filterable.swift
[28/59] Compiling Prelude FreeNearSemiring.swift
[29/59] Compiling Prelude Func.swift
[30/59] Compiling Prelude Function.swift
[31/59] Compiling Prelude Alt.swift
[32/59] Compiling Prelude Array.swift
[33/59] Compiling Prelude Collection.swift
[34/59] Compiling Prelude CommutativeRing.swift
[35/59] Compiling Prelude Comparable.swift
[36/59] Compiling Prelude Comparator.swift
[37/59] Compiling Prelude Curry.swift
[38/59] Compiling Prelude Endo.swift
[39/59] Compiling Prelude Equatable.swift
[40/59] Compiling Prelude EuclideanRing.swift
[41/59] Compiling Prelude Semigroup.swift
[42/59] Compiling Prelude Semiring.swift
[43/59] Compiling Prelude Sequence.swift
[44/59] Compiling Prelude Set.swift
[45/59] Compiling Prelude Parallel.swift
[46/59] Compiling Prelude Plus.swift
[47/59] Compiling Prelude PrecedenceGroups.swift
[48/59] Compiling Prelude Ring.swift
[49/59] Compiling NIOConcurrencyHelpers lock.swift
[50/59] Compiling NIOConcurrencyHelpers atomics.swift
[51/59] Emitting module NIOConcurrencyHelpers
[53/60] Compiling Prelude HeytingAlgebra.swift
[54/60] Compiling Prelude Hole.swift
[55/60] Compiling Prelude IO.swift
[56/60] Compiling Prelude KeyPath.swift
[57/60] Compiling Prelude Monoid.swift
[59/61] Emitting module NIOPriorityQueue
[60/61] Compiling NIOPriorityQueue Heap.swift
[61/61] Compiling NIOPriorityQueue PriorityQueue.swift
[63/70] Compiling CommonParsers Parser.swift
[64/119] Compiling CommonParsers Template.swift
[65/119] Compiling CommonParsers PartialIso.swift
[66/119] Compiling CommonParsers Matchable.swift
[67/119] Compiling CommonParsers Format.swift
[68/119] Emitting module CommonParsers
[69/119] Compiling CommonParsers Parenthesize.swift
[71/122] Compiling NIO ByteBuffer-int.swift
[72/122] Compiling NIO ByteBuffer-views.swift
[73/122] Compiling NIO Channel.swift
[74/122] Compiling NIO ChannelHandler.swift
[75/122] Compiling NIO ChannelHandlers.swift
[76/122] Compiling NIO ChannelInvoker.swift
[77/122] Compiling NIO ChannelOption.swift
[78/122] Emitting module URLFormat
[79/122] Compiling URLFormat URLFormat.swift
[81/129] Emitting module NIO
[82/129] Compiling NIO EventLoop.swift
[83/129] Compiling NIO EventLoopFuture.swift
[84/129] Compiling NIO FileDescriptor.swift
[85/129] Compiling NIO FileHandle.swift
[86/129] Compiling NIO FileRegion.swift
[87/129] Compiling NIO GetaddrinfoResolver.swift
[88/129] Compiling NIO HappyEyeballs.swift
[89/129] Compiling NIO MarkedCircularBuffer.swift
[90/129] Compiling NIO MulticastChannel.swift
[91/129] Compiling NIO NIOAny.swift
[92/129] Compiling NIO NonBlockingFileIO.swift
[93/129] Compiling NIO PendingDatagramWritesManager.swift
[94/129] Compiling NIO PendingWritesManager.swift
[95/129] Compiling NIO PriorityQueue.swift
[96/129] Compiling NIO RecvByteBufferAllocator.swift
[97/129] Compiling NIO Resolver.swift
[98/129] Compiling NIO Selectable.swift
[99/129] Compiling NIO Selector.swift
[100/129] Compiling NIO ServerSocket.swift
[101/129] Compiling NIO Socket.swift
[102/129] Compiling NIO SocketAddresses.swift
[103/129] Compiling NIO ChannelPipeline.swift
[104/129] Compiling NIO CircularBuffer.swift
[105/129] Compiling NIO Codec.swift
[106/129] Compiling NIO CompositeError.swift
[107/129] Compiling NIO ContiguousCollection.swift
[108/129] Compiling NIO DeadChannel.swift
[109/129] Compiling NIO Embedded.swift
[110/129] Compiling NIO AddressedEnvelope.swift
[111/129] Compiling NIO BaseSocket.swift
[112/129] Compiling NIO BaseSocketChannel.swift
[113/129] Compiling NIO BlockingIOThreadPool.swift
[114/129] Compiling NIO Bootstrap.swift
[115/129] Compiling NIO ByteBuffer-aux.swift
[116/129] Compiling NIO ByteBuffer-core.swift
[117/129] Compiling NIO Heap.swift
[118/129] Compiling NIO IO.swift
[119/129] Compiling NIO IOData.swift
[120/129] Compiling NIO IntegerTypes.swift
[121/129] Compiling NIO Interfaces.swift
[122/129] Compiling NIO Linux.swift
[123/129] Compiling NIO LinuxCPUSet.swift
[124/129] Compiling NIO SocketChannel.swift
[125/129] Compiling NIO SocketOptionProvider.swift
[126/129] Compiling NIO System.swift
[127/129] Compiling NIO Thread.swift
[128/129] Compiling NIO TypeAssistedChannelHandler.swift
[129/129] Compiling NIO Utilities.swift
[131/139] Compiling NIOHTTP1 HTTPResponseCompressor.swift
[132/140] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[133/140] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[134/140] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[135/140] Compiling NIOHTTP1 HTTPTypes.swift
[136/140] Compiling NIOHTTP1 HTTPEncoder.swift
[137/140] Emitting module NIOHTTP1
[138/140] Compiling NIOHTTP1 ByteCollectionUtils.swift
[139/140] Compiling NIOHTTP1 HTTPDecoder.swift
[140/140] Compiling NIOHTTP1 HTTPUpgradeHandler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[142/145] Compiling SwiftNIOMock Router.swift
[143/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: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
20 | }
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
   |            `- warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:23:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:24:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:25:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:26:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
[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)!
/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:252:38: error: default argument value of type '_' cannot be converted to type 'AnyObject'
250 | /// Middleware that allows to redirect incomming request and intercept responses
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
    |                                      `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
20 | }
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
   |            `- warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:23:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:24:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:25:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:26:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; '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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct 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)!
/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:252:38: error: default argument value of type '_' cannot be converted to type 'AnyObject'
250 | /// Middleware that allows to redirect incomming request and intercept responses
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
    |                                      `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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.3 linux