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 PromiseQ, reference master (539a98), with Swift 6.0 for Linux on 28 Nov 2024 06:02:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ikhvorost/PromiseQ.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/ikhvorost/PromiseQ
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 539a987 Readme: added isCancelled, new await
Cloned https://github.com/ikhvorost/PromiseQ.git
Revision (git rev-parse @):
539a987b5a74da758d1a4d245af5551ee1e35282
SUCCESS checkout https://github.com/ikhvorost/PromiseQ.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ikhvorost/PromiseQ.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
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/6] Emitting module PromiseQ
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:60:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 58 |
 59 | /// String errors
 60 | extension String : LocalizedError {
    | |- warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 61 | 	/// A localized message describing what error occurred.
 62 | 	public var errorDescription: String? { return self }
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:65:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
 63 | }
 64 |
 65 | extension URLSessionDataTask: Asyncable {
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
 66 | }
 67 |
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:68:1: error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended
 66 | }
 67 |
 68 | extension URLSessionDownloadTask: Asyncable {
    | `- error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended
 69 | }
 70 |
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:96:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 | public class HTTPResponse {
 95 | 	/// The metadata associated with the response to an HTTP protocol URL load request.
 96 | 	public let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |
 98 | 	private let result: ResponseResult
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:142:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | 	}
141 |
142 | 	fileprivate init(response: HTTPURLResponse, result: ResponseResult) {
    |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		self.response = response
144 | 		self.result = result
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:160:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
158 | }
159 |
160 | public extension URLSession  {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
161 |
162 | 	/// Creates a promise that retrieves the contents of a HTTP request object.
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:307:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | /// 	- totalBytes: The expected length of the data.
306 | ///
307 | public typealias Progress = (_ task: URLSessionTask, _ bytes: Int64, _ totalBytes: Int64) -> Void
    |                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |
309 | private class SessionDownloadDelegate: NSObject, URLSessionDownloadDelegate {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:309:50: error: cannot find type 'URLSessionDownloadDelegate' in scope
307 | public typealias Progress = (_ task: URLSessionTask, _ bytes: Int64, _ totalBytes: Int64) -> Void
308 |
309 | private class SessionDownloadDelegate: NSObject, URLSessionDownloadDelegate {
    |                                                  `- error: cannot find type 'URLSessionDownloadDelegate' in scope
310 | 	let resolve: (HTTPResponse) -> Void
311 | 	let reject: (Error) -> Void
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | 	}
320 |
321 | 	func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | 		progress?(downloadTask, totalBytesWritten, totalBytesExpectedToWrite)
323 | 	}
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | 	}
320 |
321 | 	func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
    |                                                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | 		progress?(downloadTask, totalBytesWritten, totalBytesExpectedToWrite)
323 | 	}
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | 	}
324 |
325 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | 		session.invalidateAndCancel()
327 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | 	}
324 |
325 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | 		session.invalidateAndCancel()
327 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | 	}
332 |
333 | 	func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | 		session.invalidateAndCancel()
335 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | 	}
332 |
333 | 	func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
    |                                                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | 		session.invalidateAndCancel()
335 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:392:46: error: cannot find type 'URLSessionTaskDelegate' in scope
390 | // MARK: - Upload
391 |
392 | private class SessionTaskDelegate: NSObject, URLSessionTaskDelegate {
    |                                              `- error: cannot find type 'URLSessionTaskDelegate' in scope
393 | 	let progress: Progress?
394 |
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 | 	}
399 |
400 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | 		progress?(task, totalBytesSent, totalBytesExpectedToSend)
402 | 	}
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 | 	}
399 |
400 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | 		progress?(task, totalBytesSent, totalBytesExpectedToSend)
402 | 	}
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
[4/6] Compiling PromiseQ PromiseQ.swift
/host/spi-builder-workspace/Sources/PromiseQ/PromiseQ.swift:52:36: error: cannot find '__dispatch_queue_get_label' in scope
  50 |
  51 | private func execute(_ queue: DispatchQueue, f: @escaping () -> Void) {
  52 | 	if queue.label == String(cString: __dispatch_queue_get_label(nil)) {
     |                                    `- error: cannot find '__dispatch_queue_get_label' in scope
  53 | 		f()
  54 | 	}
