Build Information
Failed to build DLDHolidays, reference 1.0.1 (587136), with Swift 6.2 for Wasm on 23 Jan 2026 12:51:31 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/diliedevs/DLDHolidays.git
Reference: 1.0.1
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/diliedevs/DLDHolidays
* tag 1.0.1 -> FETCH_HEAD
HEAD is now at 5871369 Updated the README and cleaned up some code.
Cloned https://github.com/diliedevs/DLDHolidays.git
Revision (git rev-parse @):
58713694bcdcfa7b595f4aba0e0df69654a0308c
SUCCESS checkout https://github.com/diliedevs/DLDHolidays.git at 1.0.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/diliedevs/DLDHolidays.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling DLDHolidays APIEndpoint.swift
[4/11] Compiling DLDHolidays APIClient.swift
/host/spi-builder-workspace/Sources/DLDHolidays/Networking/APIClient.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// decodes JSON payloads using the appropriate `JSONDecoder` strategy for each endpoint.
15 | actor APIClient {
16 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a new `APIClient`.
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/DLDHolidays/Networking/APIClient.swift:21:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | ///
20 | /// - Parameter session: The `URLSession` to use for requests. Defaults to `.shared`.
21 | init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | self.session = session
23 | }
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/DLDHolidays/Networking/APIClient.swift:21:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | ///
20 | /// - Parameter session: The `URLSession` to use for requests. Defaults to `.shared`.
21 | init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | self.session = session
23 | }
/host/spi-builder-workspace/Sources/DLDHolidays/Networking/APIClient.swift:21:33: error: value of type '_' expected to be instance of class or class-constrained type
19 | ///
20 | /// - Parameter session: The `URLSession` to use for requests. Defaults to `.shared`.
21 | init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
22 | self.session = session
23 | }
/host/spi-builder-workspace/Sources/DLDHolidays/Networking/APIClient.swift:30:87: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// - Returns: A tuple containing the raw response `Data` and the associated `HTTPURLResponse`.
29 | /// - Throws: `APIError` if the URL is invalid, the request fails, or the response status code is not 2xx.
30 | private func fetchDataResponse(from endpoint: APIEndpoint) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | guard let url = endpoint.url else {
32 | throw APIError(kind: .invalidURL, url: endpoint.url)
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/DLDHolidays/Networking/APIClient.swift:35:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
33 | }
34 |
35 | let (data, response) = try await session.data(from: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
36 |
37 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DLDHolidays/Networking/APIClient.swift:71:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 | let (_, response) = try await fetchDataResponse(from: endpoint)
70 |
71 | return response.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | }
73 | }
[5/12] Compiling DLDHolidays LongWeekend.swift
[6/12] Compiling DLDHolidays PublicHoliday.swift
[7/12] Compiling DLDHolidays HolidayType.swift
[8/12] Compiling DLDHolidays Helpers.swift
/host/spi-builder-workspace/Sources/DLDHolidays/Networking/APIClient.swift:21:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | ///
20 | /// - Parameter session: The `URLSession` to use for requests. Defaults to `.shared`.
21 | init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | self.session = session
23 | }
/host/spi-builder-workspace/Sources/DLDHolidays/Networking/APIClient.swift:21:33: error: value of type '_' expected to be instance of class or class-constrained type
19 | ///
20 | /// - Parameter session: The `URLSession` to use for requests. Defaults to `.shared`.
21 | init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
22 | self.session = session
23 | }
[9/12] Compiling DLDHolidays Holidays.swift
/host/spi-builder-workspace/Sources/DLDHolidays/Networking/APIClient.swift:21:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | ///
20 | /// - Parameter session: The `URLSession` to use for requests. Defaults to `.shared`.
21 | init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | self.session = session
23 | }
/host/spi-builder-workspace/Sources/DLDHolidays/Networking/APIClient.swift:21:33: error: value of type '_' expected to be instance of class or class-constrained type
19 | ///
20 | /// - Parameter session: The `URLSession` to use for requests. Defaults to `.shared`.
21 | init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
22 | self.session = session
23 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/12] Emitting module DLDHolidays
/host/spi-builder-workspace/Sources/DLDHolidays/Networking/APIClient.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// decodes JSON payloads using the appropriate `JSONDecoder` strategy for each endpoint.
15 | actor APIClient {
16 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Creates a new `APIClient`.
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/DLDHolidays/Networking/APIClient.swift:21:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | ///
20 | /// - Parameter session: The `URLSession` to use for requests. Defaults to `.shared`.
21 | init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | self.session = session
23 | }
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/DLDHolidays/Networking/APIClient.swift:21:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | ///
20 | /// - Parameter session: The `URLSession` to use for requests. Defaults to `.shared`.
21 | init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | self.session = session
23 | }
/host/spi-builder-workspace/Sources/DLDHolidays/Networking/APIClient.swift:21:33: error: value of type '_' expected to be instance of class or class-constrained type
19 | ///
20 | /// - Parameter session: The `URLSession` to use for requests. Defaults to `.shared`.
21 | init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
22 | self.session = session
23 | }
/host/spi-builder-workspace/Sources/DLDHolidays/Networking/APIClient.swift:30:87: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// - Returns: A tuple containing the raw response `Data` and the associated `HTTPURLResponse`.
29 | /// - Throws: `APIError` if the URL is invalid, the request fails, or the response status code is not 2xx.
30 | private func fetchDataResponse(from endpoint: APIEndpoint) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | guard let url = endpoint.url else {
32 | throw APIError(kind: .invalidURL, url: endpoint.url)
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
[11/12] Compiling DLDHolidays Country.swift
[12/12] Compiling DLDHolidays APIError.swift
BUILD FAILURE 6.2 wasm