Build Information
Failed to build swift-pinata, reference main (4f027f), with Swift 6.2 for Wasm on 21 Jan 2026 02:14:15 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CorvidLabs/swift-pinata.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/CorvidLabs/swift-pinata
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4f027f9 Update copyright year to 2026 (#5)
Cloned https://github.com/CorvidLabs/swift-pinata.git
Revision (git rev-parse @):
4f027f948e515f54d6e331351151b4e73455ca63
SUCCESS checkout https://github.com/CorvidLabs/swift-pinata.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/CorvidLabs/swift-pinata.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:e45aebddbd3fb4404abe9276e0d450e6fc2ef4836b534e79623bcca11b80d266
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Fetching https://github.com/apple/swift-docc-plugin
[1/2163] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.69s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (4.39s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3644] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.59s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.51s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.5
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/11] Emitting module Pinata
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:27:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The URL session used for requests.
27 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// JSON decoder configured for Pinata API responses.
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/Pinata/Pinata.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public init(
43 | configuration: PinataConfiguration,
44 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.configuration = configuration
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/Pinata/Pinata.swift:44:32: error: value of type '_' expected to be instance of class or class-constrained type
42 | public init(
43 | configuration: PinataConfiguration,
44 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
45 | ) {
46 | self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:44:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
42 | public init(
43 | configuration: PinataConfiguration,
44 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
45 | ) {
46 | self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:90:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | jwt: String,
89 | gatewayDomain: String? = nil,
90 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | ) {
92 | self.init(
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/Pinata/Pinata.swift:90:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
88 | jwt: String,
89 | gatewayDomain: String? = nil,
90 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
91 | ) {
92 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:90:32: error: value of type '_' expected to be instance of class or class-constrained type
88 | jwt: String,
89 | gatewayDomain: String? = nil,
90 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
91 | ) {
92 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:111:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | apiSecret: String,
110 | gatewayDomain: String? = nil,
111 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | ) {
113 | self.init(
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/Pinata/Pinata.swift:111:32: error: value of type '_' expected to be instance of class or class-constrained type
109 | apiSecret: String,
110 | gatewayDomain: String? = nil,
111 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
112 | ) {
113 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:111:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 | apiSecret: String,
110 | gatewayDomain: String? = nil,
111 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
112 | ) {
113 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:626:56: error: cannot find type 'URLRequest' in scope
624 | private static let baseRetryDelay: UInt64 = 500_000_000
625 |
626 | private func applyAuthentication(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
627 | request.setValue(
628 | configuration.credentials.authorizationHeader,
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:636:51: error: cannot find type 'URLRequest' in scope
634 | }
635 |
636 | private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
637 | let (data, _) = try await performRaw(request)
638 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:40: error: cannot find type 'URLRequest' in scope
644 | }
645 |
646 | private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
647 | var lastError: Error?
648 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
644 | }
645 |
646 | private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
647 | var lastError: Error?
648 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[6/11] Compiling Pinata PinataCredentials.swift
[7/11] Compiling Pinata PinataError.swift
[8/11] Compiling Pinata PinataConfiguration.swift
[9/11] Compiling Pinata PinataGroup.swift
[10/11] Compiling Pinata PinataFile.swift
[11/11] Compiling Pinata Pinata.swift
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:27:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The URL session used for requests.
27 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// JSON decoder configured for Pinata API responses.
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/Pinata/Pinata.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public init(
43 | configuration: PinataConfiguration,
44 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.configuration = configuration
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/Pinata/Pinata.swift:44:32: error: value of type '_' expected to be instance of class or class-constrained type
42 | public init(
43 | configuration: PinataConfiguration,
44 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
45 | ) {
46 | self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:44:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
42 | public init(
43 | configuration: PinataConfiguration,
44 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
45 | ) {
46 | self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:90:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | jwt: String,
89 | gatewayDomain: String? = nil,
90 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | ) {
92 | self.init(
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/Pinata/Pinata.swift:90:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
88 | jwt: String,
89 | gatewayDomain: String? = nil,
90 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
91 | ) {
92 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:90:32: error: value of type '_' expected to be instance of class or class-constrained type
88 | jwt: String,
89 | gatewayDomain: String? = nil,
90 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
91 | ) {
92 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:111:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | apiSecret: String,
110 | gatewayDomain: String? = nil,
111 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | ) {
113 | self.init(
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/Pinata/Pinata.swift:111:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 | apiSecret: String,
110 | gatewayDomain: String? = nil,
111 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
112 | ) {
113 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:111:32: error: value of type '_' expected to be instance of class or class-constrained type
109 | apiSecret: String,
110 | gatewayDomain: String? = nil,
111 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
112 | ) {
113 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:626:56: error: cannot find type 'URLRequest' in scope
624 | private static let baseRetryDelay: UInt64 = 500_000_000
625 |
626 | private func applyAuthentication(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
627 | request.setValue(
628 | configuration.credentials.authorizationHeader,
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:636:51: error: cannot find type 'URLRequest' in scope
634 | }
635 |
636 | private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
637 | let (data, _) = try await performRaw(request)
638 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:40: error: cannot find type 'URLRequest' in scope
644 | }
645 |
646 | private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
647 | var lastError: Error?
648 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
644 | }
645 |
646 | private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
647 | var lastError: Error?
648 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:147:23: error: cannot find 'URLRequest' in scope
145 | let url = PinataConfiguration.uploadBaseURL.appendingPathComponent("v3/files")
146 |
147 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
148 | request.httpMethod = "POST"
149 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:260:23: error: cannot find 'URLRequest' in scope
258 | }
259 |
260 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
261 | request.httpMethod = "GET"
262 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:288:23: error: cannot find 'URLRequest' in scope
286 | .appendingPathComponent(id)
287 |
288 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
289 | request.httpMethod = "GET"
290 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:314:23: error: cannot find 'URLRequest' in scope
312 | .appendingPathComponent(id)
313 |
314 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
315 | request.httpMethod = "DELETE"
316 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:360:23: error: cannot find 'URLRequest' in scope
358 | .appendingPathComponent(id)
359 |
360 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
361 | request.httpMethod = "PUT"
362 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:412:23: error: cannot find 'URLRequest' in scope
410 | .appendingPathComponent(cid)
411 |
412 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
413 | request.httpMethod = "PUT"
414 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:459:23: error: cannot find 'URLRequest' in scope
457 | }
458 |
459 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
460 | request.httpMethod = "GET"
461 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:488:23: error: cannot find 'URLRequest' in scope
486 | .appendingPathComponent(cid)
487 |
488 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
489 | request.httpMethod = "DELETE"
490 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:513:23: error: cannot find 'URLRequest' in scope
511 | let url = PinataConfiguration.apiBaseURL.appendingPathComponent("v3/files/groups")
512 |
513 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
514 | request.httpMethod = "POST"
515 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:563:23: error: cannot find 'URLRequest' in scope
561 | }
562 |
563 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
564 | request.httpMethod = "GET"
565 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:585:23: error: cannot find 'URLRequest' in scope
583 | .appendingPathComponent(id)
584 |
585 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
586 | request.httpMethod = "GET"
587 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:605:23: error: cannot find 'URLRequest' in scope
603 | .appendingPathComponent(id)
604 |
605 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
606 | request.httpMethod = "DELETE"
607 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:651:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
649 | for attempt in 0..<Self.maxRetries {
650 | do {
651 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
652 |
653 | guard let httpResponse = response as? HTTPURLResponse else {
BUILD FAILURE 6.2 wasm