The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NetworkKit with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-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/cs4alhaider/NetworkKit.git
Reference: master
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/cs4alhaider/NetworkKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8fa2cf2 Update README.md
Cloned https://github.com/cs4alhaider/NetworkKit.git
Revision (git rev-parse @):
8fa2cf2b83833e188bc8ca820296f9679f1bbf54
SUCCESS checkout https://github.com/cs4alhaider/NetworkKit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/cs4alhaider/NetworkKit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/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/20] Emitting module NetworkKit
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration { get }
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration {
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:249:52: error: cannot find type 'URLRequest' in scope
    private func urlRequest(endpoint: Endpoint) -> URLRequest {
                                                   ^~~~~~~~~~
[4/22] Compiling NetworkKit ApiError.swift
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration { get }
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration {
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:102:10: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        .default
        ~^~~~~~~
[5/22] Compiling NetworkKit Empty.swift
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration { get }
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration {
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:102:10: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        .default
        ~^~~~~~~
[6/22] Compiling NetworkKit Endpoint.swift
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration { get }
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration {
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:102:10: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        .default
        ~^~~~~~~
[7/22] Compiling NetworkKit FileError.swift
[8/22] Compiling NetworkKit FileExtension.swift
[9/22] Compiling NetworkKit HTTPMethod.swift
[10/22] Compiling NetworkKit NetworkKit.swift
[11/22] Compiling NetworkKit Extension+URL.swift
[12/22] Compiling NetworkKit Extensions.swift
[13/22] Compiling NetworkKit Extension+Encodable.swift
[14/22] Compiling NetworkKit Extension+Error.swift
[15/22] Compiling NetworkKit Extension+String.swift
[16/22] Compiling NetworkKit Extension+Array.swift
[17/22] Compiling NetworkKit Extension+Collection.swift
[18/22] Compiling NetworkKit Extension+Dictionary.swift
[19/22] Compiling NetworkKit NetworkService.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:249:52: error: cannot find type 'URLRequest' in scope
    private func urlRequest(endpoint: Endpoint) -> URLRequest {
                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:81:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let session = URLSession(configuration: endpoint.session)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:103:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            guard Array(200..<300).contains(response.statusCode) else {
                                            ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:250:22: error: cannot find type 'URLRequest' in scope
        var request: URLRequest!
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:252:23: error: cannot find 'URLRequest' in scope
            request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:254:23: error: cannot find 'URLRequest' in scope
            request = URLRequest(url: urlWith(url: endpoint.url))
                      ^~~~~~~~~~
[20/22] Compiling NetworkKit Path.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:249:52: error: cannot find type 'URLRequest' in scope
    private func urlRequest(endpoint: Endpoint) -> URLRequest {
                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:81:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let session = URLSession(configuration: endpoint.session)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:103:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            guard Array(200..<300).contains(response.statusCode) else {
                                            ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:250:22: error: cannot find type 'URLRequest' in scope
        var request: URLRequest!
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:252:23: error: cannot find 'URLRequest' in scope
            request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:254:23: error: cannot find 'URLRequest' in scope
            request = URLRequest(url: urlWith(url: endpoint.url))
                      ^~~~~~~~~~
[21/22] Compiling NetworkKit Router.swift
[22/22] Compiling NetworkKit Typealias.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling NetworkKit Path.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Compiling NetworkKit ApiError.swift
[4/7] Compiling NetworkKit Empty.swift
[5/7] Emitting module NetworkKit
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration { get }
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration {
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:249:52: error: cannot find type 'URLRequest' in scope
    private func urlRequest(endpoint: Endpoint) -> URLRequest {
                                                   ^~~~~~~~~~
[6/7] Compiling NetworkKit Endpoint.swift
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration { get }
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSessionConfiguration {
                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:102:10: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        .default
        ~^~~~~~~
[7/7] Compiling NetworkKit NetworkService.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:249:52: error: cannot find type 'URLRequest' in scope
    private func urlRequest(endpoint: Endpoint) -> URLRequest {
                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:81:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let session = URLSession(configuration: endpoint.session)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:103:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            guard Array(200..<300).contains(response.statusCode) else {
                                            ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:250:22: error: cannot find type 'URLRequest' in scope
        var request: URLRequest!
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:252:23: error: cannot find 'URLRequest' in scope
            request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:254:23: error: cannot find 'URLRequest' in scope
            request = URLRequest(url: urlWith(url: endpoint.url))
                      ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1