The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftNIOMock, reference master (cc14a0), with Swift 6.1 for Linux on 25 Apr 2025 13:05:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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.1
Building package at path:  $PWD
https://github.com/ilyapuchka/SwiftNIOMock.git
https://github.com/ilyapuchka/SwiftNIOMock.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.12.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "urlformat",
      "requirement" : {
        "branch" : [
          "master"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ilyapuchka/URLFormat.git"
    }
  ],
  "manifest_display_name" : "SwiftNIOMock",
  "name" : "SwiftNIOMock",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftNIOMock",
      "targets" : [
        "SwiftNIOMock"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftNIOMockTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftNIOMockTests",
      "path" : "Tests/SwiftNIOMockTests",
      "sources" : [
        "SwiftNIOMockTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftNIOMock"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftNIOMock",
      "module_type" : "SwiftTarget",
      "name" : "SwiftNIOMock",
      "path" : "Sources/SwiftNIOMock",
      "product_dependencies" : [
        "NIO",
        "NIOHTTP1",
        "URLFormat"
      ],
      "product_memberships" : [
        "SwiftNIOMock"
      ],
      "sources" : [
        "Router.swift",
        "Server.swift",
        "Service.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/ilyapuchka/URLFormat.git
[1/118] Fetching urlformat
Fetched https://github.com/ilyapuchka/URLFormat.git from cache (0.32s)
Fetching https://github.com/ilyapuchka/common-parsers.git
[1/72] Fetching common-parsers
Fetched https://github.com/ilyapuchka/common-parsers.git from cache (0.32s)
Fetching https://github.com/pointfreeco/swift-prelude.git
[1/3298] Fetching swift-prelude
Fetched https://github.com/pointfreeco/swift-prelude.git from cache (0.37s)
Fetching https://github.com/apple/swift-nio.git
[1/75431] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (4.57s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (6.42s)
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.35s)
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.22s)
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/ilyapuchka/URLFormat.git
Working copy of https://github.com/ilyapuchka/URLFormat.git resolved at master (0f50393)
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/common-parsers.git
Working copy of https://github.com/ilyapuchka/common-parsers.git resolved at master (fb6f45c)
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/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] 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/59] Compiling Prelude String.swift
[19/59] Compiling Prelude Strong.swift
[20/59] Compiling Prelude Tuple.swift
[21/59] Compiling Prelude Unit.swift
[22/59] Emitting module NIOConcurrencyHelpers
[23/59] Compiling NIOConcurrencyHelpers atomics.swift
[24/59] Compiling Prelude Semigroup.swift
[25/59] Compiling Prelude Semiring.swift
[26/59] Compiling Prelude Sequence.swift
[27/59] Compiling Prelude Set.swift
[28/59] Compiling Prelude Parallel.swift
[29/59] Compiling Prelude Plus.swift
[30/59] Compiling Prelude PrecedenceGroups.swift
[31/59] Compiling Prelude Ring.swift
[32/59] Compiling Prelude NearSemiring.swift
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Optional.swift:10:32: error: conflicting arguments to generic parameter 'A' ('(A) -> A' vs. '@Sendable (A) -> A')
  8 |
  9 | public func coalesce<A>(with default: @autoclosure @escaping () -> A) -> (A?) -> A {
 10 |   return optional(`default`()) <| id
    |                                `- error: conflicting arguments to generic parameter 'A' ('(A) -> A' vs. '@Sendable (A) -> A')
 11 | }
 12 |
[33/59] Compiling Prelude Never.swift
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Optional.swift:10:32: error: conflicting arguments to generic parameter 'A' ('(A) -> A' vs. '@Sendable (A) -> A')
  8 |
  9 | public func coalesce<A>(with default: @autoclosure @escaping () -> A) -> (A?) -> A {
 10 |   return optional(`default`()) <| id
    |                                `- error: conflicting arguments to generic parameter 'A' ('(A) -> A' vs. '@Sendable (A) -> A')
 11 | }
 12 |
