Build Information
Failed to build OpenLibrary, reference main (d0fbb8), with Swift 6.3 for Linux on 15 Apr 2026 13:19:59 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/natikgadzhi/swift-openlibrary.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/natikgadzhi/swift-openlibrary
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d0fbb80 formatting
Cloned https://github.com/natikgadzhi/swift-openlibrary.git
Revision (git rev-parse @):
d0fbb800b61caed6d3e44e275d0dfbf1a5006ba0
SUCCESS checkout https://github.com/natikgadzhi/swift-openlibrary.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/natikgadzhi/swift-openlibrary.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/17] Compiling OpenLibrary OpenLibraryAPI.swift
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:26: error: cannot find type 'URLRequest' in scope
18 | /// - Parameter request: The request to execute.
19 | /// - Returns: The raw response body and the corresponding URL response.
20 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | /// - Parameter request: The request to execute.
19 | /// - Returns: The raw response body and the corresponding URL response.
20 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
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/OpenLibrary/OpenLibraryAPI.swift:23:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
21 | }
22 |
23 | extension URLSession: OpenLibraryHTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
24 | /// Bridges `URLSession` into the sendable transport abstraction.
25 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:64:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | public init(
63 | baseURL: URL = URL(string: "https://openlibrary.org")!,
64 | session: any OpenLibraryHTTPSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | userAgent: String? = nil,
66 | contactEmail: String? = nil,
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:481:41: error: cannot find type 'URLRequest' in scope
479 |
480 | /// Builds a request with the configured identification headers.
481 | private func makeRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
482 | var request = URLRequest(url: url)
483 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:482:19: error: cannot find 'URLRequest' in scope
480 | /// Builds a request with the configured identification headers.
481 | private func makeRequest(url: URL) -> URLRequest {
482 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
483 | request.setValue("application/json", forHTTPHeaderField: "Accept")
484 |
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:25:33: error: cannot find type 'URLRequest' in scope
23 | extension URLSession: OpenLibraryHTTPSession {
24 | /// Bridges `URLSession` into the sendable transport abstraction.
25 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
26 | try await data(for: request, delegate: nil)
27 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[5/17] Compiling OpenLibrary OpenLibraryAPIMocks.swift
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:26: error: cannot find type 'URLRequest' in scope
18 | /// - Parameter request: The request to execute.
19 | /// - Returns: The raw response body and the corresponding URL response.
20 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | /// - Parameter request: The request to execute.
19 | /// - Returns: The raw response body and the corresponding URL response.
20 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
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/OpenLibrary/OpenLibraryAPI.swift:23:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
21 | }
22 |
23 | extension URLSession: OpenLibraryHTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
24 | /// Bridges `URLSession` into the sendable transport abstraction.
25 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:64:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | public init(
63 | baseURL: URL = URL(string: "https://openlibrary.org")!,
64 | session: any OpenLibraryHTTPSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | userAgent: String? = nil,
66 | contactEmail: String? = nil,
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:481:41: error: cannot find type 'URLRequest' in scope
479 |
480 | /// Builds a request with the configured identification headers.
481 | private func makeRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
482 | var request = URLRequest(url: url)
483 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:482:19: error: cannot find 'URLRequest' in scope
480 | /// Builds a request with the configured identification headers.
481 | private func makeRequest(url: URL) -> URLRequest {
482 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
483 | request.setValue("application/json", forHTTPHeaderField: "Accept")
484 |
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:25:33: error: cannot find type 'URLRequest' in scope
23 | extension URLSession: OpenLibraryHTTPSession {
24 | /// Bridges `URLSession` into the sendable transport abstraction.
25 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
26 | try await data(for: request, delegate: nil)
27 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/18] Emitting module OpenLibrary
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:26: error: cannot find type 'URLRequest' in scope
18 | /// - Parameter request: The request to execute.
19 | /// - Returns: The raw response body and the corresponding URL response.
20 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | /// - Parameter request: The request to execute.
19 | /// - Returns: The raw response body and the corresponding URL response.
20 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
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/OpenLibrary/OpenLibraryAPI.swift:23:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
21 | }
22 |
23 | extension URLSession: OpenLibraryHTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
24 | /// Bridges `URLSession` into the sendable transport abstraction.
25 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:64:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | public init(
63 | baseURL: URL = URL(string: "https://openlibrary.org")!,
64 | session: any OpenLibraryHTTPSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | userAgent: String? = nil,
66 | contactEmail: String? = nil,
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:481:41: error: cannot find type 'URLRequest' in scope
479 |
480 | /// Builds a request with the configured identification headers.
481 | private func makeRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
482 | var request = URLRequest(url: url)
483 | request.setValue("application/json", forHTTPHeaderField: "Accept")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[7/18] Compiling OpenLibrary OpenLibraryLogger.swift
[8/18] Compiling OpenLibrary OpenLibraryWorkBookshelves.swift
[9/18] Compiling OpenLibrary OpenLibrarySubject.swift
[10/18] Compiling OpenLibrary OpenLibraryWork.swift
[11/18] Compiling OpenLibrary OpenLibrarySearch.swift
[12/18] Compiling OpenLibrary OpenLibraryCovers.swift
[13/18] Compiling OpenLibrary OpenLibraryEdition.swift
[14/18] Compiling OpenLibrary OpenLibraryWorkRatings.swift
BUILD FAILURE 6.3 linux