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 0.0.1 (003b5c), with Swift 6.1 for Linux on 25 Apr 2025 13:05:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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: 0.0.1
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
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at 003b5c5 updated README
Cloned https://github.com/ilyapuchka/SwiftNIOMock.git
Revision (git rev-parse @):
003b5c59e7a6ea414953f018c5d5d763f3877751
SUCCESS checkout https://github.com/ilyapuchka/SwiftNIOMock.git at 0.0.1
========================================
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"
    }
  ],
  "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"
      ],
      "product_memberships" : [
        "SwiftNIOMock"
      ],
      "sources" : [
        "Server.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-nio.git
[1/75431] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (5.32s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (6.06s)
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 (1.29s)
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 (2.17s)
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
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
Building for debugging...
[0/13] Write sources
[5/13] Compiling CNIOZlib empty.c
[6/13] Compiling CNIODarwin shim.c
[7/13] Compiling CNIOSHA1 c_nio_sha1.c
[8/13] Compiling CNIOLinux shim.c
[9/13] Compiling CNIOHTTPParser c_nio_http_parser.c
[10/13] Compiling CNIOLinux ifaddrs-android.c
[11/13] Write swift-version-24593BA9C3E375BF.txt
[12/16] Compiling c-atomics.c
[14/19] Emitting module NIOPriorityQueue
[15/19] Compiling NIOPriorityQueue Heap.swift
[16/19] Compiling NIOPriorityQueue PriorityQueue.swift
[18/20] Compiling NIOConcurrencyHelpers atomics.swift
[19/20] Emitting module NIOConcurrencyHelpers
[20/20] Compiling NIOConcurrencyHelpers lock.swift
[22/71] Emitting module NIO
[23/77] Compiling NIO Heap.swift
[24/77] Compiling NIO IO.swift
[25/77] Compiling NIO IOData.swift
[26/77] Compiling NIO IntegerTypes.swift
[27/77] Compiling NIO Interfaces.swift
[28/77] Compiling NIO Linux.swift
[29/77] Compiling NIO LinuxCPUSet.swift
[30/77] Compiling NIO RecvByteBufferAllocator.swift
[31/77] Compiling NIO Resolver.swift
[32/77] Compiling NIO Selectable.swift
[33/77] Compiling NIO Selector.swift
[34/77] Compiling NIO ServerSocket.swift
[35/77] Compiling NIO Socket.swift
[36/77] Compiling NIO SocketAddresses.swift
[37/77] Compiling NIO MarkedCircularBuffer.swift
[38/77] Compiling NIO MulticastChannel.swift
[39/77] Compiling NIO NIOAny.swift
[40/77] Compiling NIO NonBlockingFileIO.swift
[41/77] Compiling NIO PendingDatagramWritesManager.swift
[42/77] Compiling NIO PendingWritesManager.swift
[43/77] Compiling NIO PriorityQueue.swift
[44/77] Compiling NIO ChannelPipeline.swift
[45/77] Compiling NIO CircularBuffer.swift
[46/77] Compiling NIO Codec.swift
[47/77] Compiling NIO CompositeError.swift
[48/77] Compiling NIO ContiguousCollection.swift
[49/77] Compiling NIO DeadChannel.swift
[50/77] Compiling NIO Embedded.swift
[51/77] Compiling NIO ByteBuffer-int.swift
[52/77] Compiling NIO ByteBuffer-views.swift
[53/77] Compiling NIO Channel.swift
[54/77] Compiling NIO ChannelHandler.swift
[55/77] Compiling NIO ChannelHandlers.swift
[56/77] Compiling NIO ChannelInvoker.swift
[57/77] Compiling NIO ChannelOption.swift
[58/77] Compiling NIO EventLoop.swift
[59/77] Compiling NIO EventLoopFuture.swift
[60/77] Compiling NIO FileDescriptor.swift
[61/77] Compiling NIO FileHandle.swift
[62/77] Compiling NIO FileRegion.swift
[63/77] Compiling NIO GetaddrinfoResolver.swift
[64/77] Compiling NIO HappyEyeballs.swift
[65/77] Compiling NIO AddressedEnvelope.swift
[66/77] Compiling NIO BaseSocket.swift
[67/77] Compiling NIO BaseSocketChannel.swift
[68/77] Compiling NIO BlockingIOThreadPool.swift
[69/77] Compiling NIO Bootstrap.swift
[70/77] Compiling NIO ByteBuffer-aux.swift
[71/77] Compiling NIO ByteBuffer-core.swift
[72/77] Compiling NIO SocketChannel.swift
[73/77] Compiling NIO SocketOptionProvider.swift
[74/77] Compiling NIO System.swift
[75/77] Compiling NIO Thread.swift
[76/77] Compiling NIO TypeAssistedChannelHandler.swift
[77/77] Compiling NIO Utilities.swift
[79/87] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[80/88] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[81/88] Compiling NIOHTTP1 HTTPEncoder.swift
[82/88] Compiling NIOHTTP1 HTTPResponseCompressor.swift
[83/88] Compiling NIOHTTP1 HTTPUpgradeHandler.swift
[84/88] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[85/88] Compiling NIOHTTP1 HTTPTypes.swift
[86/88] Emitting module NIOHTTP1
[87/88] Compiling NIOHTTP1 ByteCollectionUtils.swift
[88/88] Compiling NIOHTTP1 HTTPDecoder.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[90/91] Emitting module SwiftNIOMock
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:213:11: error: cannot find type 'URLRequest' in scope
211 | }
212 |
213 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
214 |     public init(_ request: Server.HTTPHandler.Request) {
215 |         let url = URL(string: request.head.uri)!
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:245:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | /// Middleware that allows to redirect incomming request and intercept responses
244 | public func redirect(
245 |     session: URLSession = URLSession.shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
247 |     response intercept: @escaping (Server.HTTPHandler.Response) -> Void = { _ in }
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:245:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
243 | /// Middleware that allows to redirect incomming request and intercept responses
244 | public func redirect(
245 |     session: URLSession = URLSession.shared,
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
246 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
247 |     response intercept: @escaping (Server.HTTPHandler.Response) -> Void = { _ in }
[91/91] Compiling SwiftNIOMock Server.swift
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:213:11: error: cannot find type 'URLRequest' in scope
211 | }
212 |
213 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
214 |     public init(_ request: Server.HTTPHandler.Request) {
215 |         let url = URL(string: request.head.uri)!
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:245:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | /// Middleware that allows to redirect incomming request and intercept responses
244 | public func redirect(
245 |     session: URLSession = URLSession.shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
247 |     response intercept: @escaping (Server.HTTPHandler.Response) -> Void = { _ in }
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:245:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
243 | /// Middleware that allows to redirect incomming request and intercept responses
244 | public func redirect(
245 |     session: URLSession = URLSession.shared,
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
246 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
247 |     response intercept: @escaping (Server.HTTPHandler.Response) -> Void = { _ in }
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:250:24: error: cannot find 'URLRequest' in scope
248 | ) -> Middleware {
249 |     return { request, response, next in
250 |         var redirect = URLRequest(redirect(request))
    |                        `- error: cannot find 'URLRequest' in scope
251 |         redirect.cachePolicy = .reloadIgnoringLocalAndRemoteCacheData
252 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/7] Compiling NIOConcurrencyHelpers lock.swift
[3/7] Emitting module NIOConcurrencyHelpers
[4/7] Compiling NIOConcurrencyHelpers atomics.swift
[5/7] Compiling NIOPriorityQueue PriorityQueue.swift
[6/7] Emitting module NIOPriorityQueue
[7/7] Compiling NIOPriorityQueue Heap.swift
[10/59] Compiling NIO ByteBuffer-int.swift
[11/59] Compiling NIO ByteBuffer-views.swift
[12/59] Compiling NIO Channel.swift
[13/59] Compiling NIO ChannelHandler.swift
[14/59] Compiling NIO ChannelHandlers.swift
[15/59] Compiling NIO ChannelInvoker.swift
[16/59] Compiling NIO ChannelOption.swift
[17/65] Compiling NIO MarkedCircularBuffer.swift
[18/65] Compiling NIO MulticastChannel.swift
[19/65] Compiling NIO NIOAny.swift
[20/65] Compiling NIO NonBlockingFileIO.swift
[21/65] Compiling NIO PendingDatagramWritesManager.swift
[22/65] Compiling NIO PendingWritesManager.swift
[23/65] Compiling NIO PriorityQueue.swift
[24/65] Compiling NIO Heap.swift
[25/65] Compiling NIO IO.swift
[26/65] Compiling NIO IOData.swift
[27/65] Compiling NIO IntegerTypes.swift
[28/65] Compiling NIO Interfaces.swift
[29/65] Compiling NIO Linux.swift
[30/65] Compiling NIO LinuxCPUSet.swift
[31/65] Emitting module NIO
[32/65] Compiling NIO RecvByteBufferAllocator.swift
[33/65] Compiling NIO Resolver.swift
[34/65] Compiling NIO Selectable.swift
[35/65] Compiling NIO Selector.swift
[36/65] Compiling NIO ServerSocket.swift
[37/65] Compiling NIO Socket.swift
[38/65] Compiling NIO SocketAddresses.swift
[39/65] Compiling NIO ChannelPipeline.swift
[40/65] Compiling NIO CircularBuffer.swift
[41/65] Compiling NIO Codec.swift
[42/65] Compiling NIO CompositeError.swift
[43/65] Compiling NIO ContiguousCollection.swift
[44/65] Compiling NIO DeadChannel.swift
[45/65] Compiling NIO Embedded.swift
[46/65] Compiling NIO EventLoop.swift
[47/65] Compiling NIO EventLoopFuture.swift
[48/65] Compiling NIO FileDescriptor.swift
[49/65] Compiling NIO FileHandle.swift
[50/65] Compiling NIO FileRegion.swift
[51/65] Compiling NIO GetaddrinfoResolver.swift
[52/65] Compiling NIO HappyEyeballs.swift
[53/65] Compiling NIO SocketChannel.swift
[54/65] Compiling NIO SocketOptionProvider.swift
[55/65] Compiling NIO System.swift
[56/65] Compiling NIO Thread.swift
[57/65] Compiling NIO TypeAssistedChannelHandler.swift
[58/65] Compiling NIO Utilities.swift
[59/65] Compiling NIO AddressedEnvelope.swift
[60/65] Compiling NIO BaseSocket.swift
[61/65] Compiling NIO BaseSocketChannel.swift
[62/65] Compiling NIO BlockingIOThreadPool.swift
[63/65] Compiling NIO Bootstrap.swift
[64/65] Compiling NIO ByteBuffer-aux.swift
[65/65] Compiling NIO ByteBuffer-core.swift
[67/75] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[68/76] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[69/76] Compiling NIOHTTP1 HTTPUpgradeHandler.swift
[70/76] Compiling NIOHTTP1 HTTPEncoder.swift
[71/76] Compiling NIOHTTP1 HTTPResponseCompressor.swift
[72/76] Emitting module NIOHTTP1
[73/76] Compiling NIOHTTP1 ByteCollectionUtils.swift
[74/76] Compiling NIOHTTP1 HTTPDecoder.swift
[75/76] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[76/76] Compiling NIOHTTP1 HTTPTypes.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[78/79] Emitting module SwiftNIOMock
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:213:11: error: cannot find type 'URLRequest' in scope
211 | }
212 |
213 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
214 |     public init(_ request: Server.HTTPHandler.Request) {
215 |         let url = URL(string: request.head.uri)!
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:245:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | /// Middleware that allows to redirect incomming request and intercept responses
244 | public func redirect(
245 |     session: URLSession = URLSession.shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
247 |     response intercept: @escaping (Server.HTTPHandler.Response) -> Void = { _ in }
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:245:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
243 | /// Middleware that allows to redirect incomming request and intercept responses
244 | public func redirect(
245 |     session: URLSession = URLSession.shared,
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
246 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
247 |     response intercept: @escaping (Server.HTTPHandler.Response) -> Void = { _ in }
[79/79] Compiling SwiftNIOMock Server.swift
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:213:11: error: cannot find type 'URLRequest' in scope
211 | }
212 |
213 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
214 |     public init(_ request: Server.HTTPHandler.Request) {
215 |         let url = URL(string: request.head.uri)!
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:245:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | /// Middleware that allows to redirect incomming request and intercept responses
244 | public func redirect(
245 |     session: URLSession = URLSession.shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
247 |     response intercept: @escaping (Server.HTTPHandler.Response) -> Void = { _ in }
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:245:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
243 | /// Middleware that allows to redirect incomming request and intercept responses
244 | public func redirect(
245 |     session: URLSession = URLSession.shared,
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
246 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
247 |     response intercept: @escaping (Server.HTTPHandler.Response) -> Void = { _ in }
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:250:24: error: cannot find 'URLRequest' in scope
248 | ) -> Middleware {
249 |     return { request, response, next in
250 |         var redirect = URLRequest(redirect(request))
    |                        `- error: cannot find 'URLRequest' in scope
251 |         redirect.cachePolicy = .reloadIgnoringLocalAndRemoteCacheData
252 |
BUILD FAILURE 6.1 linux