[34/59] Compiling Prelude Operators.swift
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Optional.swift:10:32: error: conflicting arguments to generic parameter 'A' ('(A) -> A' vs. '@Sendable (A) -> A')
  8 |
  9 | public func coalesce<A>(with default: @autoclosure @escaping () -> A) -> (A?) -> A {
 10 |   return optional(`default`()) <| id
    |                                `- error: conflicting arguments to generic parameter 'A' ('(A) -> A' vs. '@Sendable (A) -> A')
 11 | }
 12 |
[35/59] Compiling Prelude Optional.swift
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Optional.swift:10:32: error: conflicting arguments to generic parameter 'A' ('(A) -> A' vs. '@Sendable (A) -> A')
  8 |
  9 | public func coalesce<A>(with default: @autoclosure @escaping () -> A) -> (A?) -> A {
 10 |   return optional(`default`()) <| id
    |                                `- error: conflicting arguments to generic parameter 'A' ('(A) -> A' vs. '@Sendable (A) -> A')
 11 | }
 12 |
[36/59] Emitting module NIOPriorityQueue
[37/59] Compiling NIOPriorityQueue PriorityQueue.swift
[38/59] Compiling NIOPriorityQueue Heap.swift
[40/60] Compiling NIOConcurrencyHelpers lock.swift
[41/61] Compiling Prelude Comparator.swift
[42/61] Compiling Prelude Curry.swift
[43/61] Compiling Prelude Endo.swift
[44/61] Compiling Prelude Equatable.swift
[45/61] Compiling Prelude EuclideanRing.swift
[46/61] Compiling Prelude Field.swift
[47/61] Compiling Prelude Filterable.swift
[48/61] Compiling Prelude FreeNearSemiring.swift
[49/61] Compiling Prelude Func.swift
[50/61] Compiling Prelude Function.swift
[51/61] Compiling Prelude Alt.swift
[52/61] Compiling Prelude Array.swift
[53/61] Compiling Prelude Collection.swift
[54/61] Compiling Prelude CommutativeRing.swift
[55/61] Compiling Prelude Comparable.swift
[56/61] Compiling Prelude HeytingAlgebra.swift
[57/61] Compiling Prelude Hole.swift
[58/61] Compiling Prelude IO.swift
[59/61] Compiling Prelude KeyPath.swift
[60/61] Compiling Prelude Monoid.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 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
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/40] Compiling NIOPriorityQueue PriorityQueue.swift
[3/40] Emitting module NIOPriorityQueue
[4/40] Compiling NIOPriorityQueue Heap.swift
[5/41] Emitting module NIOConcurrencyHelpers
[6/41] Compiling NIOConcurrencyHelpers atomics.swift
[7/41] Compiling NIOConcurrencyHelpers lock.swift
[10/42] Compiling Prelude Parallel.swift
[11/42] Compiling Prelude Plus.swift
[12/42] Compiling Prelude PrecedenceGroups.swift
[13/42] Compiling Prelude Ring.swift
[14/42] Compiling Prelude HeytingAlgebra.swift
[15/42] Compiling Prelude Hole.swift
[16/42] Compiling Prelude IO.swift
[17/42] Compiling Prelude KeyPath.swift
[18/42] Compiling Prelude Monoid.swift
[19/42] Compiling Prelude Semigroup.swift
[20/42] Compiling Prelude Semiring.swift
[21/42] Compiling Prelude Sequence.swift
[22/42] Compiling Prelude Set.swift
[23/42] Compiling Prelude Field.swift
[24/42] Compiling Prelude Filterable.swift
[25/42] Compiling Prelude FreeNearSemiring.swift
[26/42] Compiling Prelude Func.swift
[27/42] Compiling Prelude Function.swift
[28/42] Compiling Prelude NearSemiring.swift
[29/42] Compiling Prelude Never.swift
[30/42] Compiling Prelude Operators.swift
[31/42] Compiling Prelude Optional.swift
[32/96] Compiling NIO ContiguousCollection.swift
[33/96] Compiling NIO DeadChannel.swift
[34/96] Compiling NIO Embedded.swift
[35/96] Compiling NIO EventLoop.swift
[36/96] Compiling NIO AddressedEnvelope.swift
[37/96] Compiling NIO BaseSocket.swift
[38/96] Compiling NIO BaseSocketChannel.swift
[39/96] Compiling NIO BlockingIOThreadPool.swift
[40/96] Compiling NIO Bootstrap.swift
[41/96] Emitting module Prelude
[42/96] Compiling NIO ByteBuffer-aux.swift
[43/96] Compiling NIO ByteBuffer-core.swift
[44/96] Compiling NIO ByteBuffer-int.swift
[45/96] Compiling NIO ByteBuffer-views.swift
[46/96] Compiling NIO Channel.swift
[48/104] Compiling CommonParsers Template.swift
[49/104] Emitting module CommonParsers
[50/104] Compiling CommonParsers PartialIso.swift
[51/104] Compiling CommonParsers Parser.swift
[52/104] Compiling CommonParsers Format.swift
[53/104] Compiling CommonParsers Parenthesize.swift
[54/104] Compiling CommonParsers Matchable.swift
[59/105] Compiling NIO ChannelHandler.swift
[60/105] Compiling NIO ChannelHandlers.swift
[61/105] Compiling NIO ChannelInvoker.swift
[62/105] Compiling NIO ChannelOption.swift
[63/111] Emitting module NIO
[64/111] Compiling NIO RecvByteBufferAllocator.swift
[65/111] Compiling NIO Resolver.swift
[66/111] Compiling NIO Selectable.swift
[67/111] Compiling NIO Selector.swift
[68/111] Compiling NIO ServerSocket.swift
[69/111] Compiling NIO Socket.swift
[70/111] Compiling NIO SocketAddresses.swift
[72/111] Compiling NIO EventLoopFuture.swift
[73/111] Compiling NIO FileDescriptor.swift
[74/111] Compiling NIO FileHandle.swift
[75/111] Compiling NIO FileRegion.swift
[76/111] Compiling NIO GetaddrinfoResolver.swift
[77/111] Compiling NIO HappyEyeballs.swift
[78/113] Compiling NIO MarkedCircularBuffer.swift
[79/113] Compiling NIO MulticastChannel.swift
[80/113] Compiling NIO NIOAny.swift
[81/113] Compiling NIO NonBlockingFileIO.swift
[82/113] Compiling NIO PendingDatagramWritesManager.swift
[83/113] Compiling NIO PendingWritesManager.swift
[84/113] Compiling NIO PriorityQueue.swift
[85/113] Compiling NIO Heap.swift
[86/113] Compiling NIO IO.swift
[87/113] Compiling NIO IOData.swift
[88/113] Compiling NIO IntegerTypes.swift
[89/113] Compiling NIO Interfaces.swift
[90/113] Compiling NIO Linux.swift
[91/113] Compiling NIO LinuxCPUSet.swift
[92/113] Compiling NIO ChannelPipeline.swift
[93/113] Compiling NIO CircularBuffer.swift
[94/113] Compiling NIO Codec.swift
[95/113] Compiling NIO CompositeError.swift
[106/113] Emitting module URLFormat
[107/113] Compiling URLFormat URLFormat.swift
[108/114] Compiling NIO SocketChannel.swift
[109/114] Compiling NIO SocketOptionProvider.swift
[110/114] Compiling NIO System.swift
[111/114] Compiling NIO Thread.swift
[112/114] Compiling NIO TypeAssistedChannelHandler.swift
[113/114] Compiling NIO Utilities.swift
[116/124] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[117/124] Compiling NIOHTTP1 HTTPResponseCompressor.swift
[118/124] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[119/125] Compiling NIOHTTP1 HTTPEncoder.swift
[120/125] Compiling NIOHTTP1 ByteCollectionUtils.swift
[121/125] Compiling NIOHTTP1 HTTPDecoder.swift
[122/125] Emitting module NIOHTTP1
[123/125] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[124/125] Compiling NIOHTTP1 HTTPTypes.swift
[125/125] Compiling NIOHTTP1 HTTPUpgradeHandler.swift
[127/130] 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' 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: 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' 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: 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' 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: 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' 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: 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' 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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
[128/130] 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: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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[129/130] Compiling SwiftNIOMock Router.swift
[130/130] 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/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: 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' 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: 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' 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: 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' 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: 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' 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: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
BUILD FAILURE 6.1 linux