The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Fetch with Swift 5.10 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.30.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dhardiman/fetch.git
Reference: master
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/dhardiman/fetch
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8c9b3ae Merge pull request #48 from dhardiman/privacy-manifest
Cloned https://github.com/dhardiman/fetch.git
Revision (git rev-parse @):
8c9b3ae598c606578b8120f45d4ef54b7ce01012
SUCCESS checkout https://github.com/dhardiman/fetch.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/dhardiman/fetch.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/FetchTests/Info.plist
    /host/spi-builder-workspace/Tests/FetchTests/image.png
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/Fetch/Info.plist
Building for debugging...
[0/3] Copying PrivacyInfo.xcprivacy
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/22] Emitting module Fetch
/host/spi-builder-workspace/Sources/Fetch/Session.swift:165:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
extension URLSessionTask: Cancellable {}
^         ~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:60:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let session: URLSession
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(session: URLSession = .shared, responseQueue: OperationQueue = .main) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:63:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(session: URLSession = .shared, responseQueue: OperationQueue = .main) {
                                      ~^~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:68:24: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var tasks = [UUID: URLSessionTask]()
                       ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:119:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func result<T: Parsable>(from data: Data?, urlResponse: URLResponse?, request: Request, errorParser: ErrorParsing.Type?) throws -> FetchResult<T> {
                                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:145:26: error: cannot find type 'URLRequest' in scope
    func urlRequest() -> URLRequest {
                         ^~~~~~~~~~
[5/24] Compiling Fetch UIImage+Parsable.swift
[6/24] Compiling Fetch URL+QueryItems.swift
[7/24] Compiling Fetch Session.swift
/host/spi-builder-workspace/Sources/Fetch/Session.swift:165:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
extension URLSessionTask: Cancellable {}
^         ~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:60:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let session: URLSession
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(session: URLSession = .shared, responseQueue: OperationQueue = .main) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:63:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(session: URLSession = .shared, responseQueue: OperationQueue = .main) {
                                      ~^~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:68:24: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var tasks = [UUID: URLSessionTask]()
                       ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:119:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func result<T: Parsable>(from data: Data?, urlResponse: URLResponse?, request: Request, errorParser: ErrorParsing.Type?) throws -> FetchResult<T> {
                                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:145:26: error: cannot find type 'URLRequest' in scope
    func urlRequest() -> URLRequest {
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:77:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request.urlRequest(), completionHandler: { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:93:48: error: cannot convert value of type '_' to expected argument type 'Data?'
                result = try self.result(from: data, urlResponse: response, request: request, errorParser: errorParser)
                                               ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:93:67: error: argument type '_' expected to be an instance of a class or class-constrained type
                result = try self.result(from: data, urlResponse: response, request: request, errorParser: errorParser)
                                                                  ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:120:46: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let httpResponse = urlResponse as? HTTPURLResponse else {
                                 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/Fetch/Session.swift:120:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let httpResponse = urlResponse as? HTTPURLResponse else {
                                                 ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:124:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        let response = Response(data: data, status: httpResponse.statusCode, headers: httpResponse.allHeaderFields as? [String: String], userInfo: userInfo, originalRequest: request)
                                                    ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:124:100: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
        let response = Response(data: data, status: httpResponse.statusCode, headers: httpResponse.allHeaderFields as? [String: String], userInfo: userInfo, originalRequest: request)
                                                                                      ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:134:39: error: value of type 'Dictionary<UUID, URLSessionTask>.Values.Element' (aka 'AnyObject') has no member 'cancel'
            tasks.values.forEach { $0.cancel() }
                                   ~~ ^~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:146:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
[8/24] Compiling Fetch SessionActivityMonitor.swift
/host/spi-builder-workspace/Sources/Fetch/Session.swift:165:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
extension URLSessionTask: Cancellable {}
^         ~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:60:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let session: URLSession
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(session: URLSession = .shared, responseQueue: OperationQueue = .main) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:63:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(session: URLSession = .shared, responseQueue: OperationQueue = .main) {
                                      ~^~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:68:24: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var tasks = [UUID: URLSessionTask]()
                       ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:119:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func result<T: Parsable>(from data: Data?, urlResponse: URLResponse?, request: Request, errorParser: ErrorParsing.Type?) throws -> FetchResult<T> {
                                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:145:26: error: cannot find type 'URLRequest' in scope
    func urlRequest() -> URLRequest {
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:77:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request.urlRequest(), completionHandler: { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:93:48: error: cannot convert value of type '_' to expected argument type 'Data?'
                result = try self.result(from: data, urlResponse: response, request: request, errorParser: errorParser)
                                               ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:93:67: error: argument type '_' expected to be an instance of a class or class-constrained type
                result = try self.result(from: data, urlResponse: response, request: request, errorParser: errorParser)
                                                                  ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:120:46: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let httpResponse = urlResponse as? HTTPURLResponse else {
                                 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/Fetch/Session.swift:120:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let httpResponse = urlResponse as? HTTPURLResponse else {
                                                 ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:124:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        let response = Response(data: data, status: httpResponse.statusCode, headers: httpResponse.allHeaderFields as? [String: String], userInfo: userInfo, originalRequest: request)
                                                    ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:124:100: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
        let response = Response(data: data, status: httpResponse.statusCode, headers: httpResponse.allHeaderFields as? [String: String], userInfo: userInfo, originalRequest: request)
                                                                                      ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:134:39: error: value of type 'Dictionary<UUID, URLSessionTask>.Values.Element' (aka 'AnyObject') has no member 'cancel'
            tasks.values.forEach { $0.cancel() }
                                   ~~ ^~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:146:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
[9/24] Compiling Fetch BasicURLRequest.swift
[10/24] Compiling Fetch EncodableRequest.swift
[11/24] Compiling Fetch ErrorParsing.swift
[12/24] Compiling Fetch UserInfoProviding.swift
[13/24] Compiling Fetch resource_bundle_accessor.swift
[14/24] Compiling Fetch Parsable.swift
[15/24] Compiling Fetch Request.swift
[16/24] Compiling Fetch Response.swift
[17/24] Compiling Fetch ResponseError.swift
[18/24] Compiling Fetch Session+Combine.swift
[19/24] Compiling Fetch FetchResult.swift
[20/24] Compiling Fetch HTTPFormPostRequest.swift
[21/24] Compiling Fetch HTTPMethod.swift
[22/24] Compiling Fetch JSONRequest.swift
[23/24] Compiling Fetch MultiPartFormRequest.swift
[24/24] Compiling Fetch NoDataResponse.swift
error: fatalError
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/FetchTests/image.png
    /host/spi-builder-workspace/Tests/FetchTests/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/Fetch/Info.plist
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Compiling Fetch SessionActivityMonitor.swift
[3/4] Emitting module Fetch
/host/spi-builder-workspace/Sources/Fetch/Session.swift:165:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
extension URLSessionTask: Cancellable {}
^         ~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:60:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let session: URLSession
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(session: URLSession = .shared, responseQueue: OperationQueue = .main) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:63:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(session: URLSession = .shared, responseQueue: OperationQueue = .main) {
                                      ~^~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:68:24: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var tasks = [UUID: URLSessionTask]()
                       ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:119:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func result<T: Parsable>(from data: Data?, urlResponse: URLResponse?, request: Request, errorParser: ErrorParsing.Type?) throws -> FetchResult<T> {
                                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:145:26: error: cannot find type 'URLRequest' in scope
    func urlRequest() -> URLRequest {
                         ^~~~~~~~~~
[4/4] Compiling Fetch Session.swift
/host/spi-builder-workspace/Sources/Fetch/Session.swift:165:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
extension URLSessionTask: Cancellable {}
^         ~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:60:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let session: URLSession
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(session: URLSession = .shared, responseQueue: OperationQueue = .main) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:63:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(session: URLSession = .shared, responseQueue: OperationQueue = .main) {
                                      ~^~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:68:24: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var tasks = [UUID: URLSessionTask]()
                       ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:119:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func result<T: Parsable>(from data: Data?, urlResponse: URLResponse?, request: Request, errorParser: ErrorParsing.Type?) throws -> FetchResult<T> {
                                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:145:26: error: cannot find type 'URLRequest' in scope
    func urlRequest() -> URLRequest {
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:77:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request.urlRequest(), completionHandler: { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:93:48: error: cannot convert value of type '_' to expected argument type 'Data?'
                result = try self.result(from: data, urlResponse: response, request: request, errorParser: errorParser)
                                               ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:93:67: error: argument type '_' expected to be an instance of a class or class-constrained type
                result = try self.result(from: data, urlResponse: response, request: request, errorParser: errorParser)
                                                                  ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:120:46: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let httpResponse = urlResponse as? HTTPURLResponse else {
                                 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/Fetch/Session.swift:120:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let httpResponse = urlResponse as? HTTPURLResponse else {
                                                 ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Fetch/Session.swift:124:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        let response = Response(data: data, status: httpResponse.statusCode, headers: httpResponse.allHeaderFields as? [String: String], userInfo: userInfo, originalRequest: request)
                                                    ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:124:100: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
        let response = Response(data: data, status: httpResponse.statusCode, headers: httpResponse.allHeaderFields as? [String: String], userInfo: userInfo, originalRequest: request)
                                                                                      ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:134:39: error: value of type 'Dictionary<UUID, URLSessionTask>.Values.Element' (aka 'AnyObject') has no member 'cancel'
            tasks.values.forEach { $0.cancel() }
                                   ~~ ^~~~~~
/host/spi-builder-workspace/Sources/Fetch/Session.swift:146:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2