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 FaunaDB with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fauna/faunadb-swift.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/fauna/faunadb-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 708b6cd Move from master to main
Cloned https://github.com/fauna/faunadb-swift.git
Revision (git rev-parse @):
708b6cd64a6bdbf5c4ccc4be4480d9769625cd1f
SUCCESS checkout https://github.com/fauna/faunadb-swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/fauna/faunadb-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/18] Emitting module FaunaDB
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:17: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/FaunaDB/Client.swift:29:87: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public convenience init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil) {
                                                                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:36:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil, lastSeenTxn: AtomicInt) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:125:57: error: cannot find type 'URLRequest' in scope
    private func httpRequestFor(_ expr: Expr) throws -> URLRequest {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:142:32: error: cannot find type 'URLRequest' in scope
    private func send(request: URLRequest,
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:173:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func handle(response: URLResponse?, data: Data?,
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:9:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func errorFor(response: HTTPURLResponse, json: Data) -> FaunaError? {
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[4/20] Compiling FaunaDB Field.swift
[5/20] Compiling FaunaDB HighPrecisionTime.swift
[6/20] Compiling FaunaDB LanguageExtensions.swift
/host/spi-builder-workspace/Sources/FaunaDB/LanguageExtensions.swift:24:16: error: cannot find 'CFGetTypeID' in scope
        return CFGetTypeID(self) == CFBooleanGetTypeID()
               ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/LanguageExtensions.swift:24:37: error: cannot find 'CFBooleanGetTypeID' in scope
        return CFGetTypeID(self) == CFBooleanGetTypeID()
                                    ^~~~~~~~~~~~~~~~~~
[7/20] Compiling FaunaDB Latch.swift
/host/spi-builder-workspace/Sources/FaunaDB/LanguageExtensions.swift:24:16: error: cannot find 'CFGetTypeID' in scope
        return CFGetTypeID(self) == CFBooleanGetTypeID()
               ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/LanguageExtensions.swift:24:37: error: cannot find 'CFBooleanGetTypeID' in scope
        return CFGetTypeID(self) == CFBooleanGetTypeID()
                                    ^~~~~~~~~~~~~~~~~~
[8/20] Compiling FaunaDB Errors.swift
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:9:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func errorFor(response: HTTPURLResponse, json: Data) -> FaunaError? {
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:10:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        guard !(200 ..< 300 ~= response.statusCode) else { return nil }
                               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:14:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                status: response.statusCode,
                        ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:20:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            status: response.statusCode,
                    ~~~~~~~~ ^~~~~~~~~~
[9/20] Compiling FaunaDB Expr.swift
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:9:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func errorFor(response: HTTPURLResponse, json: Data) -> FaunaError? {
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:10:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        guard !(200 ..< 300 ~= response.statusCode) else { return nil }
                               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:14:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                status: response.statusCode,
                        ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:20:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            status: response.statusCode,
                    ~~~~~~~~ ^~~~~~~~~~
[10/20] Compiling FaunaDB Value+Traversal.swift
[11/20] Compiling FaunaDB Value.swift
[12/20] Compiling FaunaDB Path.swift
[13/20] Compiling FaunaDB Query.swift
[14/20] Compiling FaunaDB ISO8601.swift
[15/20] Compiling FaunaDB JSON.swift
[16/20] Compiling FaunaDB QueryResult.swift
[17/20] Compiling FaunaDB Try.swift
[18/20] Compiling FaunaDB AtomicInt.swift
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:17: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/FaunaDB/Client.swift:29:87: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public convenience init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil) {
                                                                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:36:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil, lastSeenTxn: AtomicInt) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:125:57: error: cannot find type 'URLRequest' in scope
    private func httpRequestFor(_ expr: Expr) throws -> URLRequest {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:142:32: error: cannot find type 'URLRequest' in scope
    private func send(request: URLRequest,
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:173:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func handle(response: URLResponse?, data: Data?,
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:44:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
            self.session = URLSession(configuration: URLSessionConfiguration.default)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:44:78: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            self.session = URLSession(configuration: URLSessionConfiguration.default)
                                                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:126:23: error: cannot find 'NSMutableURLRequest' in scope
        let request = NSMutableURLRequest(url: endpoint)
                      ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:66: error: cannot infer type of closure parameter 'data' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:72: error: cannot infer type of closure parameter 'response' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                       ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:82: error: cannot infer type of closure parameter 'error' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:150:39: error: argument type '_' expected to be an instance of a class or class-constrained type
                this.handle(response: response,
                                      ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:151:35: error: cannot convert value of type '_' to expected argument type 'Data?'
                            data: data,
                                  ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:177:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse, let data = data else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:177:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse, let data = data else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:182:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
        if let txnHeaderValue = response.allHeaderFields["X-Txn-Time"] as? String, let txnTime = Int(txnHeaderValue) {
                                ~~~~~~~~ ^~~~~~~~~~~~~~~
[19/20] Compiling FaunaDB Client.swift
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:17: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/FaunaDB/Client.swift:29:87: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public convenience init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil) {
                                                                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:36:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil, lastSeenTxn: AtomicInt) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:125:57: error: cannot find type 'URLRequest' in scope
    private func httpRequestFor(_ expr: Expr) throws -> URLRequest {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:142:32: error: cannot find type 'URLRequest' in scope
    private func send(request: URLRequest,
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:173:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func handle(response: URLResponse?, data: Data?,
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:44:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
            self.session = URLSession(configuration: URLSessionConfiguration.default)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:44:78: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            self.session = URLSession(configuration: URLSessionConfiguration.default)
                                                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:126:23: error: cannot find 'NSMutableURLRequest' in scope
        let request = NSMutableURLRequest(url: endpoint)
                      ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:66: error: cannot infer type of closure parameter 'data' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:72: error: cannot infer type of closure parameter 'response' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                       ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:82: error: cannot infer type of closure parameter 'error' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:150:39: error: argument type '_' expected to be an instance of a class or class-constrained type
                this.handle(response: response,
                                      ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:151:35: error: cannot convert value of type '_' to expected argument type 'Data?'
                            data: data,
                                  ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:177:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse, let data = data else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:177:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse, let data = data else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:182:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
        if let txnHeaderValue = response.allHeaderFields["X-Txn-Time"] as? String, let txnTime = Int(txnHeaderValue) {
                                ~~~~~~~~ ^~~~~~~~~~~~~~~
[20/20] Compiling FaunaDB Codec.swift
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:17: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/FaunaDB/Client.swift:29:87: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public convenience init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil) {
                                                                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:36:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil, lastSeenTxn: AtomicInt) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:125:57: error: cannot find type 'URLRequest' in scope
    private func httpRequestFor(_ expr: Expr) throws -> URLRequest {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:142:32: error: cannot find type 'URLRequest' in scope
    private func send(request: URLRequest,
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:173:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func handle(response: URLResponse?, data: Data?,
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:44:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
            self.session = URLSession(configuration: URLSessionConfiguration.default)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:44:78: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            self.session = URLSession(configuration: URLSessionConfiguration.default)
                                                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:126:23: error: cannot find 'NSMutableURLRequest' in scope
        let request = NSMutableURLRequest(url: endpoint)
                      ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:66: error: cannot infer type of closure parameter 'data' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:72: error: cannot infer type of closure parameter 'response' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                       ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:82: error: cannot infer type of closure parameter 'error' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:150:39: error: argument type '_' expected to be an instance of a class or class-constrained type
                this.handle(response: response,
                                      ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:151:35: error: cannot convert value of type '_' to expected argument type 'Data?'
                            data: data,
                                  ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:177:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse, let data = data else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:177:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse, let data = data else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:182:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
        if let txnHeaderValue = response.allHeaderFields["X-Txn-Time"] as? String, let txnTime = Int(txnHeaderValue) {
                                ~~~~~~~~ ^~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling FaunaDB Latch.swift
[3/9] Compiling FaunaDB Expr.swift
[4/9] Compiling FaunaDB LanguageExtensions.swift
/host/spi-builder-workspace/Sources/FaunaDB/LanguageExtensions.swift:24:16: error: cannot find 'CFGetTypeID' in scope
        return CFGetTypeID(self) == CFBooleanGetTypeID()
               ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/LanguageExtensions.swift:24:37: error: cannot find 'CFBooleanGetTypeID' in scope
        return CFGetTypeID(self) == CFBooleanGetTypeID()
                                    ^~~~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/12] Emitting module FaunaDB
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:17: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/FaunaDB/Client.swift:29:87: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public convenience init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil) {
                                                                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:36:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil, lastSeenTxn: AtomicInt) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:125:57: error: cannot find type 'URLRequest' in scope
    private func httpRequestFor(_ expr: Expr) throws -> URLRequest {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:142:32: error: cannot find type 'URLRequest' in scope
    private func send(request: URLRequest,
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:173:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func handle(response: URLResponse?, data: Data?,
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:9:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func errorFor(response: HTTPURLResponse, json: Data) -> FaunaError? {
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[6/13] Compiling FaunaDB Codec.swift
[7/13] Compiling FaunaDB AtomicInt.swift
[8/13] Compiling FaunaDB Errors.swift
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:9:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func errorFor(response: HTTPURLResponse, json: Data) -> FaunaError? {
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:10:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        guard !(200 ..< 300 ~= response.statusCode) else { return nil }
                               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:14:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                status: response.statusCode,
                        ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Errors.swift:20:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            status: response.statusCode,
                    ~~~~~~~~ ^~~~~~~~~~
[9/13] Compiling FaunaDB Client.swift
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:17: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/FaunaDB/Client.swift:29:87: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public convenience init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil) {
                                                                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:36:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private init(secret: String, endpoint: URL = DefaultEndpoint, session: URLSession? = nil, lastSeenTxn: AtomicInt) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:125:57: error: cannot find type 'URLRequest' in scope
    private func httpRequestFor(_ expr: Expr) throws -> URLRequest {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:142:32: error: cannot find type 'URLRequest' in scope
    private func send(request: URLRequest,
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:173:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func handle(response: URLResponse?, data: Data?,
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:44:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
            self.session = URLSession(configuration: URLSessionConfiguration.default)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:44:78: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            self.session = URLSession(configuration: URLSessionConfiguration.default)
                                                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:126:23: error: cannot find 'NSMutableURLRequest' in scope
        let request = NSMutableURLRequest(url: endpoint)
                      ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:66: error: cannot infer type of closure parameter 'data' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:72: error: cannot infer type of closure parameter 'response' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                       ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:146:82: error: cannot infer type of closure parameter 'error' without a type annotation
        let task = session.dataTask(with: request) { [weak self] data, response, error in
                                                                                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:150:39: error: argument type '_' expected to be an instance of a class or class-constrained type
                this.handle(response: response,
                                      ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:151:35: error: cannot convert value of type '_' to expected argument type 'Data?'
                            data: data,
                                  ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:177:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse, let data = data else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:177:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse, let data = data else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FaunaDB/Client.swift:182:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
        if let txnHeaderValue = response.allHeaderFields["X-Txn-Time"] as? String, let txnTime = Int(txnHeaderValue) {
                                ~~~~~~~~ ^~~~~~~~~~~~~~~
[10/17] Compiling FaunaDB ISO8601.swift
[11/18] Compiling FaunaDB Value+Traversal.swift
[12/18] Compiling FaunaDB HighPrecisionTime.swift
[13/18] Compiling FaunaDB QueryResult.swift
[14/18] Compiling FaunaDB Field.swift
[15/18] Compiling FaunaDB Value.swift
[16/18] Compiling FaunaDB Path.swift
[17/18] Compiling FaunaDB Query.swift
[18/18] Compiling FaunaDB JSON.swift
error: fatalError
BUILD FAILURE 5.10 linux