The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build EazyRestClient, reference main (6b26ce), with Swift 5.10 for Linux on 7 May 2025 06:40:50 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nissaba/EasyRestClient.git
Reference: main
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/nissaba/EasyRestClient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6b26ce4 removed swiftformat action
Cloned https://github.com/nissaba/EasyRestClient.git
Revision (git rev-parse @):
6b26ce4ddd0268b08fb0a9235a70cbd675e47352
SUCCESS checkout https://github.com/nissaba/EasyRestClient.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/nissaba/EasyRestClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:616ef225d0085997f26355ad9695b1159b91f6187a43f9ff135cb59d096bc97d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling EazyRestClient EasyRestError.swift
[4/11] Compiling EazyRestClient EasyRestDefaultResponse.swift
[5/11] Compiling EazyRestClient Decodable+EasyRest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/11] Compiling EazyRestClient EasyRestClient.swift
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:49:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(baseURL: String, session: URLSession = .shared) {
                                          ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:49:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(baseURL: String, session: URLSession = .shared) {
                                                       ~^~~~~~
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:141:17: error: cannot find type 'URLRequest' in scope
    ) throws -> URLRequest {
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:67:25: error: cannot find type 'URLRequest' in scope
        let urlRequest: URLRequest
                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:77:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: urlRequest) { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:88:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            guard (200..<300).contains(http.statusCode) else {
                                       ~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:123:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, response) = try await session.data(for: urlRequest)
                                         ~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:127:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            throw EazyRestError.serverError((response as? HTTPURLResponse)?.statusCode ?? -1)
                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:154:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: url)
                         ^~~~~~~~~~
[7/11] Emitting module EazyRestClient
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:49:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(baseURL: String, session: URLSession = .shared) {
                                          ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:49:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(baseURL: String, session: URLSession = .shared) {
                                                       ~^~~~~~
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:141:17: error: cannot find type 'URLRequest' in scope
    ) throws -> URLRequest {
                ^~~~~~~~~~
[8/11] Compiling EazyRestClient EazyRestRequest.swift
[9/11] Compiling EazyRestClient EazyRestRequest+defaults.swift
[10/11] Compiling EazyRestClient EasyRestResponse.swift
[11/11] Compiling EazyRestClient HTTPMethods.swift
error: fatalError
BUILD FAILURE 5.10 linux