Build Information
Failed to build SwiftNIOMock, reference 0.0.1 (003b5c
), with Swift 6.0 for Linux on 31 Oct 2024 10:44:10 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.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: 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.0
Building package at path: $PWD
https://github.com/ilyapuchka/SwiftNIOMock.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/apple/swift-nio.git
[1/71097] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (3.92s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.44s)
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.40s)
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 CNIODarwin shim.c
[6/13] Compiling CNIOLinux ifaddrs-android.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 CNIOZlib empty.c
[11/13] Write swift-version-24593BA9C3E375BF.txt
[12/16] Compiling c-atomics.c
[14/19] Compiling NIOPriorityQueue PriorityQueue.swift
[15/19] Compiling NIOPriorityQueue Heap.swift
[16/19] Emitting module NIOPriorityQueue
[17/20] Emitting module NIOConcurrencyHelpers
[18/20] Compiling NIOConcurrencyHelpers lock.swift
[19/20] Compiling NIOConcurrencyHelpers atomics.swift
[22/71] Compiling NIO ByteBuffer-int.swift
[23/71] Compiling NIO ByteBuffer-views.swift
[24/71] Compiling NIO Channel.swift
[25/71] Compiling NIO ChannelHandler.swift
[26/71] Compiling NIO ChannelHandlers.swift
[27/71] Compiling NIO ChannelInvoker.swift
[28/71] Compiling NIO ChannelOption.swift
[29/77] Emitting module NIO
[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 Heap.swift
[38/77] Compiling NIO IO.swift
[39/77] Compiling NIO IOData.swift
[40/77] Compiling NIO IntegerTypes.swift
[41/77] Compiling NIO Interfaces.swift
[42/77] Compiling NIO Linux.swift
[43/77] Compiling NIO LinuxCPUSet.swift
[44/77] Compiling NIO EventLoop.swift
[45/77] Compiling NIO EventLoopFuture.swift
[46/77] Compiling NIO FileDescriptor.swift
[47/77] Compiling NIO FileHandle.swift
[48/77] Compiling NIO FileRegion.swift
[49/77] Compiling NIO GetaddrinfoResolver.swift
[50/77] Compiling NIO HappyEyeballs.swift
[51/77] Compiling NIO MarkedCircularBuffer.swift
[52/77] Compiling NIO MulticastChannel.swift
[53/77] Compiling NIO NIOAny.swift
[54/77] Compiling NIO NonBlockingFileIO.swift
[55/77] Compiling NIO PendingDatagramWritesManager.swift
[56/77] Compiling NIO PendingWritesManager.swift
[57/77] Compiling NIO PriorityQueue.swift
[58/77] Compiling NIO ChannelPipeline.swift
[59/77] Compiling NIO CircularBuffer.swift
[60/77] Compiling NIO Codec.swift
[61/77] Compiling NIO CompositeError.swift
[62/77] Compiling NIO ContiguousCollection.swift
[63/77] Compiling NIO DeadChannel.swift
[64/77] Compiling NIO Embedded.swift
[65/77] Compiling NIO SocketChannel.swift
[66/77] Compiling NIO SocketOptionProvider.swift
[67/77] Compiling NIO System.swift
[68/77] Compiling NIO Thread.swift
[69/77] Compiling NIO TypeAssistedChannelHandler.swift
[70/77] Compiling NIO Utilities.swift
[71/77] Compiling NIO AddressedEnvelope.swift
[72/77] Compiling NIO BaseSocket.swift
[73/77] Compiling NIO BaseSocketChannel.swift
[74/77] Compiling NIO BlockingIOThreadPool.swift
[75/77] Compiling NIO Bootstrap.swift
[76/77] Compiling NIO ByteBuffer-aux.swift
[77/77] Compiling NIO ByteBuffer-core.swift
[79/87] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[80/88] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[81/88] Compiling NIOHTTP1 HTTPUpgradeHandler.swift
[82/88] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[83/88] Compiling NIOHTTP1 HTTPResponseCompressor.swift
[84/88] Compiling NIOHTTP1 HTTPTypes.swift
[85/88] Compiling NIOHTTP1 HTTPEncoder.swift
[86/88] Compiling NIOHTTP1 ByteCollectionUtils.swift
[87/88] Compiling NIOHTTP1 HTTPDecoder.swift
[88/88] Emitting module NIOHTTP1
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 |
BUILD FAILURE 6.0 linux