/host/spi-builder-workspace/Sources/PromiseQ/PromiseQ.swift:52:63: error: 'nil' requires a contextual type
  50 |
  51 | private func execute(_ queue: DispatchQueue, f: @escaping () -> Void) {
  52 | 	if queue.label == String(cString: __dispatch_queue_get_label(nil)) {
     |                                                               `- error: 'nil' requires a contextual type
  53 | 		f()
  54 | 	}
/host/spi-builder-workspace/Sources/PromiseQ/PromiseQ.swift:56:24: warning: passing non-sendable parameter 'f' to function expecting a @Sendable closure
  49 | }
  50 |
  51 | private func execute(_ queue: DispatchQueue, f: @escaping () -> Void) {
     |                                              `- note: parameter 'f' is implicitly non-sendable
  52 | 	if queue.label == String(cString: __dispatch_queue_get_label(nil)) {
  53 | 		f()
  54 | 	}
  55 | 	else {
  56 | 		queue.async(execute: f)
     |                        `- warning: passing non-sendable parameter 'f' to function expecting a @Sendable closure
  57 | 	}
  58 | }
[5/6] Compiling PromiseQ Monitor.swift
/host/spi-builder-workspace/Sources/PromiseQ/Monitor.swift:39:2: error: cannot find 'objc_sync_enter' in scope
 37 |
 38 | func synchronized<T : AnyObject, U>(_ obj: T, closure: () -> U) -> U {
 39 | 	objc_sync_enter(obj)
    |  `- error: cannot find 'objc_sync_enter' in scope
 40 | 	defer {
 41 | 		objc_sync_exit(obj)
/host/spi-builder-workspace/Sources/PromiseQ/Monitor.swift:41:3: error: cannot find 'objc_sync_exit' in scope
 39 | 	objc_sync_enter(obj)
 40 | 	defer {
 41 | 		objc_sync_exit(obj)
    |   `- error: cannot find 'objc_sync_exit' in scope
 42 | 	}
 43 | 	return closure()
[6/6] Compiling PromiseQ Fetch.swift
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:60:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 58 |
 59 | /// String errors
 60 | extension String : LocalizedError {
    | |- warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 61 | 	/// A localized message describing what error occurred.
 62 | 	public var errorDescription: String? { return self }
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:65:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
 63 | }
 64 |
 65 | extension URLSessionDataTask: Asyncable {
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
 66 | }
 67 |
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:68:1: error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended
 66 | }
 67 |
 68 | extension URLSessionDownloadTask: Asyncable {
    | `- error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended
 69 | }
 70 |
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:96:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 | public class HTTPResponse {
 95 | 	/// The metadata associated with the response to an HTTP protocol URL load request.
 96 | 	public let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |
 98 | 	private let result: ResponseResult
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:142:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | 	}
141 |
142 | 	fileprivate init(response: HTTPURLResponse, result: ResponseResult) {
    |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		self.response = response
144 | 		self.result = result
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:160:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
158 | }
159 |
160 | public extension URLSession  {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
161 |
162 | 	/// Creates a promise that retrieves the contents of a HTTP request object.
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:307:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | /// 	- totalBytes: The expected length of the data.
306 | ///
307 | public typealias Progress = (_ task: URLSessionTask, _ bytes: Int64, _ totalBytes: Int64) -> Void
    |                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |
309 | private class SessionDownloadDelegate: NSObject, URLSessionDownloadDelegate {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:309:50: error: cannot find type 'URLSessionDownloadDelegate' in scope
307 | public typealias Progress = (_ task: URLSessionTask, _ bytes: Int64, _ totalBytes: Int64) -> Void
308 |
309 | private class SessionDownloadDelegate: NSObject, URLSessionDownloadDelegate {
    |                                                  `- error: cannot find type 'URLSessionDownloadDelegate' in scope
310 | 	let resolve: (HTTPResponse) -> Void
311 | 	let reject: (Error) -> Void
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | 	}
320 |
321 | 	func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | 		progress?(downloadTask, totalBytesWritten, totalBytesExpectedToWrite)
323 | 	}
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | 	}
320 |
321 | 	func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
    |                                                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | 		progress?(downloadTask, totalBytesWritten, totalBytesExpectedToWrite)
323 | 	}
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | 	}
324 |
325 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | 		session.invalidateAndCancel()
327 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | 	}
324 |
325 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | 		session.invalidateAndCancel()
327 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | 	}
332 |
333 | 	func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | 		session.invalidateAndCancel()
335 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | 	}
332 |
333 | 	func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
    |                                                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | 		session.invalidateAndCancel()
335 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:392:46: error: cannot find type 'URLSessionTaskDelegate' in scope
390 | // MARK: - Upload
391 |
392 | private class SessionTaskDelegate: NSObject, URLSessionTaskDelegate {
    |                                              `- error: cannot find type 'URLSessionTaskDelegate' in scope
393 | 	let progress: Progress?
394 |
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 | 	}
399 |
400 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | 		progress?(task, totalBytesSent, totalBytesExpectedToSend)
402 | 	}
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 | 	}
399 |
400 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | 		progress?(task, totalBytesSent, totalBytesExpectedToSend)
402 | 	}
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:102:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 | 	/// HTTP status code is 200-299.
101 | 	public var ok: Bool {
102 | 		(200...299).contains(response.statusCode)
    |                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
103 | 	}
104 |
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:107:54: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
105 | 	/// Returns a localized string corresponding to a specified HTTP status code.
106 | 	public var statusCodeDescription: String {
107 | 		"HTTP \(response.statusCode) - " + HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
    |                                                      `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
108 | 	}
109 |
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:107:94: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | 	/// Returns a localized string corresponding to a specified HTTP status code.
106 | 	public var statusCodeDescription: String {
107 | 		"HTTP \(response.statusCode) - " + HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
    |                                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | 	}
109 |
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:107:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | 	/// Returns a localized string corresponding to a specified HTTP status code.
106 | 	public var statusCodeDescription: String {
107 | 		"HTTP \(response.statusCode) - " + HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
    |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | 	}
109 |
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:295:13: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
293 | ///
294 | public func fetch(_ path: String, method: HTTPMethod = .GET, headers: [String : String]? = nil, body: Data? = nil, retry: Int = 0) -> Promise<HTTPResponse> {
295 | 	URLSession.shared.fetch(path, method: method, headers: headers, body: body, retry: retry)
    |             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
296 | }
297 |
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:326:11: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
324 |
325 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
326 | 		session.invalidateAndCancel()
    |           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
327 |
328 | 		if error != nil {
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:334:11: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
332 |
333 | 	func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
334 | 		session.invalidateAndCancel()
    |           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
335 |
336 | 		// Rename
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:344:54: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
342 | 		url = (url as NSURL).deletingLastPathComponent!.appendingPathComponent(name)
343 |
344 | 		let response = HTTPResponse(response: downloadTask.response as! HTTPURLResponse, result: .location(url))
    |                                                      `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
345 | 		resolve(response)
346 | 	}
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:375:18: error: cannot find 'URLRequest' in scope
373 |
374 | 		case let .success(url):
375 | 			var request = URLRequest(url: url)
    |                  `- error: cannot find 'URLRequest' in scope
376 | 			request.httpMethod = method.rawValue
377 | 			request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
380 | 			return Promise<HTTPResponse>(retry: retry) { resolve, reject, task in
381 | 				let delegate = SessionDownloadDelegate(resolve: resolve, reject: reject, progress: progress)
382 | 				let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                              `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
383 |
384 | 				task = session.downloadTask(with: request)
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:51: error: cannot infer contextual base in reference to member 'default'
380 | 			return Promise<HTTPResponse>(retry: retry) { resolve, reject, task in
381 | 				let delegate = SessionDownloadDelegate(resolve: resolve, reject: reject, progress: progress)
382 | 				let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                                   `- error: cannot infer contextual base in reference to member 'default'
383 |
384 | 				task = session.downloadTask(with: request)
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:95: error: 'nil' requires a contextual type
380 | 			return Promise<HTTPResponse>(retry: retry) { resolve, reject, task in
381 | 				let delegate = SessionDownloadDelegate(resolve: resolve, reject: reject, progress: progress)
382 | 				let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                                                                               `- error: 'nil' requires a contextual type
383 |
384 | 				task = session.downloadTask(with: request)
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:412:18: error: cannot find 'URLRequest' in scope
410 |
411 | 		case let .success(url):
412 | 			var request = URLRequest(url: url)
    |                  `- error: cannot find 'URLRequest' in scope
413 | 			request.httpMethod = method.rawValue
414 | 			request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
416 | 			return Promise<HTTPResponse>(retry: retry) { resolve, reject, task in
417 | 				let delegate = SessionTaskDelegate(progress: progress)
418 | 				let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                              `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
419 |
420 | 				let completion = { (data: Data?, response: URLResponse?, error: Error?) in
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:51: error: cannot infer contextual base in reference to member 'default'
416 | 			return Promise<HTTPResponse>(retry: retry) { resolve, reject, task in
417 | 				let delegate = SessionTaskDelegate(progress: progress)
418 | 				let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                                   `- error: cannot infer contextual base in reference to member 'default'
419 |
420 | 				let completion = { (data: Data?, response: URLResponse?, error: Error?) in
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:95: error: 'nil' requires a contextual type
416 | 			return Promise<HTTPResponse>(retry: retry) { resolve, reject, task in
417 | 				let delegate = SessionTaskDelegate(progress: progress)
418 | 				let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                                                                               `- error: 'nil' requires a contextual type
419 |
420 | 				let completion = { (data: Data?, response: URLResponse?, error: Error?) in
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:184:24: error: cannot find type 'URLRequest' in scope
182 | 	/// - SeeAlso: `HTTPResponse`
183 | 	///
184 | 	func fetch(_ request: URLRequest, retry: Int = 0) -> Promise<HTTPResponse> {
    |                        `- error: cannot find type 'URLRequest' in scope
185 | 		guard let url = request.url?.absoluteString, isHTTP(url) else {
186 | 			return Promise<HTTPResponse>.reject(ErrorNotHTTP)
BUILD FAILURE 6.0 linux