Build Information
Failed to build postmark-swift, reference v0.2.0 (5a83fb), with Swift 6.1 for Wasm on 28 May 2025 10:58:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aronbudinszky/postmark-swift.git
Reference: v0.2.0
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/aronbudinszky/postmark-swift
* tag v0.2.0 -> FETCH_HEAD
HEAD is now at 5a83fb1 Fix documentation yaml indentation.
Cloned https://github.com/aronbudinszky/postmark-swift.git
Revision (git rev-parse @):
5a83fb142a5508fe0b72843947dbc0e9a92dc153
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/aronbudinszky/postmark-swift.git at v0.2.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/aronbudinszky/postmark-swift.git
https://github.com/aronbudinszky/postmark-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "postmark-swift",
"name" : "postmark-swift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "PostmarkSwift",
"targets" : [
"PostmarkSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PostmarkSwiftTests",
"module_type" : "SwiftTarget",
"name" : "PostmarkSwiftTests",
"path" : "Tests/PostmarkSwiftTests",
"sources" : [
"PostmarkSwiftTests.swift"
],
"target_dependencies" : [
"PostmarkSwift"
],
"type" : "test"
},
{
"c99name" : "PostmarkSwift",
"module_type" : "SwiftTarget",
"name" : "PostmarkSwift",
"path" : "Sources/PostmarkSwift",
"product_memberships" : [
"PostmarkSwift"
],
"sources" : [
"Client.swift",
"Constants.swift",
"Extensions/URLSession+Async.swift",
"Models/OutgoingEmail.swift",
"Network/ApiClient.swift",
"PostmarkSwift.swift",
"Protocols/ApiRequestCommunicating.swift",
"Protocols/ErrorCodeReceiving.swift",
"Protocols/PostmarkClientCompatible.swift",
"Protocols/RequestResponsePairing.swift",
"Requests/SendRequest.swift",
"Responses/ErrorCodes.swift",
"Responses/SendResponse.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling PostmarkSwift ErrorCodes.swift
[4/16] Compiling PostmarkSwift SendResponse.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/16] Compiling PostmarkSwift ApiRequestCommunicating.swift
[6/16] Compiling PostmarkSwift ErrorCodeReceiving.swift
[7/16] Emitting module PostmarkSwift
/host/spi-builder-workspace/Sources/PostmarkSwift/Client.swift:38:18: warning: associated value 'postmarkError(code:message:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'PostmarkSwift.Client.ErrorCode'; this is an error in the Swift 6 language mode
36 |
37 | public enum Error: Swift.Error {
38 | case postmarkError(code: ErrorCode, message: String)
| `- warning: associated value 'postmarkError(code:message:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'PostmarkSwift.Client.ErrorCode'; this is an error in the Swift 6 language mode
39 | }
40 |
/host/spi-builder-workspace/Sources/PostmarkSwift/Responses/ErrorCodes.swift:29:10: note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
27 | ///
28 | /// See API [documentation](https://postmarkapp.com/developer/api/overview#error-codes)
29 | enum ErrorCode: Int, Decodable {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
30 |
31 | /// No error
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:30:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
28 | ///
29 | /// Needed because Linux version of Swift does not support async URLSession yet.
30 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
31 |
32 | /// Possible errors
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
55 |
56 | /// The JSON encoder
[8/16] Compiling PostmarkSwift ApiClient.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:99:27: error: cannot find 'URLRequest' in scope
97 |
98 | // Create and send request
99 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
100 | request.httpMethod = method.rawValue
101 | request.httpBody = try? self.encoder.encode(object)
[9/16] Compiling PostmarkSwift PostmarkSwift.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:99:27: error: cannot find 'URLRequest' in scope
97 |
98 | // Create and send request
99 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
100 | request.httpMethod = method.rawValue
101 | request.httpBody = try? self.encoder.encode(object)
[10/16] Compiling PostmarkSwift URLSession+Async.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:30:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
28 | ///
29 | /// Needed because Linux version of Swift does not support async URLSession yet.
30 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
31 |
32 | /// Possible errors
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:75:38: error: cannot find type 'URLRequest' in scope
73 | ///
74 | /// let (data, response, error) = try await URLSession.shared.asyncDataTask(with: request)
75 | func asyncDataTask(with request: URLRequest) async throws -> (Data?, URLResponse, Error?) {
| `- error: cannot find type 'URLRequest' in scope
76 | return try await withCheckedThrowingContinuation { continuation in
77 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
[11/16] Compiling PostmarkSwift OutgoingEmail.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:30:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
28 | ///
29 | /// Needed because Linux version of Swift does not support async URLSession yet.
30 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
31 |
32 | /// Possible errors
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:75:38: error: cannot find type 'URLRequest' in scope
73 | ///
74 | /// let (data, response, error) = try await URLSession.shared.asyncDataTask(with: request)
75 | func asyncDataTask(with request: URLRequest) async throws -> (Data?, URLResponse, Error?) {
| `- error: cannot find type 'URLRequest' in scope
76 | return try await withCheckedThrowingContinuation { continuation in
77 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
[12/16] Compiling PostmarkSwift Client.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Client.swift:38:18: warning: associated value 'postmarkError(code:message:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'PostmarkSwift.Client.ErrorCode'; this is an error in the Swift 6 language mode
36 |
37 | public enum Error: Swift.Error {
38 | case postmarkError(code: ErrorCode, message: String)
| `- warning: associated value 'postmarkError(code:message:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'PostmarkSwift.Client.ErrorCode'; this is an error in the Swift 6 language mode
39 | }
40 |
/host/spi-builder-workspace/Sources/PostmarkSwift/Responses/ErrorCodes.swift:29:10: note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
27 | ///
28 | /// See API [documentation](https://postmarkapp.com/developer/api/overview#error-codes)
29 | enum ErrorCode: Int, Decodable {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
30 |
31 | /// No error
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
55 |
56 | /// The JSON encoder
[13/16] Compiling PostmarkSwift Constants.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Client.swift:38:18: warning: associated value 'postmarkError(code:message:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'PostmarkSwift.Client.ErrorCode'; this is an error in the Swift 6 language mode
36 |
37 | public enum Error: Swift.Error {
38 | case postmarkError(code: ErrorCode, message: String)
| `- warning: associated value 'postmarkError(code:message:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'PostmarkSwift.Client.ErrorCode'; this is an error in the Swift 6 language mode
39 | }
40 |
/host/spi-builder-workspace/Sources/PostmarkSwift/Responses/ErrorCodes.swift:29:10: note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
27 | ///
28 | /// See API [documentation](https://postmarkapp.com/developer/api/overview#error-codes)
29 | enum ErrorCode: Int, Decodable {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
30 |
31 | /// No error
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
55 |
56 | /// The JSON encoder
[14/16] Compiling PostmarkSwift SendRequest.swift
[15/16] Compiling PostmarkSwift PostmarkClientCompatible.swift
[16/16] Compiling PostmarkSwift RequestResponsePairing.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling PostmarkSwift Client.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
55 |
56 | /// The JSON encoder
[3/14] Compiling PostmarkSwift Constants.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
55 |
56 | /// The JSON encoder
[4/14] Compiling PostmarkSwift URLSession+Async.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:30:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
28 | ///
29 | /// Needed because Linux version of Swift does not support async URLSession yet.
30 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
31 |
32 | /// Possible errors
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:75:38: error: cannot find type 'URLRequest' in scope
73 | ///
74 | /// let (data, response, error) = try await URLSession.shared.asyncDataTask(with: request)
75 | func asyncDataTask(with request: URLRequest) async throws -> (Data?, URLResponse, Error?) {
| `- error: cannot find type 'URLRequest' in scope
76 | return try await withCheckedThrowingContinuation { continuation in
77 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
[5/14] Compiling PostmarkSwift OutgoingEmail.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:30:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
28 | ///
29 | /// Needed because Linux version of Swift does not support async URLSession yet.
30 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
31 |
32 | /// Possible errors
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:75:38: error: cannot find type 'URLRequest' in scope
73 | ///
74 | /// let (data, response, error) = try await URLSession.shared.asyncDataTask(with: request)
75 | func asyncDataTask(with request: URLRequest) async throws -> (Data?, URLResponse, Error?) {
| `- error: cannot find type 'URLRequest' in scope
76 | return try await withCheckedThrowingContinuation { continuation in
77 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/15] Emitting module PostmarkSwift
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:30:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
28 | ///
29 | /// Needed because Linux version of Swift does not support async URLSession yet.
30 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
31 |
32 | /// Possible errors
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
55 |
56 | /// The JSON encoder
[7/15] Compiling PostmarkSwift ErrorCodes.swift
[8/15] Compiling PostmarkSwift SendResponse.swift
[9/15] Compiling PostmarkSwift ApiRequestCommunicating.swift
[10/15] Compiling PostmarkSwift ErrorCodeReceiving.swift
[11/15] Compiling PostmarkSwift PostmarkClientCompatible.swift
[12/15] Compiling PostmarkSwift RequestResponsePairing.swift
[13/15] Compiling PostmarkSwift SendRequest.swift
[14/15] Compiling PostmarkSwift ApiClient.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:99:27: error: cannot find 'URLRequest' in scope
97 |
98 | // Create and send request
99 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
100 | request.httpMethod = method.rawValue
101 | request.httpBody = try? self.encoder.encode(object)
[15/15] Compiling PostmarkSwift PostmarkSwift.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
52 |
53 | /// The URL Session object
54 | private let urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
55 |
56 | /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:99:27: error: cannot find 'URLRequest' in scope
97 |
98 | // Create and send request
99 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
100 | request.httpMethod = method.rawValue
101 | request.httpBody = try? self.encoder.encode(object)
BUILD FAILURE 6.1 wasm