Build Information
Failed to build GoogleSignIn with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-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: v0.0.5
Cloned https://github.com/darrarski/GoogleSignIn-Swift.git
Revision (git rev-parse @):
SUCCESS checkout https://github.com/darrarski/GoogleSignIn-Swift.git at v0.0.5
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-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
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling GoogleSignIn Config.swift
[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())
^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux