Build Information
Failed to build HTTPCodable, reference master (6b40e0), with Swift 6.2 for Linux on 17 Jun 2025 22:41:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/terwanerik/httpcodable.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/terwanerik/httpcodable
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 6b40e00 Merge pull request #1 from terwanerik/passing-current-session
Cloned https://github.com/terwanerik/httpcodable.git
Revision (git rev-parse @):
6b40e00b7dad02c8010e0bc98ca1006d11fd0f5b
SUCCESS checkout https://github.com/terwanerik/httpcodable.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/terwanerik/httpcodable.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/formbound/Futures.git
[1/972] Fetching futures
Fetched https://github.com/formbound/Futures.git from cache (0.40s)
Computing version for https://github.com/formbound/Futures.git
Computed https://github.com/formbound/Futures.git at 1.6.1 (3.12s)
Creating working copy for https://github.com/formbound/Futures.git
Working copy of https://github.com/formbound/Futures.git resolved at 1.6.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Emitting module Futures
[5/9] Compiling Futures PromisesExtended.swift
[6/9] Compiling Futures AnyFuture.swift
[7/9] Compiling Futures Promise.swift
[8/9] Compiling Futures DispatchQueue+Futures.swift
[9/9] Compiling Futures Future.swift
[11/19] Compiling HTTPCodable HTTPCodableMethod.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/19] Emitting module HTTPCodable
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public static let shared = Client()
6 |
7 | public var currentSession: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public var baseUrl: String?
9 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:5:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 |
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
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/HTTPCodable/CodableClient/CodableClient.swift:6:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | var urlSession: URLSession { get }
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/HTTPCodable/CodableClient/CodableClient.swift:8:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
8 | var urlSession: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | var encoder: JSONEncoder { get }
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/HTTPCodable/CodableClient/CodableClient.swift:15:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var baseUrl: String? { get }
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var cachePolicy: URLRequest.CachePolicy? { get }
17 | var timeoutInterval: TimeInterval? { get }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:43:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// Optionals
42 | extension CodableClient {
43 | public var urlSession: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return URLSession(configuration: sessionConfiguration ?? .default)
45 | }
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/HTTPCodable/CodableClient/CodableClient.swift:59:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | public var sessionConfiguration: URLSessionConfiguration? {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | return nil
61 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | public var cachePolicy: URLRequest.CachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | return nil
65 | }
[13/19] Compiling HTTPCodable CodableClient+Request.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Request.swift:44:23: error: cannot find 'URLRequest' in scope
42 | }
43 |
44 | var request = URLRequest(url: url,
| `- error: cannot find 'URLRequest' in scope
45 | cachePolicy: cachePolicy ?? .useProtocolCachePolicy,
46 | timeoutInterval: timeoutInterval ?? 60.0)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | public var cachePolicy: URLRequest.CachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | return nil
65 | }
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Request.swift:52:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
50 | request.addValue("application/json", forHTTPHeaderField: "Content-Type")
51 |
52 | let task = urlSession.dataTask(with: request) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
53 | if let error = error {
54 | return promise.reject(error)
[14/20] Compiling HTTPCodable Client.swift
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public static let shared = Client()
6 |
7 | public var currentSession: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public var baseUrl: String?
9 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
[15/20] Compiling HTTPCodable CodableClient+Codable.swift
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public static let shared = Client()
6 |
7 | public var currentSession: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public var baseUrl: String?
9 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
[16/20] Compiling HTTPCodable HTTPCodable.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
[17/20] Compiling HTTPCodable HTTPCodableError.swift
[18/20] Compiling HTTPCodable Encodable+Query.swift
[19/20] Compiling HTTPCodable CodableClient+Rest.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:10:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
8 | let response: DataResponse = request(.get, url: url, body: nil, query: query)
9 |
10 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
11 | try self.decode(data: data, to: T.self)
12 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:27:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
25 | let response: DataResponse = request(.post, url: url, body: body, query: query)
26 |
27 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
28 | try self.decode(data: data, to: T.self)
29 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:44:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
42 | let response: DataResponse = request(.put, url: url, body: body, query: query)
43 |
44 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
45 | try self.decode(data: data, to: T.self)
46 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:61:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
59 | let response: DataResponse = request(.patch, url: url, body: body, query: query)
60 |
61 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
62 | try self.decode(data: data, to: T.self)
63 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:77:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
75 | let response: DataResponse = request(.get, url: url, body: nil, query: query)
76 |
77 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
78 | try self.decode(data: data, to: T.self)
79 | }, task: response.task)
[20/20] Compiling HTTPCodable CodableClient.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:5:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 |
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
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/HTTPCodable/CodableClient/CodableClient.swift:6:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | var urlSession: URLSession { get }
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/HTTPCodable/CodableClient/CodableClient.swift:8:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
8 | var urlSession: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | var encoder: JSONEncoder { get }
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/HTTPCodable/CodableClient/CodableClient.swift:15:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var baseUrl: String? { get }
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var cachePolicy: URLRequest.CachePolicy? { get }
17 | var timeoutInterval: TimeInterval? { get }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:43:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// Optionals
42 | extension CodableClient {
43 | public var urlSession: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return URLSession(configuration: sessionConfiguration ?? .default)
45 | }
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/HTTPCodable/CodableClient/CodableClient.swift:59:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | public var sessionConfiguration: URLSessionConfiguration? {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | return nil
61 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | public var cachePolicy: URLRequest.CachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | return nil
65 | }
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:44:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | extension CodableClient {
43 | public var urlSession: URLSession {
44 | return URLSession(configuration: sessionConfiguration ?? .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
45 | }
46 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:44:67: error: reference to member 'default' cannot be resolved without a contextual type
42 | extension CodableClient {
43 | public var urlSession: URLSession {
44 | return URLSession(configuration: sessionConfiguration ?? .default)
| `- error: reference to member 'default' cannot be resolved without a contextual type
45 | }
46 |
BUILD FAILURE 6.2 linux