The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Spidra, reference 1.0.0 (24bacd), with Swift 6.0 for Linux on 27 Apr 2026 10:52:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.0-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/spidra-io/spidra-swift.git
Reference: 1.0.0
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/spidra-io/spidra-swift
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 24bacd2 Initialize Spidra Swift SDK with full API models and resources mapping
Cloned https://github.com/spidra-io/spidra-swift.git
Revision (git rev-parse @):
24bacd2557e7422c6b379b650aad4aded3f7fa3d
SUCCESS checkout https://github.com/spidra-io/spidra-swift.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/spidra-io/spidra-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:6ccbc5e7995f6c524368c1828f9c677d1727c16390a603fc668217aec5f5123a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-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/17] Emitting module Spidra
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | public class HttpClient {
  4 |     private let config: SpidraConfig
  5 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let encoder: JSONEncoder
  7 |     private let decoder: JSONDecoder
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/Spidra/HTTPClient.swift:9:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         self.config = config
 11 |         self.session = session
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/Spidra/HTTPClient.swift:9:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:104: error: cannot find type 'URLRequest' in scope
 32 |     }
 33 |
 34 |     private func createRequest<T: Codable>(endpoint: String, method: String, body: T? = nil) throws -> URLRequest {
    |                                                                                                        `- error: cannot find type 'URLRequest' in scope
 35 |         guard let url = URL(string: config.baseUrl + endpoint) else {
 36 |             throw SpidraError.networkError(URLError(.badURL))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:51:76: error: cannot find type 'URLRequest' in scope
 49 |     }
 50 |
 51 |     private func createRequest(endpoint: String, method: String) throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
 52 |         guard let url = URL(string: config.baseUrl + endpoint) else {
 53 |             throw SpidraError.networkError(URLError(.badURL))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:64:47: error: cannot find type 'URLRequest' in scope
 62 |     }
 63 |
 64 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
    |                                               `- error: cannot find type 'URLRequest' in scope
 65 |         let (data, response) = try await session.data(for: request)
 66 |
[4/17] Compiling Spidra HTTPClient.swift
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | public class HttpClient {
  4 |     private let config: SpidraConfig
  5 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let encoder: JSONEncoder
  7 |     private let decoder: JSONDecoder
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/Spidra/HTTPClient.swift:9:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         self.config = config
 11 |         self.session = session
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/Spidra/HTTPClient.swift:9:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:104: error: cannot find type 'URLRequest' in scope
 32 |     }
 33 |
 34 |     private func createRequest<T: Codable>(endpoint: String, method: String, body: T? = nil) throws -> URLRequest {
    |                                                                                                        `- error: cannot find type 'URLRequest' in scope
 35 |         guard let url = URL(string: config.baseUrl + endpoint) else {
 36 |             throw SpidraError.networkError(URLError(.badURL))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:51:76: error: cannot find type 'URLRequest' in scope
 49 |     }
 50 |
 51 |     private func createRequest(endpoint: String, method: String) throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
 52 |         guard let url = URL(string: config.baseUrl + endpoint) else {
 53 |             throw SpidraError.networkError(URLError(.badURL))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:64:47: error: cannot find type 'URLRequest' in scope
 62 |     }
 63 |
 64 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
    |                                               `- error: cannot find type 'URLRequest' in scope
 65 |         let (data, response) = try await session.data(for: request)
 66 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:39:23: error: cannot find 'URLRequest' in scope
 37 |         }
 38 |
 39 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 40 |         request.httpMethod = method
 41 |         request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:56:23: error: cannot find 'URLRequest' in scope
 54 |         }
 55 |
 56 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 57 |         request.httpMethod = method
 58 |         request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:65:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 63 |
 64 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
 65 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 66 |
 67 |         guard let httpResponse = response as? HTTPURLResponse else {
[5/17] Compiling Spidra BatchResource.swift
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | public class HttpClient {
  4 |     private let config: SpidraConfig
  5 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let encoder: JSONEncoder
  7 |     private let decoder: JSONDecoder
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/Spidra/HTTPClient.swift:9:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         self.config = config
 11 |         self.session = session
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/Spidra/HTTPClient.swift:9:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:104: error: cannot find type 'URLRequest' in scope
 32 |     }
 33 |
 34 |     private func createRequest<T: Codable>(endpoint: String, method: String, body: T? = nil) throws -> URLRequest {
    |                                                                                                        `- error: cannot find type 'URLRequest' in scope
 35 |         guard let url = URL(string: config.baseUrl + endpoint) else {
 36 |             throw SpidraError.networkError(URLError(.badURL))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:51:76: error: cannot find type 'URLRequest' in scope
 49 |     }
 50 |
 51 |     private func createRequest(endpoint: String, method: String) throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
 52 |         guard let url = URL(string: config.baseUrl + endpoint) else {
 53 |             throw SpidraError.networkError(URLError(.badURL))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:64:47: error: cannot find type 'URLRequest' in scope
 62 |     }
 63 |
 64 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
    |                                               `- error: cannot find type 'URLRequest' in scope
 65 |         let (data, response) = try await session.data(for: request)
 66 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:39:23: error: cannot find 'URLRequest' in scope
 37 |         }
 38 |
 39 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 40 |         request.httpMethod = method
 41 |         request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:56:23: error: cannot find 'URLRequest' in scope
 54 |         }
 55 |
 56 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 57 |         request.httpMethod = method
 58 |         request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:65:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 63 |
 64 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
 65 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 66 |
 67 |         guard let httpResponse = response as? HTTPURLResponse else {
[6/18] Compiling Spidra Scrape.swift
[7/18] Compiling Spidra SpidraError.swift
[8/18] Compiling Spidra Batch.swift
[9/18] Compiling Spidra Core.swift
[10/18] Compiling Spidra Crawl.swift
[11/18] Compiling Spidra Logs.swift
[12/18] Compiling Spidra ScrapeResource.swift
[13/18] Compiling Spidra UsageResource.swift
[14/18] Compiling Spidra CrawlResource.swift
[15/18] Compiling Spidra LogsResource.swift
[16/18] Compiling Spidra SpidraClient.swift
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:9:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |         self.config = config
 11 |         self.session = session
[17/18] Compiling Spidra AnyCodable.swift
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:9:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |         self.config = config
 11 |         self.session = session
[18/18] Compiling Spidra Usage.swift
BUILD FAILURE 6.0 linux