The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WiremockClient with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mobileforming/WiremockClient.git
Reference: 3.0.0
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/mobileforming/WiremockClient
 * tag               3.0.0      -> FETCH_HEAD
HEAD is now at 91c3e2b Merge pull request #37 from mobileforming/TR-deployment-target-update
Cloned https://github.com/mobileforming/WiremockClient.git
Revision (git rev-parse @):
91c3e2be7cfef270584c2d822c0886781d29f62d
SUCCESS checkout https://github.com/mobileforming/WiremockClient.git at 3.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/mobileforming/WiremockClient.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/19] Emitting module WiremockClient
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? { get }
                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SynchronousURLSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:11:47: error: cannot find type 'URLRequest' in scope
    func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error>
                                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    var urlSession: SynchronousURLSession = URLSession.shared
                                            ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:91:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? {
                    ^~~~~~~~~~
[4/21] Compiling WiremockClient WiremockClient.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    var urlSession: SynchronousURLSession = URLSession.shared
                                            ~~~~~~~~~~ ^~~~~~
[5/21] Compiling WiremockClient WiremockClientError.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    var urlSession: SynchronousURLSession = URLSession.shared
                                            ~~~~~~~~~~ ^~~~~~
[6/21] Compiling WiremockClient Endpoint.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? { get }
                    ^~~~~~~~~~
[7/21] Compiling WiremockClient NetworkService.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? { get }
                    ^~~~~~~~~~
[8/21] Compiling WiremockClient RequestMethod.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? { get }
                    ^~~~~~~~~~
[9/21] Compiling WiremockClient RequestPattern.swift
[10/21] Compiling WiremockClient ResponseDefinition.swift
[11/21] Compiling WiremockClient MatchCondition.swift
[12/21] Compiling WiremockClient RequestMapping.swift
[13/21] Compiling WiremockClient UrlPattern.swift
[14/21] Compiling WiremockClient DebugOverridable.swift
[15/21] Compiling WiremockClient LoggedRequest.swift
[16/21] Compiling WiremockClient LoggedRequestResponse.swift
[17/21] Compiling WiremockClient MappingsResponse.swift
[18/21] Compiling WiremockClient StubMapping.swift
[19/21] Compiling WiremockClient Transformer.swift
[20/21] Compiling WiremockClient WiremockClientNetworkService.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SynchronousURLSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:11:47: error: cannot find type 'URLRequest' in scope
    func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error>
                                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    var urlSession: SynchronousURLSession = URLSession.shared
                                            ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? { get }
                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:91:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? {
                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:95:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: url)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:15:47: error: cannot find type 'URLRequest' in scope
    func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error> {
                                              ^~~~~~~~~~
[21/21] Compiling WiremockClient WiremockEndpoint.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SynchronousURLSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:11:47: error: cannot find type 'URLRequest' in scope
    func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error>
                                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    var urlSession: SynchronousURLSession = URLSession.shared
                                            ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? { get }
                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:91:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? {
                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:95:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: url)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:15:47: error: cannot find type 'URLRequest' in scope
    func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error> {
                                              ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling WiremockClient WiremockClientNetworkService.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SynchronousURLSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:11:47: error: cannot find type 'URLRequest' in scope
    func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error>
                                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    var urlSession: SynchronousURLSession = URLSession.shared
                                            ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? { get }
                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:15:47: error: cannot find type 'URLRequest' in scope
    func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error> {
                                              ^~~~~~~~~~
[3/9] Compiling WiremockClient RequestMethod.swift
[4/9] Compiling WiremockClient NetworkService.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? { get }
                    ^~~~~~~~~~
[5/9] Compiling WiremockClient Endpoint.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? { get }
                    ^~~~~~~~~~
[6/9] Compiling WiremockClient WiremockEndpoint.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:91:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? {
                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? { get }
                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:95:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: url)
                         ^~~~~~~~~~
[7/9] Compiling WiremockClient WiremockClient.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    var urlSession: SynchronousURLSession = URLSession.shared
                                            ~~~~~~~~~~ ^~~~~~
[8/14] Compiling WiremockClient WiremockClientError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/16] Emitting module WiremockClient
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? { get }
                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SynchronousURLSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:11:47: error: cannot find type 'URLRequest' in scope
    func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error>
                                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    var urlSession: SynchronousURLSession = URLSession.shared
                                            ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:91:21: error: cannot find type 'URLRequest' in scope
    var urlRequest: URLRequest? {
                    ^~~~~~~~~~
[10/17] Compiling WiremockClient MatchCondition.swift
[11/18] Compiling WiremockClient LoggedRequestResponse.swift
[12/18] Compiling WiremockClient RequestMapping.swift
[13/18] Compiling WiremockClient RequestPattern.swift
[14/18] Compiling WiremockClient LoggedRequest.swift
[15/18] Compiling WiremockClient StubMapping.swift
[16/18] Compiling WiremockClient MappingsResponse.swift
[17/18] Compiling WiremockClient Transformer.swift
[18/18] Compiling WiremockClient ResponseDefinition.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1