Build Information
Failed to build GoogleSignIn with Swift 5.8 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.25.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
Revision (git rev-parse @):
SUCCESS checkout https://github.com/darrarski/GoogleSignIn-Swift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Building for debugging...
[1/6] Compiling GoogleSignIn Error.swift
[2/6] Compiling GoogleSignIn TokenResponse.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] 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
^
[6/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())
^~~~~~~~~~
BUILD FAILURE 5.8 linux