The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SKWebAPI with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/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/pvzig/SKWebAPI.git
Reference: 4.1.3
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/pvzig/SKWebAPI
 * tag               4.1.3      -> FETCH_HEAD
HEAD is now at b5b303c Merge pull request #13 from NoRespect/slackFormatEscaping
Cloned https://github.com/pvzig/SKWebAPI.git
Revision (git rev-parse @):
b5b303c7e5cdecd587499061a81128ef4d7ed3f1
SUCCESS checkout https://github.com/pvzig/SKWebAPI.git at 4.1.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/pvzig/SKWebAPI.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/SlackKit/SKCore
[1/288] Fetching skcore
Fetched https://github.com/SlackKit/SKCore from cache (0.22s)
Computing version for https://github.com/SlackKit/SKCore
Computed https://github.com/SlackKit/SKCore at 4.1.3 (0.43s)
Creating working copy for https://github.com/SlackKit/SKCore
Working copy of https://github.com/SlackKit/SKCore resolved at 4.1.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/28] Emitting module SKCore
[5/31] Compiling SKCore Action.swift
[6/31] Compiling SKCore Attachment.swift
[7/31] Compiling SKCore AttachmentField.swift
[8/31] Compiling SKCore Bot.swift
[9/31] Compiling SKCore Topic.swift
[10/31] Compiling SKCore User.swift
[11/31] Compiling SKCore UserGroup.swift
[12/31] Compiling SKCore Reaction.swift
[13/31] Compiling SKCore Reply.swift
[14/31] Compiling SKCore Scope.swift
[15/31] Compiling SKCore SlackError.swift
[16/31] Compiling SKCore Team.swift
[17/31] Compiling SKCore TeamIcon.swift
[18/31] Compiling SKCore Channel.swift
[19/31] Compiling SKCore Comment.swift
[20/31] Compiling SKCore CustomProfile.swift
[21/31] Compiling SKCore CustomProfileField.swift
[22/31] Compiling SKCore DoNotDisturbStatus.swift
[23/31] Compiling SKCore Edited.swift
[24/31] Compiling SKCore Event.swift
[25/31] Compiling SKCore Extensions.swift
[26/31] Compiling SKCore File.swift
[27/31] Compiling SKCore History.swift
[28/31] Compiling SKCore Item.swift
[29/31] Compiling SKCore Message.swift
[30/31] Compiling SKCore OAuthConfig.swift
[31/31] Compiling SKCore RTMOptions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[33/36] Compiling SKWebAPI Endpoint.swift
[34/36] Emitting module SKWebAPI
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: .default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
    private let session = URLSession(configuration: .default)
                                                    ~^~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[35/36] Compiling SKWebAPI WebAPI.swift
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: .default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
    private let session = URLSession(configuration: .default)
                                                    ~^~~~~~~
[36/36] Compiling SKWebAPI NetworkInterface.swift
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: .default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
    private let session = URLSession(configuration: .default)
                                                    ~^~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:47:23: error: cannot find 'URLRequest' in scope
        let request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:51:68: error: cannot convert value of type '_' to expected argument type 'Data?'
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:51:84: error: argument type '_' expected to be an instance of a class or class-constrained type
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:63:23: error: cannot find 'URLRequest' in scope
        let request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        var response: URLResponse? = nil
                      ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:69:18: error: cannot assign value of type '_' to type 'Data?'
            data = reqData
                 ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:89:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url:url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:117:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url:url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:126:68: error: cannot convert value of type '_' to expected argument type 'Data?'
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:126:84: error: argument type '_' expected to be an instance of a class or class-constrained type
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:134:56: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let data = data, let response = response as? HTTPURLResponse else {
                                              ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/NetworkInterface.swift:134:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let data = data, let response = response as? HTTPURLResponse else {
                                                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:142:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            switch response.statusCode {
                   ~~~~~~~~ ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Emitting module SKWebAPI
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: .default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
    private let session = URLSession(configuration: .default)
                                                    ~^~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[3/4] Compiling SKWebAPI NetworkInterface.swift
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: .default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
    private let session = URLSession(configuration: .default)
                                                    ~^~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:47:23: error: cannot find 'URLRequest' in scope
        let request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:51:68: error: cannot convert value of type '_' to expected argument type 'Data?'
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:51:84: error: argument type '_' expected to be an instance of a class or class-constrained type
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:63:23: error: cannot find 'URLRequest' in scope
        let request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        var response: URLResponse? = nil
                      ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:69:18: error: cannot assign value of type '_' to type 'Data?'
            data = reqData
                 ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:89:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url:url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:117:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url:url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:126:68: error: cannot convert value of type '_' to expected argument type 'Data?'
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:126:84: error: argument type '_' expected to be an instance of a class or class-constrained type
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:134:56: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let data = data, let response = response as? HTTPURLResponse else {
                                              ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/NetworkInterface.swift:134:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let data = data, let response = response as? HTTPURLResponse else {
                                                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:142:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            switch response.statusCode {
                   ~~~~~~~~ ^~~~~~~~~~
[4/4] Compiling SKWebAPI WebAPI.swift
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: .default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
    private let session = URLSession(configuration: .default)
                                                    ~^~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2