The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GoogleSignIn 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/darrarski/GoogleSignIn-Swift.git
Reference: master
Cloned https://github.com/darrarski/GoogleSignIn-Swift.git into spi-builder-workspace
SUCCESS checkout https://github.com/darrarski/GoogleSignIn-Swift.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...
[1/6] Compiling GoogleSignIn TokenResponse.swift
[2/6] Compiling GoogleSignIn Error.swift
[3/6] Compiling GoogleSignIn URLSessionProtocol.swift
/host/spi-builder-workspace/Sources/GoogleSignIn/URLSessionProtocol.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: URLSessionProtocol {}
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleSignIn/URLSessionProtocol.swift:5:23: error: cannot find type 'URLRequest' in scope
        with request: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleSignIn/URLSessionProtocol.swift:6:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        completionHandler: @escaping (Data?, URLResponse?, Swift.Error?) -> Void
                                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/GoogleSignIn/URLSessionProtocol.swift:7:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    ) -> URLSessionDataTask
         ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
[4/6] Compiling GoogleSignIn Config.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Compiling GoogleSignIn Controller.swift
/host/spi-builder-workspace/Sources/GoogleSignIn/URLSessionProtocol.swift:5:23: error: cannot find type 'URLRequest' in scope
        with request: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleSignIn/Controller.swift:57:57: error: cannot find type 'URLRequest' in scope
    private func makeTokenRequest(with code: String) -> URLRequest {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleSignIn/Controller.swift:58:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: makeTokenURL())
                      ^~~~~~~~~~
[6/6] Emitting module GoogleSignIn
/host/spi-builder-workspace/Sources/GoogleSignIn/URLSessionProtocol.swift:5:23: error: cannot find type 'URLRequest' in scope
        with request: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleSignIn/Controller.swift:57:57: error: cannot find type 'URLRequest' in scope
    private func makeTokenRequest(with code: String) -> URLRequest {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleSignIn/URLSessionProtocol.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: URLSessionProtocol {}
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleSignIn/URLSessionProtocol.swift:6:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        completionHandler: @escaping (Data?, URLResponse?, Swift.Error?) -> Void
                                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/GoogleSignIn/URLSessionProtocol.swift:7:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    ) -> URLSessionDataTask
         ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2