Build Information
Failed to build Spidra, reference main (3d0230), with Swift 6.1 for Linux on 29 Oct 2026 18:39:59 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/spidra-io/spidra-swift.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/spidra-io/spidra-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3d02308 feat: bring Swift SDK up to parity with Python SDK v0.6.0
Cloned https://github.com/spidra-io/spidra-swift.git
Revision (git rev-parse @):
3d02308f397794b5fcb70122777e449d91c7da9d
SUCCESS checkout https://github.com/spidra-io/spidra-swift.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/spidra-io/spidra-swift.git
https://github.com/spidra-io/spidra-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-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
linux-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:b6bfb4c5da2c5a0e111d7eb0c087cb4f5887cce9a34b7779faa557952c747cfc
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.1-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/29] 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:54:17: error: cannot find type 'URLRequest' in scope
52 | body: T? = nil,
53 | query: [String: String?]? = nil
54 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
55 | var base = config.baseUrl
56 | if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
| `- error: cannot find type 'URLRequest' in scope
96 | let (data, response) = try await session.data(for: request)
97 |
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, 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/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, session: session)
[4/32] Compiling Spidra Map.swift
[5/32] Compiling Spidra Monitors.swift
[6/32] Compiling Spidra Parse.swift
[7/32] Compiling Spidra SpidraError.swift
[8/32] Compiling Spidra Templates.swift
[9/32] Compiling Spidra Usage.swift
[10/32] 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:54:17: error: cannot find type 'URLRequest' in scope
52 | body: T? = nil,
53 | query: [String: String?]? = nil
54 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
55 | var base = config.baseUrl
56 | if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
| `- error: cannot find type 'URLRequest' in scope
96 | let (data, response) = try await session.data(for: request)
97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 | public func delete(_ endpoint: String) async throws {
33 | let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
34 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 | guard let httpResponse = response as? HTTPURLResponse else {
36 | throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
80 | }
81 |
82 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
83 | request.httpMethod = method
84 | request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
96 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 |
98 | guard let httpResponse = response as? HTTPURLResponse else {
[11/32] Compiling Spidra AccountResource.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:54:17: error: cannot find type 'URLRequest' in scope
52 | body: T? = nil,
53 | query: [String: String?]? = nil
54 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
55 | var base = config.baseUrl
56 | if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
| `- error: cannot find type 'URLRequest' in scope
96 | let (data, response) = try await session.data(for: request)
97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 | public func delete(_ endpoint: String) async throws {
33 | let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
34 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 | guard let httpResponse = response as? HTTPURLResponse else {
36 | throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
80 | }
81 |
82 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
83 | request.httpMethod = method
84 | request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
96 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 |
98 | guard let httpResponse = response as? HTTPURLResponse else {
[12/32] 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:54:17: error: cannot find type 'URLRequest' in scope
52 | body: T? = nil,
53 | query: [String: String?]? = nil
54 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
55 | var base = config.baseUrl
56 | if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
| `- error: cannot find type 'URLRequest' in scope
96 | let (data, response) = try await session.data(for: request)
97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 | public func delete(_ endpoint: String) async throws {
33 | let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
34 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 | guard let httpResponse = response as? HTTPURLResponse else {
36 | throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
80 | }
81 |
82 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
83 | request.httpMethod = method
84 | request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
96 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 |
98 | guard let httpResponse = response as? HTTPURLResponse else {
[13/32] Compiling Spidra CrawlResource.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:54:17: error: cannot find type 'URLRequest' in scope
52 | body: T? = nil,
53 | query: [String: String?]? = nil
54 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
55 | var base = config.baseUrl
56 | if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
| `- error: cannot find type 'URLRequest' in scope
96 | let (data, response) = try await session.data(for: request)
97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 | public func delete(_ endpoint: String) async throws {
33 | let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
34 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 | guard let httpResponse = response as? HTTPURLResponse else {
36 | throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
80 | }
81 |
82 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
83 | request.httpMethod = method
84 | request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
96 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 |
98 | guard let httpResponse = response as? HTTPURLResponse else {
[14/32] Compiling Spidra Presets.swift
[15/32] Compiling Spidra Scrape.swift
[16/32] Compiling Spidra Search.swift
[17/32] Compiling Spidra PresetsResource.swift
[18/32] Compiling Spidra ScrapeResource.swift
[19/32] Compiling Spidra SearchResource.swift
[20/32] Compiling Spidra TemplatesResource.swift
[21/32] Compiling Spidra Batch.swift
[22/32] Compiling Spidra Core.swift
[23/32] Compiling Spidra Crawl.swift
[24/32] Compiling Spidra Logs.swift
[25/32] Compiling Spidra UsageResource.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, 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/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, session: session)
[26/32] Compiling Spidra SpidraClient.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, 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/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, session: session)
[27/32] Compiling Spidra Account.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, 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/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, session: session)
[28/32] Compiling Spidra AnyCodable.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, 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/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, session: session)
[29/32] Compiling Spidra LogsResource.swift
[30/32] Compiling Spidra MapResource.swift
[31/32] Compiling Spidra MonitorsResource.swift
[32/32] Compiling Spidra ParseResource.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:b6bfb4c5da2c5a0e111d7eb0c087cb4f5887cce9a34b7779faa557952c747cfc
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/28] 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:54:17: error: cannot find type 'URLRequest' in scope
52 | body: T? = nil,
53 | query: [String: String?]? = nil
54 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
55 | var base = config.baseUrl
56 | if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
| `- error: cannot find type 'URLRequest' in scope
96 | let (data, response) = try await session.data(for: request)
97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 | public func delete(_ endpoint: String) async throws {
33 | let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
34 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 | guard let httpResponse = response as? HTTPURLResponse else {
36 | throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
80 | }
81 |
82 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
83 | request.httpMethod = method
84 | request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
96 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 |
98 | guard let httpResponse = response as? HTTPURLResponse else {
[3/28] Compiling Spidra AccountResource.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:54:17: error: cannot find type 'URLRequest' in scope
52 | body: T? = nil,
53 | query: [String: String?]? = nil
54 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
55 | var base = config.baseUrl
56 | if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
| `- error: cannot find type 'URLRequest' in scope
96 | let (data, response) = try await session.data(for: request)
97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 | public func delete(_ endpoint: String) async throws {
33 | let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
34 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 | guard let httpResponse = response as? HTTPURLResponse else {
36 | throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
80 | }
81 |
82 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
83 | request.httpMethod = method
84 | request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
96 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 |
98 | guard let httpResponse = response as? HTTPURLResponse else {
[4/28] 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:54:17: error: cannot find type 'URLRequest' in scope
52 | body: T? = nil,
53 | query: [String: String?]? = nil
54 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
55 | var base = config.baseUrl
56 | if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
| `- error: cannot find type 'URLRequest' in scope
96 | let (data, response) = try await session.data(for: request)
97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 | public func delete(_ endpoint: String) async throws {
33 | let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
34 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 | guard let httpResponse = response as? HTTPURLResponse else {
36 | throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
80 | }
81 |
82 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
83 | request.httpMethod = method
84 | request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
96 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 |
98 | guard let httpResponse = response as? HTTPURLResponse else {
[5/28] Compiling Spidra CrawlResource.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:54:17: error: cannot find type 'URLRequest' in scope
52 | body: T? = nil,
53 | query: [String: String?]? = nil
54 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
55 | var base = config.baseUrl
56 | if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
| `- error: cannot find type 'URLRequest' in scope
96 | let (data, response) = try await session.data(for: request)
97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 | public func delete(_ endpoint: String) async throws {
33 | let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
34 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 | guard let httpResponse = response as? HTTPURLResponse else {
36 | throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
80 | }
81 |
82 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
83 | request.httpMethod = method
84 | request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
96 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 |
98 | guard let httpResponse = response as? HTTPURLResponse else {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/31] 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:54:17: error: cannot find type 'URLRequest' in scope
52 | body: T? = nil,
53 | query: [String: String?]? = nil
54 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
55 | var base = config.baseUrl
56 | if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | private func execute<U: Codable>(request: URLRequest) async throws -> U {
| `- error: cannot find type 'URLRequest' in scope
96 | let (data, response) = try await session.data(for: request)
97 |
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, 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/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, session: session)
[7/31] Compiling Spidra PresetsResource.swift
[8/31] Compiling Spidra ScrapeResource.swift
[9/31] Compiling Spidra SearchResource.swift
[10/31] Compiling Spidra TemplatesResource.swift
[11/31] Compiling Spidra SpidraError.swift
[12/31] Compiling Spidra Templates.swift
[13/31] Compiling Spidra Usage.swift
[14/31] Compiling Spidra LogsResource.swift
[15/31] Compiling Spidra MapResource.swift
[16/31] Compiling Spidra MonitorsResource.swift
[17/31] Compiling Spidra ParseResource.swift
[18/31] Compiling Spidra Map.swift
[19/31] Compiling Spidra Monitors.swift
[20/31] Compiling Spidra Parse.swift
[21/31] Compiling Spidra UsageResource.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, 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/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, session: session)
[22/31] Compiling Spidra SpidraClient.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, 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/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, session: session)
[23/31] Compiling Spidra Account.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, 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/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, session: session)
[24/31] Compiling Spidra AnyCodable.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, 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/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let http: HttpClient
18 |
19 | public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
21 | self.http = HttpClient(config: config, session: session)
[25/31] Compiling Spidra Presets.swift
[26/31] Compiling Spidra Scrape.swift
[27/31] Compiling Spidra Search.swift
[28/31] Compiling Spidra Batch.swift
[29/31] Compiling Spidra Core.swift
[30/31] Compiling Spidra Crawl.swift
[31/31] Compiling Spidra Logs.swift
BUILD FAILURE 6.1 linux