The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build RestEssentials with Swift 5.8 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.41.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sean7512/RestEssentials.git
Reference: 6.0.1
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/sean7512/RestEssentials
 * tag               6.0.1      -> FETCH_HEAD
HEAD is now at fb20a36 remove deprecated calls for network activity ui
Cloned https://github.com/sean7512/RestEssentials.git
Revision (git rev-parse @):
fb20a36735ac7fb3c8020c6f66b49095d4c708d2
SUCCESS checkout https://github.com/sean7512/RestEssentials.git at 6.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  $workDir
https://github.com/sean7512/RestEssentials.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/RestEssentialsTests/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/RestEssentials/Info.plist
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/4] Compiling RestEssentials Deserializer.swift
[2/4] Emitting module RestEssentials
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:16:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    case unexpectedStatusCode(Int, HTTPURLResponse, Data)
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:21:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    case badResponse(URLResponse, Data)
                     ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:27:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    case malformedResponse(HTTPURLResponse, Data, Error)
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:52:41: error: cannot find type 'URLSessionDelegate' in scope
public class RestController : NSObject, URLSessionDelegate {
                                        ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:65:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:106:142: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
                                                                                                                                  ~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:106:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:106:73: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:115:147: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func dataTask(relativePath: String?, httpMethod: String, accept: String, payload: Data?, options: RestOptions) async throws -> (Data, HTTPURLResponse) {
                                                                                                                                                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[3/4] Compiling RestEssentials JSON.swift
/host/spi-builder-workspace/Sources/RestEssentials/JSON.swift:27:35: error: value of type 'AnyObject' has no member 'description'
        return (raw as AnyObject).description
               ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
[4/4] Compiling RestEssentials RestController.swift
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:16:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    case unexpectedStatusCode(Int, HTTPURLResponse, Data)
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:21:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    case badResponse(URLResponse, Data)
                     ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:27:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    case malformedResponse(HTTPURLResponse, Data, Error)
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:52:41: error: cannot find type 'URLSessionDelegate' in scope
public class RestController : NSObject, URLSessionDelegate {
                                        ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:65:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:106:142: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
                                                                                                                                  ~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:106:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:106:73: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:115:147: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func dataTask(relativePath: String?, httpMethod: String, accept: String, payload: Data?, options: RestOptions) async throws -> (Data, HTTPURLResponse) {
                                                                                                                                                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:79:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        self.session = URLSession.shared
                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:102:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        restController.session = URLSession(configuration: URLSessionConfiguration.default, delegate: restController, delegateQueue: nil)
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:102:84: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        restController.session = URLSession(configuration: URLSessionConfiguration.default, delegate: restController, delegateQueue: nil)
                                                           ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:102:134: error: 'nil' requires a contextual type
        restController.session = URLSession(configuration: URLSessionConfiguration.default, delegate: restController, delegateQueue: nil)
                                                                                                                                     ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:107:93: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
        if(acceptSelfSignedCertificate && challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust && challenge.protectionSpace.host == url.host) {
                                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:107:53: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
        if(acceptSelfSignedCertificate && challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust && challenge.protectionSpace.host == url.host) {
                                          ~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:107:143: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
        if(acceptSelfSignedCertificate && challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust && challenge.protectionSpace.host == url.host) {
                                                                                                                                    ~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:108:30: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
            let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
                             ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:108:61: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
            let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
                                                  ~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:109:32: error: cannot infer contextual base in reference to member 'useCredential'
            completionHandler(.useCredential, credential);
                              ~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:111:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
            completionHandler(.performDefaultHandling, nil)
                              ~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:111:56: error: 'nil' requires a contextual type
            completionHandler(.performDefaultHandling, nil)
                                                       ^
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:123:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: restURL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: options.requestTimeoutSeconds)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:123:62: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
        var request = URLRequest(url: restURL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: options.requestTimeoutSeconds)
                                                            ~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestEssentials/RestController.swift:144:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, response) = try await session.data(for: request)
                                         ~~~~~~~ ^~~~
BUILD FAILURE 5.8 linux