The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Yazman, reference main (1e495a), with Swift 6.1 for Wasm on 24 Feb 2026 07:50:47 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alpozcan/yazman.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/alpozcan/yazman
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1e495a1 chore: rename project to Yazman
Cloned https://github.com/alpozcan/yazman.git
Revision (git rev-parse @):
1e495a197b72af01cd5160f3bfd970b5415510a4
SUCCESS checkout https://github.com/alpozcan/yazman.git at main
========================================
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" : "Yazman",
  "name" : "Yazman",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "yazman",
      "targets" : [
        "yazman"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "yazman",
      "module_type" : "SwiftTarget",
      "name" : "yazman",
      "path" : "Sources/yazman",
      "product_dependencies" : [
        "ArgumentParser",
        "SwiftSoup",
        "Rainbow",
        "Ollama"
      ],
      "product_memberships" : [
        "yazman"
      ],
      "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/Lifecycle.swift",
        "Core/OllamaExtensions.swift",
        "Core/Prompts.swift",
        "Core/Scraper.swift",
        "Core/VectorStore.swift",
        "Utilities/Log.swift",
        "Utilities/Terminal.swift",
        "Yazman.swift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "YazmanTests",
      "module_type" : "SwiftTarget",
      "name" : "YazmanTests",
      "path" : "Tests/YazmanTests",
      "sources" : [
        "ChunkerTests.swift",
        "ConfigTests.swift",
        "ParagraphExtractionTests.swift",
        "PromptsTests.swift",
        "ScraperTests.swift",
        "SpinnerTests.swift",
        "TerminalTests.swift",
        "TurkishContentTests.swift",
        "VectorStoreTests.swift"
      ],
      "target_dependencies" : [
        "yazman"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/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/onevcat/Rainbow.git
Fetching https://github.com/mattt/ollama-swift.git
Fetching https://github.com/scinfu/SwiftSoup.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/759] Fetching ollama-swift
[471/2179] Fetching ollama-swift, rainbow
[1257/7938] Fetching ollama-swift, rainbow, swiftsoup
[3275/25107] Fetching ollama-swift, rainbow, swiftsoup, swift-argument-parser
Fetched https://github.com/mattt/ollama-swift.git from cache (0.64s)
[3031/24348] Fetching rainbow, swiftsoup, swift-argument-parser
Fetched https://github.com/onevcat/Rainbow.git from cache (0.66s)
[1782/22928] Fetching swiftsoup, swift-argument-parser
Fetched https://github.com/scinfu/SwiftSoup.git from cache (1.71s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.71s)
Computing version for https://github.com/onevcat/Rainbow.git
Computed https://github.com/onevcat/Rainbow.git at 4.2.1 (5.66s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.0 (3.13s)
Computing version for https://github.com/mattt/ollama-swift.git
Computed https://github.com/mattt/ollama-swift.git at 1.8.0 (0.93s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.11.3 (1.18s)
Fetching https://github.com/nicklockwood/LRUCache.git
Fetching https://github.com/apple/swift-atomics.git
[1/360] Fetching lrucache
[361/2180] Fetching lrucache, swift-atomics
Fetched https://github.com/nicklockwood/LRUCache.git from cache (0.45s)
[583/1820] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.96s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (12.45s)
Computing version for https://github.com/nicklockwood/LRUCache.git
Computed https://github.com/nicklockwood/LRUCache.git at 1.2.1 (3.50s)
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/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/nicklockwood/LRUCache.git
Working copy of https://github.com/nicklockwood/LRUCache.git resolved at 1.2.1
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
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/22] Write sources
[10/22] Compiling _AtomicsShims.c
[10/22] Write swift-version-24593BA9C3E375BF.txt
[13/68] Compiling Atomics UnsafeAtomic.swift
[14/68] Compiling Atomics UnsafeAtomicLazyReference.swift
[15/70] Compiling ArgumentParserToolInfo ToolInfo.swift
[16/70] Emitting module ArgumentParserToolInfo
[17/71] Compiling Atomics DoubleWord.swift
[18/71] Compiling Atomics ManagedAtomic.swift
[19/71] Emitting module Rainbow
[20/72] Compiling Atomics AtomicMemoryOrderings.swift
[23/72] Compiling Atomics ManagedAtomicLazyReference.swift
[24/72] Compiling Ollama Tool.swift
[25/72] Compiling Atomics AtomicValue.swift
[27/73] Emitting module Atomics
[28/73] Compiling Atomics OptionalRawRepresentable.swift
[29/73] Compiling Atomics RawRepresentable.swift
[30/73] Compiling Atomics AtomicBool.swift
[31/73] Compiling Atomics AtomicInteger.swift
[32/73] Compiling Atomics AtomicOptionalWrappable.swift
[33/73] Compiling Atomics AtomicReference.swift
[34/73] Compiling Atomics AtomicStorage.swift
[37/73] Compiling Atomics IntegerConformances.swift
[38/73] Compiling Atomics PointerConformances.swift
[39/73] Compiling Atomics Primitives.native.swift
[40/73] Compiling Atomics IntegerOperations.swift
[41/73] Compiling Atomics Unmanaged extensions.swift
[41/74] Wrapping AST for ArgumentParserToolInfo for debugging
[43/120] Wrapping AST for Atomics for debugging
[45/120] Emitting module ArgumentParser
[46/126] Compiling Rainbow StyledStringBuilder.swift
[47/126] Compiling ArgumentParser ArgumentHelp.swift
[48/126] Compiling ArgumentParser ArgumentVisibility.swift
[49/126] Compiling Ollama Embeddings.swift
[50/126] Compiling ArgumentParser BashCompletionsGenerator.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
[51/126] Compiling ArgumentParser CompletionsGenerator.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[52/126] 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
[53/126] Emitting module LRUCache
[54/126] Compiling LRUCache LRUCache.swift
[55/127] Compiling ArgumentParser FishCompletionsGenerator.swift
[56/127] Compiling ArgumentParser ZshCompletionsGenerator.swift
[59/127] Compiling ArgumentParser CompletionKind.swift
[60/127] Compiling ArgumentParser Errors.swift
[61/127] Compiling ArgumentParser Argument.swift
[62/127] Compiling ArgumentParser ArgumentDiscussion.swift
[63/128] Compiling Ollama Model.swift
[64/128] Compiling Ollama KeepAlive.swift
[65/128] Compiling Ollama Value.swift
[67/128] Compiling Ollama JSONDecoder+Extensions.swift
[69/128] Compiling ArgumentParser Foundation.swift
[70/128] Compiling ArgumentParser Mutex.swift
[71/128] Compiling ArgumentParser Platform.swift
[72/128] Compiling ArgumentParser SequenceExtensions.swift
[73/128] Compiling ArgumentParser StringExtensions.swift
[74/128] Compiling ArgumentParser SwiftExtensions.swift
[74/128] Wrapping AST for Rainbow for debugging
[75/128] Wrapping AST for LRUCache for debugging
[77/177] Compiling SwiftSoup Tokeniser.swift
[78/177] Compiling SwiftSoup TokeniserState.swift
[79/177] Compiling SwiftSoup TreeBuilder.swift
[80/177] Compiling ArgumentParser ParsableArgumentsValidation.swift
[81/177] Compiling ArgumentParser PositionalArgumentsValidator.swift
[82/177] Compiling ArgumentParser UniqueNamesValidator.swift
[83/177] Compiling SwiftSoup Attribute.swift
[84/177] Compiling SwiftSoup Attributes.swift
[85/177] Compiling SwiftSoup BinarySearch.swift
[86/177] Compiling SwiftSoup BooleanAttribute.swift
[87/177] Compiling SwiftSoup CharacterExt.swift
[88/177] Compiling SwiftSoup CharacterReader.swift
[89/177] Compiling SwiftSoup Cleaner.swift
[90/177] Compiling SwiftSoup Collector.swift
[91/177] Compiling SwiftSoup CombiningEvaluator.swift
[92/177] Compiling SwiftSoup Comment.swift
[93/177] Compiling SwiftSoup CssSelector.swift
[94/177] Compiling SwiftSoup DataNode.swift
[95/177] Compiling SwiftSoup Document.swift
[96/177] Compiling SwiftSoup DocumentType.swift
[97/177] Compiling SwiftSoup ParseError.swift
[98/177] Compiling SwiftSoup ParseErrorList.swift
[99/177] Compiling SwiftSoup ParseSettings.swift
[100/177] Compiling SwiftSoup Parser.swift
[101/177] Compiling SwiftSoup ParsingStrings.swift
[102/177] Compiling SwiftSoup Pattern.swift
[103/177] Compiling SwiftSoup StructuralEvaluator.swift
[104/177] Compiling SwiftSoup SwiftSoup.swift
[105/177] Compiling SwiftSoup Tag.swift
[106/177] Compiling SwiftSoup TextNode.swift
[107/177] Compiling SwiftSoup Token.swift
[108/177] Compiling SwiftSoup TokenQueue.swift
[109/177] Compiling SwiftSoup HtmlTreeBuilder.swift
[110/177] Compiling SwiftSoup HtmlTreeBuilderState.swift
[111/177] Compiling SwiftSoup Mutex.swift
[112/177] Compiling SwiftSoup Node.swift
[113/177] Compiling SwiftSoup NodeTraversor.swift
[114/177] Compiling SwiftSoup NodeVisitor.swift
[115/177] Compiling SwiftSoup OrderedSet.swift
[116/177] Compiling SwiftSoup Element.swift
[117/177] Compiling SwiftSoup Elements.swift
[118/177] Compiling SwiftSoup Entities.swift
[119/177] Compiling SwiftSoup Evaluator.swift
[120/177] Compiling SwiftSoup Exception.swift
[121/177] Compiling SwiftSoup FormElement.swift
[122/178] Wrapping AST for ArgumentParser for debugging
[124/178] Compiling Ollama Data+Extensions.swift
[125/178] Compiling SwiftSoup StreamReader.swift
[126/178] Compiling SwiftSoup String.swift
[127/178] Compiling SwiftSoup StringBuilder.swift
[128/178] Compiling SwiftSoup StringUtil.swift
[137/178] Compiling SwiftSoup QueryParser.swift
[138/178] Compiling SwiftSoup QueryParserCache.swift
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:9: error: cannot find 'pthread_mutex_init' in scope
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |         `- error: cannot find 'pthread_mutex_init' in scope
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:36: error: 'nil' requires a contextual type
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |                                    `- error: 'nil' requires a contextual type
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:86:9: error: cannot find 'pthread_mutex_destroy' in scope
84 |
85 |     deinit {
86 |         pthread_mutex_destroy(&mutex)
   |         `- error: cannot find 'pthread_mutex_destroy' in scope
87 |     }
88 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:90:9: error: cannot find 'pthread_mutex_lock' in scope
88 |
89 |     func lock() {
90 |         pthread_mutex_lock(&mutex)
   |         `- error: cannot find 'pthread_mutex_lock' in scope
91 |     }
92 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:94:9: error: cannot find 'pthread_mutex_unlock' in scope
92 |
93 |     func unlock() {
94 |         pthread_mutex_unlock(&mutex)
   |         `- error: cannot find 'pthread_mutex_unlock' in scope
95 |     }
96 | #endif
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:9: error: cannot find 'pthread_mutex_init' in scope
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |         `- error: cannot find 'pthread_mutex_init' in scope
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:36: error: 'nil' requires a contextual type
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |                                    `- error: 'nil' requires a contextual type
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:86:9: error: cannot find 'pthread_mutex_destroy' in scope
84 |
85 |     deinit {
86 |         pthread_mutex_destroy(&mutex)
   |         `- error: cannot find 'pthread_mutex_destroy' in scope
87 |     }
88 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:90:9: error: cannot find 'pthread_mutex_lock' in scope
88 |
89 |     func lock() {
90 |         pthread_mutex_lock(&mutex)
   |         `- error: cannot find 'pthread_mutex_lock' in scope
91 |     }
92 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:94:9: error: cannot find 'pthread_mutex_unlock' in scope
92 |
93 |     func unlock() {
94 |         pthread_mutex_unlock(&mutex)
   |         `- error: cannot find 'pthread_mutex_unlock' in scope
95 |     }
96 | #endif
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:9: error: cannot find 'pthread_mutex_init' in scope
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |         `- error: cannot find 'pthread_mutex_init' in scope
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:36: error: 'nil' requires a contextual type
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |                                    `- error: 'nil' requires a contextual type
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:86:9: error: cannot find 'pthread_mutex_destroy' in scope
84 |
85 |     deinit {
86 |         pthread_mutex_destroy(&mutex)
   |         `- error: cannot find 'pthread_mutex_destroy' in scope
87 |     }
88 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:90:9: error: cannot find 'pthread_mutex_lock' in scope
88 |
89 |     func lock() {
90 |         pthread_mutex_lock(&mutex)
   |         `- error: cannot find 'pthread_mutex_lock' in scope
91 |     }
92 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:94:9: error: cannot find 'pthread_mutex_unlock' in scope
92 |
93 |     func unlock() {
94 |         pthread_mutex_unlock(&mutex)
   |         `- error: cannot find 'pthread_mutex_unlock' in scope
95 |     }
96 | #endif
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:9: error: cannot find 'pthread_mutex_init' in scope
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |         `- error: cannot find 'pthread_mutex_init' in scope
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:36: error: 'nil' requires a contextual type
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |                                    `- error: 'nil' requires a contextual type
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:86:9: error: cannot find 'pthread_mutex_destroy' in scope
84 |
85 |     deinit {
86 |         pthread_mutex_destroy(&mutex)
   |         `- error: cannot find 'pthread_mutex_destroy' in scope
87 |     }
88 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:90:9: error: cannot find 'pthread_mutex_lock' in scope
88 |
89 |     func lock() {
90 |         pthread_mutex_lock(&mutex)
   |         `- error: cannot find 'pthread_mutex_lock' in scope
91 |     }
92 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:94:9: error: cannot find 'pthread_mutex_unlock' in scope
92 |
93 |     func unlock() {
94 |         pthread_mutex_unlock(&mutex)
   |         `- error: cannot find 'pthread_mutex_unlock' in scope
95 |     }
96 | #endif
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:9: error: cannot find 'pthread_mutex_init' in scope
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |         `- error: cannot find 'pthread_mutex_init' in scope
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:36: error: 'nil' requires a contextual type
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |                                    `- error: 'nil' requires a contextual type
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:86:9: error: cannot find 'pthread_mutex_destroy' in scope
84 |
85 |     deinit {
86 |         pthread_mutex_destroy(&mutex)
   |         `- error: cannot find 'pthread_mutex_destroy' in scope
87 |     }
88 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:90:9: error: cannot find 'pthread_mutex_lock' in scope
88 |
89 |     func lock() {
90 |         pthread_mutex_lock(&mutex)
   |         `- error: cannot find 'pthread_mutex_lock' in scope
91 |     }
92 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:94:9: error: cannot find 'pthread_mutex_unlock' in scope
92 |
93 |     func unlock() {
94 |         pthread_mutex_unlock(&mutex)
   |         `- error: cannot find 'pthread_mutex_unlock' in scope
95 |     }
96 | #endif
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:9: error: cannot find 'pthread_mutex_init' in scope
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |         `- error: cannot find 'pthread_mutex_init' in scope
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:36: error: 'nil' requires a contextual type
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |                                    `- error: 'nil' requires a contextual type
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:86:9: error: cannot find 'pthread_mutex_destroy' in scope
84 |
85 |     deinit {
86 |         pthread_mutex_destroy(&mutex)
   |         `- error: cannot find 'pthread_mutex_destroy' in scope
87 |     }
88 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:90:9: error: cannot find 'pthread_mutex_lock' in scope
88 |
89 |     func lock() {
90 |         pthread_mutex_lock(&mutex)
   |         `- error: cannot find 'pthread_mutex_lock' in scope
91 |     }
92 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:94:9: error: cannot find 'pthread_mutex_unlock' in scope
92 |
93 |     func unlock() {
94 |         pthread_mutex_unlock(&mutex)
   |         `- error: cannot find 'pthread_mutex_unlock' in scope
95 |     }
96 | #endif
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:9: error: cannot find 'pthread_mutex_init' in scope
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |         `- error: cannot find 'pthread_mutex_init' in scope
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:82:36: error: 'nil' requires a contextual type
80 |
81 |     init() {
82 |         pthread_mutex_init(&mutex, nil)
   |                                    `- error: 'nil' requires a contextual type
83 |     }
84 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:86:9: error: cannot find 'pthread_mutex_destroy' in scope
84 |
85 |     deinit {
86 |         pthread_mutex_destroy(&mutex)
   |         `- error: cannot find 'pthread_mutex_destroy' in scope
87 |     }
88 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:90:9: error: cannot find 'pthread_mutex_lock' in scope
88 |
89 |     func lock() {
90 |         pthread_mutex_lock(&mutex)
   |         `- error: cannot find 'pthread_mutex_lock' in scope
91 |     }
92 |
/host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Mutex.swift:94:9: error: cannot find 'pthread_mutex_unlock' in scope
92 |
93 |     func unlock() {
94 |         pthread_mutex_unlock(&mutex)
   |         `- error: cannot find 'pthread_mutex_unlock' in scope
95 |     }
96 | #endif
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/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 Rainbow String+Rainbow.swift
[5/59] Compiling Rainbow OutputTarget.swift
[6/61] Compiling Ollama Embeddings.swift
[7/61] Compiling Rainbow Style.swift
[8/61] Compiling Atomics ManagedAtomicLazyReference.swift
[9/62] Compiling Ollama KeepAlive.swift
[10/62] Compiling Ollama JSONDecoder+Extensions.swift
[11/62] Compiling Rainbow StringGenerator.swift
[13/62] Compiling Atomics AtomicStorage.swift
[14/62] Compiling Atomics AtomicValue.swift
[15/63] Compiling Rainbow Rainbow.swift
[17/63] Compiling Ollama Tool.swift
[18/63] Compiling Ollama Model.swift
[19/63] Compiling Atomics IntegerOperations.swift
[20/63] Compiling Atomics Unmanaged extensions.swift
[21/63] Compiling Rainbow ConditionalStyleBuilder.swift
[22/63] Compiling Rainbow ControlCode.swift
[23/63] Compiling Rainbow String+ConditionalStyling.swift
[25/63] Compiling LRUCache LRUCache.swift
[26/63] Emitting module LRUCache
[27/63] Compiling Rainbow HSLColorConverter.swift
[28/63] Compiling Rainbow ModesExtractor.swift
[31/64] Compiling Ollama Value.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[32/64] 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
[33/64] Compiling Ollama Chat.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
[34/64] Compiling Ollama Client.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
[39/63] Compiling Rainbow StyledStringBuilder.swift
[40/63] Emitting module Rainbow
[41/63] Compiling Rainbow Color.swift
[42/63] Compiling Rainbow ColorApproximation.swift
[45/64] Emitting module ArgumentParserToolInfo
[46/64] Compiling ArgumentParserToolInfo ToolInfo.swift
[49/109] Emitting module Atomics
[50/109] Compiling ArgumentParser Foundation.swift
[51/109] Compiling ArgumentParser Mutex.swift
[52/109] Compiling ArgumentParser Platform.swift
[53/109] Compiling ArgumentParser SequenceExtensions.swift
[54/109] Compiling ArgumentParser StringExtensions.swift
[55/109] Compiling ArgumentParser SwiftExtensions.swift
[56/115] Compiling ArgumentParser Flag.swift
[57/115] Compiling ArgumentParser NameSpecification.swift
[58/115] Compiling ArgumentParser Option.swift
[59/115] Compiling ArgumentParser ArgumentVisibility.swift
[60/115] Compiling ArgumentParser CompletionKind.swift
[61/115] Compiling ArgumentParser Errors.swift
[63/115] Compiling ArgumentParser Tree.swift
[64/115] Compiling ArgumentParser CodingKeyValidator.swift
[65/115] Compiling ArgumentParser NonsenseFlagsValidator.swift
[66/115] Compiling ArgumentParser ParsableArgumentsValidation.swift
[67/115] Compiling ArgumentParser PositionalArgumentsValidator.swift
[68/115] Compiling ArgumentParser UniqueNamesValidator.swift
[69/115] Compiling Ollama Data+Extensions.swift
[70/115] Compiling ArgumentParser ParentCommand.swift
[71/115] Compiling ArgumentParser AsyncParsableCommand.swift
[72/115] Compiling ArgumentParser CommandConfiguration.swift
[73/115] Compiling ArgumentParser CommandGroup.swift
[74/115] Compiling ArgumentParser EnumerableFlag.swift
[75/115] Compiling ArgumentParser ExpressibleByArgument.swift
[76/115] Compiling ArgumentParser ParsableArguments.swift
[77/115] Compiling ArgumentParser InputOrigin.swift
[78/115] Compiling ArgumentParser Name.swift
[79/115] Compiling ArgumentParser Parsed.swift
[80/115] Compiling ArgumentParser ParsedValues.swift
[81/115] Compiling ArgumentParser ParserError.swift
[82/115] Compiling ArgumentParser SplitArguments.swift
BUILD FAILURE 6.1 wasm