The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OpenLibrary, reference main (d0fbb8), with Swift 6.1 for Linux on 15 Apr 2026 13:20:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build 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.1
Building package at path:  $PWD
https://github.com/natikgadzhi/swift-openlibrary.git
https://github.com/natikgadzhi/swift-openlibrary.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7bfd71e9384436264431030299dc8a2d42d0664a168cfa1a5dd84c9bc592ccf
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/17] Compiling OpenLibrary OpenLibraryWorkBookshelves.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/18] Emitting module OpenLibrary
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
 21 | }
 22 |
 23 | extension URLSession: OpenLibraryHTTPSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 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")
[6/18] Compiling OpenLibrary OpenLibraryAPI.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
 21 | }
 22 |
 23 | extension URLSession: OpenLibraryHTTPSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 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 |   }
[7/18] Compiling OpenLibrary OpenLibraryAPIMocks.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
 21 | }
 22 |
 23 | extension URLSession: OpenLibraryHTTPSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 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 |   }
[8/18] Compiling OpenLibrary OpenLibraryCovers.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[9/18] Compiling OpenLibrary OpenLibraryEdition.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/18] Compiling OpenLibrary OpenLibrarySubject.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/18] Compiling OpenLibrary OpenLibraryLogger.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/18] Compiling OpenLibrary OpenLibrarySearch.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/18] Compiling OpenLibrary OpenLibraryWork.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/18] Compiling OpenLibrary OpenLibraryWorkRatings.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7bfd71e9384436264431030299dc8a2d42d0664a168cfa1a5dd84c9bc592ccf
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/15] Compiling OpenLibrary OpenLibraryWorkBookshelves.swift
[3/16] Compiling OpenLibrary OpenLibraryWorkRatings.swift
[4/16] Compiling OpenLibrary OpenLibrarySearch.swift
[5/16] Compiling OpenLibrary OpenLibraryLogger.swift
[6/16] Compiling OpenLibrary OpenLibrarySubject.swift
[7/16] Compiling OpenLibrary OpenLibraryWork.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/16] Compiling OpenLibrary OpenLibraryCovers.swift
[9/16] Compiling OpenLibrary OpenLibraryEdition.swift
[10/16] 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
 21 | }
 22 |
 23 | extension URLSession: OpenLibraryHTTPSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 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")
[11/16] 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
 21 | }
 22 |
 23 | extension URLSession: OpenLibraryHTTPSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 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 |   }
[12/16] 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
 21 | }
 22 |
 23 | extension URLSession: OpenLibraryHTTPSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 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 |   }
BUILD FAILURE 6.1 linux