Build Information
Failed to build Muharrir, reference v1.0.0 (b89495), with Swift 6.1 for Wasm on 24 Feb 2026 07:53:49 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alpozcan/yazman.git
Reference: v1.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/alpozcan/yazman
* tag v1.0.0 -> FETCH_HEAD
HEAD is now at b89495f Fix CI/release: use Xcode toolchain instead of standalone Swift
Cloned https://github.com/alpozcan/yazman.git
Revision (git rev-parse @):
b89495f71c50d74d2bc1fb27f22ed196c3a5f3b3
SUCCESS checkout https://github.com/alpozcan/yazman.git at v1.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/alpozcan/yazman.git
https://github.com/alpozcan/yazman.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser.git"
},
{
"identity" : "swiftsoup",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/scinfu/SwiftSoup.git"
},
{
"identity" : "rainbow",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/onevcat/Rainbow.git"
},
{
"identity" : "ollama-swift",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/mattt/ollama-swift.git"
}
],
"manifest_display_name" : "Muharrir",
"name" : "Muharrir",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "muharrir",
"targets" : [
"muharrir"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "muharrir",
"module_type" : "SwiftTarget",
"name" : "muharrir",
"path" : "Sources/muharrir",
"product_dependencies" : [
"ArgumentParser",
"SwiftSoup",
"Rainbow",
"Ollama"
],
"product_memberships" : [
"muharrir"
],
"sources" : [
"Commands/AddCommand.swift",
"Commands/CheckCommand.swift",
"Commands/ImproveCommand.swift",
"Commands/ReviewCommand.swift",
"Commands/ScrapeCommand.swift",
"Commands/SearchCommand.swift",
"Commands/StatsCommand.swift",
"Core/Checker.swift",
"Core/Config.swift",
"Core/OllamaExtensions.swift",
"Core/Prompts.swift",
"Core/Scraper.swift",
"Core/VectorStore.swift",
"Muharrir.swift",
"Utilities/Terminal.swift"
],
"type" : "executable"
},
{
"c99name" : "MuharrirTests",
"module_type" : "SwiftTarget",
"name" : "MuharrirTests",
"path" : "Tests/MuharrirTests",
"sources" : [
"ChunkerTests.swift",
"ConfigTests.swift",
"ParagraphExtractionTests.swift",
"PromptsTests.swift",
"ScraperTests.swift",
"TerminalTests.swift",
"TurkishContentTests.swift",
"VectorStoreTests.swift"
],
"target_dependencies" : [
"muharrir"
],
"type" : "test"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/scinfu/SwiftSoup.git
Fetching https://github.com/mattt/ollama-swift.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/onevcat/Rainbow.git
[1/759] Fetching ollama-swift
[707/2179] Fetching ollama-swift, rainbow
[2180/19348] Fetching ollama-swift, rainbow, swift-argument-parser
Fetched https://github.com/onevcat/Rainbow.git from cache (0.36s)
[2133/17928] Fetching ollama-swift, swift-argument-parser
[2134/23687] Fetching ollama-swift, swift-argument-parser, swiftsoup
Fetched https://github.com/scinfu/SwiftSoup.git from cache (0.94s)
Fetched https://github.com/mattt/ollama-swift.git from cache (1.02s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.04s)
Computing version for https://github.com/onevcat/Rainbow.git
Computed https://github.com/onevcat/Rainbow.git at 4.2.1 (4.23s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.0 (1.08s)
Computing version for https://github.com/mattt/ollama-swift.git
Computed https://github.com/mattt/ollama-swift.git at 1.8.0 (0.98s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.11.3 (0.94s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/nicklockwood/LRUCache.git
[1/360] Fetching lrucache
[361/2180] Fetching lrucache, swift-atomics
Fetched https://github.com/nicklockwood/LRUCache.git from cache (0.71s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.71s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.70s)
Computing version for https://github.com/nicklockwood/LRUCache.git
Computed https://github.com/nicklockwood/LRUCache.git at 1.2.1 (4.14s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/onevcat/Rainbow.git
Working copy of https://github.com/onevcat/Rainbow.git resolved at 4.2.1
Creating working copy for https://github.com/mattt/ollama-swift.git
Working copy of https://github.com/mattt/ollama-swift.git resolved at 1.8.0
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.11.3
Creating working copy for https://github.com/nicklockwood/LRUCache.git
Working copy of https://github.com/nicklockwood/LRUCache.git resolved at 1.2.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/22] Write sources
[10/22] Compiling _AtomicsShims.c
[11/22] Write swift-version-24593BA9C3E375BF.txt
[13/68] Emitting module ArgumentParserToolInfo
[14/68] Emitting module LRUCache
[15/68] Compiling Rainbow StringGenerator.swift
[16/68] Compiling Rainbow Style.swift
[17/69] Compiling Ollama Tool.swift
[18/69] Compiling Atomics UnsafeAtomic.swift
[19/69] Compiling Atomics UnsafeAtomicLazyReference.swift
[20/69] Compiling Rainbow Rainbow.swift
[21/69] Compiling Rainbow String+ConditionalStyling.swift
[22/72] Compiling Rainbow String+Rainbow.swift
[25/72] Compiling Atomics ManagedAtomicLazyReference.swift
[28/72] Emitting module Rainbow
[29/72] Compiling ArgumentParserToolInfo ToolInfo.swift
[30/73] Emitting module Atomics
[31/73] Compiling Rainbow ConditionalStyleBuilder.swift
[32/73] Compiling Rainbow ControlCode.swift
[33/73] Compiling Rainbow OutputTarget.swift
[34/73] Compiling Rainbow ColorApproximation.swift
[35/73] Compiling Rainbow HSLColorConverter.swift
[36/73] Compiling Rainbow ModesExtractor.swift
[37/73] Compiling Ollama Chat.swift
[38/73] Compiling Ollama Client.swift
[39/73] Compiling Rainbow Color.swift
[40/73] Wrapping AST for ArgumentParserToolInfo for debugging
[42/90] Compiling Atomics IntegerOperations.swift
[43/90] Compiling Atomics Unmanaged extensions.swift
[44/120] Wrapping AST for Atomics for debugging
[46/120] Compiling ArgumentParser ArgumentVisibility.swift
[47/120] Compiling ArgumentParser CompletionKind.swift
[48/120] Compiling ArgumentParser Errors.swift
[49/120] Compiling ArgumentParser Flag.swift
[50/120] Compiling Ollama Embeddings.swift
[51/120] Compiling Ollama Value.swift
[52/120] Compiling ArgumentParser NameSpecification.swift
[53/120] Compiling ArgumentParser Option.swift
[54/120] Compiling Ollama JSONDecoder+Extensions.swift
[55/120] Compiling LRUCache LRUCache.swift
[56/121] Compiling Ollama Model.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[57/121] Emitting module Ollama
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:58: error: cannot infer contextual base in reference to member 'default'
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: cannot infer contextual base in reference to member 'default'
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// The underlying client session.
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Creates a client with the specified session, host, and user agent.
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | host: URL,
39 | userAgent: String? = nil
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |
62 | /// An unexpected error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:14: error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:14: error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
61 |
62 | /// An unexpected error.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:206:17: error: cannot find type 'URLRequest' in scope
204 | _ path: String,
205 | params: [String: Value]? = nil
206 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
207 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
208 | urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:58: error: cannot infer contextual base in reference to member 'default'
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: cannot infer contextual base in reference to member 'default'
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// The underlying client session.
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Creates a client with the specified session, host, and user agent.
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | host: URL,
39 | userAgent: String? = nil
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |
62 | /// An unexpected error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:14: error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:14: error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
61 |
62 | /// An unexpected error.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:206:17: error: cannot find type 'URLRequest' in scope
204 | _ path: String,
205 | params: [String: Value]? = nil
206 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
207 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
208 | urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:72:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return "Request error: \(detail)"
71 | case .responseError(let response, let detail):
72 | return "Response error (Status \(response.statusCode)): \(detail)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | case .decodingError(let response, let detail):
74 | return "Decoding error (Status \(response.statusCode)): \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:74:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | return "Response error (Status \(response.statusCode)): \(detail)"
73 | case .decodingError(let response, let detail):
74 | return "Decoding error (Status \(response.statusCode)): \(detail)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | case .unexpectedError(let detail):
76 | return "Unexpected error: \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:97:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
95 | ) async throws -> T {
96 | let request = try createRequest(method, path, params: params)
97 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
98 | let httpResponse = try validateResponse(response)
99 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:231:22: error: cannot find type 'URLRequest' in scope
229 | #"Unable to construct URL with host "\#(host)" and path "\#(path)""#)
230 | }
231 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
232 | request.httpMethod = method.rawValue
233 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:248:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
248 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
250 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:58: error: cannot infer contextual base in reference to member 'default'
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: cannot infer contextual base in reference to member 'default'
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// The underlying client session.
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Creates a client with the specified session, host, and user agent.
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | host: URL,
39 | userAgent: String? = nil
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |
62 | /// An unexpected error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:14: error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:14: error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
61 |
62 | /// An unexpected error.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:206:17: error: cannot find type 'URLRequest' in scope
204 | _ path: String,
205 | params: [String: Value]? = nil
206 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
207 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
208 | urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:72:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return "Request error: \(detail)"
71 | case .responseError(let response, let detail):
72 | return "Response error (Status \(response.statusCode)): \(detail)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | case .decodingError(let response, let detail):
74 | return "Decoding error (Status \(response.statusCode)): \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:74:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | return "Response error (Status \(response.statusCode)): \(detail)"
73 | case .decodingError(let response, let detail):
74 | return "Decoding error (Status \(response.statusCode)): \(detail)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | case .unexpectedError(let detail):
76 | return "Unexpected error: \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:97:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
95 | ) async throws -> T {
96 | let request = try createRequest(method, path, params: params)
97 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
98 | let httpResponse = try validateResponse(response)
99 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:231:22: error: cannot find type 'URLRequest' in scope
229 | #"Unable to construct URL with host "\#(host)" and path "\#(path)""#)
230 | }
231 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
232 | request.httpMethod = method.rawValue
233 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:248:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
248 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
250 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[60/121] Compiling Ollama KeepAlive.swift
[61/121] Compiling Rainbow StyledStringBuilder.swift
[62/121] Compiling ArgumentParser OptionGroup.swift
[63/121] Compiling ArgumentParser BashCompletionsGenerator.swift
[64/121] Compiling ArgumentParser CompletionsGenerator.swift
[65/121] Compiling ArgumentParser FishCompletionsGenerator.swift
[66/122] Compiling ArgumentParser Foundation.swift
[67/122] Compiling ArgumentParser Mutex.swift
[68/122] Compiling ArgumentParser Platform.swift
[69/122] Compiling ArgumentParser SequenceExtensions.swift
[70/122] Compiling ArgumentParser StringExtensions.swift
[71/122] Compiling ArgumentParser SwiftExtensions.swift
[74/128] Emitting module ArgumentParser
[81/128] Wrapping AST for LRUCache for debugging
[83/128] Compiling ArgumentParser InputOrigin.swift
[84/128] Compiling ArgumentParser Name.swift
[85/128] Compiling ArgumentParser Parsed.swift
[86/128] Compiling ArgumentParser ParsedValues.swift
[87/128] Compiling ArgumentParser ParserError.swift
[88/128] Compiling ArgumentParser SplitArguments.swift
[89/128] Compiling ArgumentParser DumpHelpGenerator.swift
[90/128] Compiling ArgumentParser HelpCommand.swift
[91/128] Compiling ArgumentParser HelpGenerator.swift
[92/128] Compiling ArgumentParser MessageInfo.swift
[93/128] Compiling ArgumentParser UsageGenerator.swift
[94/128] Compiling ArgumentParser CollectionExtensions.swift
[98/128] Compiling ArgumentParser ZshCompletionsGenerator.swift
[99/128] Compiling ArgumentParser Argument.swift
[100/128] Compiling ArgumentParser ArgumentDiscussion.swift
[101/128] Compiling ArgumentParser ArgumentHelp.swift
[101/128] Wrapping AST for Rainbow for debugging
[103/177] Compiling SwiftSoup ParseErrorList.swift
[104/177] Compiling SwiftSoup ParseSettings.swift
[105/177] Compiling SwiftSoup Parser.swift
[106/177] Compiling SwiftSoup ParsingStrings.swift
[107/177] Compiling SwiftSoup Pattern.swift
[108/177] Compiling SwiftSoup QueryParser.swift
[109/177] Compiling SwiftSoup QueryParserCache.swift
[110/177] Compiling SwiftSoup Tag.swift
[111/177] Compiling SwiftSoup Element.swift
[112/177] Compiling SwiftSoup Elements.swift
[113/177] Compiling SwiftSoup Entities.swift
[114/177] Compiling SwiftSoup Evaluator.swift
[115/177] Compiling SwiftSoup Exception.swift
[116/177] Compiling SwiftSoup Tokeniser.swift
[117/177] Compiling SwiftSoup TokeniserState.swift
[118/177] Compiling SwiftSoup TreeBuilder.swift
[119/177] Compiling ArgumentParser ParsableArgumentsValidation.swift
[120/177] Compiling ArgumentParser PositionalArgumentsValidator.swift
[121/177] Compiling ArgumentParser UniqueNamesValidator.swift
[122/178] Compiling Ollama Data+Extensions.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/13] Write swift-version-24593BA9C3E375BF.txt
[4/59] Compiling Ollama Tool.swift
[5/60] Emitting module ArgumentParserToolInfo
[6/60] Compiling Atomics UnsafeAtomic.swift
[7/60] Compiling Atomics UnsafeAtomicLazyReference.swift
[8/60] Compiling Atomics ManagedAtomic.swift
[9/60] Compiling Atomics ManagedAtomicLazyReference.swift
[10/62] Emitting module Rainbow
[11/63] Compiling Atomics OptionalRawRepresentable.swift
[12/63] Compiling Atomics RawRepresentable.swift
[13/63] Compiling Atomics DoubleWord.swift
[15/63] Compiling Atomics AtomicMemoryOrderings.swift
[17/63] Compiling Atomics AtomicStorage.swift
[18/63] Compiling Atomics AtomicValue.swift
[19/63] Emitting module LRUCache
[20/63] Compiling LRUCache LRUCache.swift
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:58: error: cannot infer contextual base in reference to member 'default'
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: cannot infer contextual base in reference to member 'default'
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// The underlying client session.
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Creates a client with the specified session, host, and user agent.
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | host: URL,
39 | userAgent: String? = nil
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |
62 | /// An unexpected error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:14: error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:14: error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
61 |
62 | /// An unexpected error.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:206:17: error: cannot find type 'URLRequest' in scope
204 | _ path: String,
205 | params: [String: Value]? = nil
206 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
207 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
208 | urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:72:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return "Request error: \(detail)"
71 | case .responseError(let response, let detail):
72 | return "Response error (Status \(response.statusCode)): \(detail)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | case .decodingError(let response, let detail):
74 | return "Decoding error (Status \(response.statusCode)): \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:74:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | return "Response error (Status \(response.statusCode)): \(detail)"
73 | case .decodingError(let response, let detail):
74 | return "Decoding error (Status \(response.statusCode)): \(detail)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | case .unexpectedError(let detail):
76 | return "Unexpected error: \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:97:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
95 | ) async throws -> T {
96 | let request = try createRequest(method, path, params: params)
97 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
98 | let httpResponse = try validateResponse(response)
99 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:231:22: error: cannot find type 'URLRequest' in scope
229 | #"Unable to construct URL with host "\#(host)" and path "\#(path)""#)
230 | }
231 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
232 | request.httpMethod = method.rawValue
233 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:248:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
248 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
250 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:58: error: cannot infer contextual base in reference to member 'default'
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: cannot infer contextual base in reference to member 'default'
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// The underlying client session.
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Creates a client with the specified session, host, and user agent.
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | host: URL,
39 | userAgent: String? = nil
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |
62 | /// An unexpected error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:14: error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:14: error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
61 |
62 | /// An unexpected error.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:206:17: error: cannot find type 'URLRequest' in scope
204 | _ path: String,
205 | params: [String: Value]? = nil
206 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
207 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
208 | urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:72:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return "Request error: \(detail)"
71 | case .responseError(let response, let detail):
72 | return "Response error (Status \(response.statusCode)): \(detail)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | case .decodingError(let response, let detail):
74 | return "Decoding error (Status \(response.statusCode)): \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:74:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | return "Response error (Status \(response.statusCode)): \(detail)"
73 | case .decodingError(let response, let detail):
74 | return "Decoding error (Status \(response.statusCode)): \(detail)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | case .unexpectedError(let detail):
76 | return "Unexpected error: \(detail)"
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:97:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
95 | ) async throws -> T {
96 | let request = try createRequest(method, path, params: params)
97 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
98 | let httpResponse = try validateResponse(response)
99 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:231:22: error: cannot find type 'URLRequest' in scope
229 | #"Unable to construct URL with host "\#(host)" and path "\#(path)""#)
230 | }
231 | var request: URLRequest = URLRequest(url: url)
| `- error: cannot find type 'URLRequest' in scope
232 | request.httpMethod = method.rawValue
233 |
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:248:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
248 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
250 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[24/64] Compiling Atomics AtomicInteger.swift
[25/64] Compiling Atomics AtomicOptionalWrappable.swift
[26/64] Compiling Atomics AtomicReference.swift
[27/63] Compiling Ollama KeepAlive.swift
[28/63] Compiling Ollama JSONDecoder+Extensions.swift
[29/63] Compiling Ollama Model.swift
[30/63] Compiling Atomics IntegerOperations.swift
[31/63] Compiling Atomics Unmanaged extensions.swift
[32/63] Compiling Atomics AtomicBool.swift
[36/63] Compiling Rainbow StyledStringBuilder.swift
[37/63] Compiling Atomics Primitives.native.swift
[39/63] Compiling Atomics IntegerConformances.swift
[40/63] Compiling Atomics PointerConformances.swift
[43/64] Compiling Ollama Value.swift
[45/63] Compiling ArgumentParserToolInfo ToolInfo.swift
[47/64] Emitting module Atomics
[48/109] Compiling ArgumentParser BashCompletionsGenerator.swift
[49/109] Compiling ArgumentParser CompletionsGenerator.swift
[50/109] Compiling ArgumentParser FishCompletionsGenerator.swift
[51/109] Compiling ArgumentParser ArgumentHelp.swift
[52/109] Compiling ArgumentParser ArgumentVisibility.swift
[53/109] Compiling ArgumentParser CompletionKind.swift
[55/109] Compiling Ollama Embeddings.swift
[56/109] Compiling Ollama Data+Extensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[57/109] Emitting module Ollama
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:58: error: cannot infer contextual base in reference to member 'default'
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: cannot infer contextual base in reference to member 'default'
38 | host: URL,
39 | userAgent: String? = nil
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// The underlying client session.
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Creates a client with the specified session, host, and user agent.
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// - userAgent: The value for the `User-Agent` header sent in requests, if any. Defaults to `nil`.
36 | public init(
37 | session: URLSession = URLSession(configuration: .default),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | host: URL,
39 | userAgent: String? = nil
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |
62 | /// An unexpected error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:57:14: error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
55 |
56 | /// An error returned by the Ollama HTTP API.
57 | case responseError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'responseError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:60:14: error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
58 |
59 | /// An error encountered while decoding the response.
60 | case decodingError(response: HTTPURLResponse, detail: String)
| `- error: associated value 'decodingError(response:detail:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
61 |
62 | /// An unexpected error.
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:206:17: error: cannot find type 'URLRequest' in scope
204 | _ path: String,
205 | params: [String: Value]? = nil
206 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
207 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
208 | urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
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/.build/checkouts/ollama-swift/Sources/Ollama/Client.swift:247:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | private func validateResponse(_ response: URLResponse) throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | guard let httpResponse = response as? HTTPURLResponse else {
249 | throw Error.unexpectedError("Response is not HTTPURLResponse")
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
BUILD FAILURE 6.1 wasm