Build Information
Failed to build DLDHolidays, reference main (587136), with Swift 6.3 for Linux on 18 Apr 2026 07:11:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/diliedevs/DLDHolidays.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/diliedevs/DLDHolidays
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/diliedevs/DLDHolidays.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-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/11] 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
[4/12] 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: 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: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: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 HolidayType.swift
[6/12] Compiling DLDHolidays Helpers.swift
/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: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 | }
[7/12] Compiling DLDHolidays Holidays.swift
/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: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 | }
[8/12] Compiling DLDHolidays LongWeekend.swift
[9/12] Compiling DLDHolidays APIError.swift
[10/12] Compiling DLDHolidays Country.swift
[11/12] Compiling DLDHolidays PublicHoliday.swift
[12/12] Compiling DLDHolidays APIEndpoint.swift
BUILD FAILURE 6.3 linux