The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WiremockClient with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mobileforming/WiremockClient.git
Reference: master
Cloned https://github.com/mobileforming/WiremockClient.git into spi-builder-workspace
SUCCESS checkout https://github.com/mobileforming/WiremockClient.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/17] 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? {
                    ^~~~~~~~~~
[2/19] 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
                                            ~~~~~~~~~~ ^~~~~~
[3/19] 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
                                            ~~~~~~~~~~ ^~~~~~
[4/19] 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 }
                    ^~~~~~~~~~
[5/19] 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 }
                    ^~~~~~~~~~
[6/19] 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 }
                    ^~~~~~~~~~
[7/19] Compiling WiremockClient UrlPattern.swift
[8/19] Compiling WiremockClient DebugOverridable.swift
[9/19] Compiling WiremockClient StubMapping.swift
[10/19] Compiling WiremockClient Transformer.swift
[11/19] Compiling WiremockClient RequestPattern.swift
[12/19] Compiling WiremockClient ResponseDefinition.swift
[13/19] 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> {
                                              ^~~~~~~~~~
[14/19] 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> {
                                              ^~~~~~~~~~
[15/19] Compiling WiremockClient LoggedRequest.swift
[16/19] Compiling WiremockClient LoggedRequestResponse.swift
[17/19] Compiling WiremockClient MappingsResponse.swift
[18/19] Compiling WiremockClient MatchCondition.swift
[19/19] Compiling WiremockClient RequestMapping.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2