The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build OllamaKit, reference 5.0.8 (b6ff6a), with Swift 6.2 (beta) for macOS (SPM) on 23 Jun 2025 06:21:16 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kevinhermawan/OllamaKit.git
Reference: 5.0.8
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kevinhermawan/OllamaKit
 * tag               5.0.8      -> FETCH_HEAD
HEAD is now at b6ff6a0 release: 5.0.8
Cloned https://github.com/kevinhermawan/OllamaKit.git
Revision (git rev-parse @):
b6ff6a0c75a3756450cfb38074f6264be1314abc
SUCCESS checkout https://github.com/kevinhermawan/OllamaKit.git at 5.0.8
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/kevinhermawan/OllamaKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-1EA4D86E10B52AF.txt
[5/33] Compiling OllamaKit OKCompletionOptions.swift
[6/33] Compiling OllamaKit OKChatRequestData.swift
[7/33] Compiling OllamaKit OKCopyModelRequestData.swift
[8/36] Compiling OllamaKit OKModelInfoRequestData.swift
[9/36] Compiling OllamaKit OKPullModelRequestData.swift
[10/36] Compiling OllamaKit OKCompletionResponse.swift
[11/36] Compiling OllamaKit OllamaKit+Generate.swift
[12/36] Compiling OllamaKit OllamaKit+ModelInfo.swift
[13/36] Compiling OllamaKit OllamaKit+Models.swift
[14/36] Compiling OllamaKit OKModelInfoResponse.swift
[15/36] Compiling OllamaKit OKModelResponse.swift
[16/36] Compiling OllamaKit OKPullModelResponse.swift
[17/36] Compiling OllamaKit JSONDecoder+Default.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:37:34: warning: capture of non-sendable type 'T.Type' in an isolated closure
 35 |                     try validate(response: response)
 36 |
 37 |                     continuation.onTermination = { terminationState in
    |                                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:31:38: warning: capture of non-sendable type 'T.Type' in an isolated closure
 29 |
 30 |     func stream<T: Decodable>(request: URLRequest, with responseType: T.Type) -> AsyncThrowingStream<T, Error> {
 31 |         return AsyncThrowingStream { continuation in
    |                                      `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 32 |             Task {
 33 |                 do {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:39:46: warning: capture of non-sendable type 'T.Type' in an isolated closure
 37 |                     continuation.onTermination = { terminationState in
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
    |                                              `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 40 |                             bytes.task.cancel()
 41 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:52:46: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
 50 |                             do {
 51 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
 52 |                                 continuation.yield(decodedObject)
    |                                              |- error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
    |                                              `- note: task-isolated 'decodedObject' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
 53 |                             } catch {
 54 |                                 continuation.finish(throwing: error)
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[18/36] Compiling OllamaKit JSONEncoder+Default.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:37:34: warning: capture of non-sendable type 'T.Type' in an isolated closure
 35 |                     try validate(response: response)
 36 |
 37 |                     continuation.onTermination = { terminationState in
    |                                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:31:38: warning: capture of non-sendable type 'T.Type' in an isolated closure
 29 |
 30 |     func stream<T: Decodable>(request: URLRequest, with responseType: T.Type) -> AsyncThrowingStream<T, Error> {
 31 |         return AsyncThrowingStream { continuation in
    |                                      `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 32 |             Task {
 33 |                 do {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:39:46: warning: capture of non-sendable type 'T.Type' in an isolated closure
 37 |                     continuation.onTermination = { terminationState in
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
    |                                              `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 40 |                             bytes.task.cancel()
 41 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:52:46: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
 50 |                             do {
 51 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
 52 |                                 continuation.yield(decodedObject)
    |                                              |- error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
    |                                              `- note: task-isolated 'decodedObject' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
 53 |                             } catch {
 54 |                                 continuation.finish(throwing: error)
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[19/36] Compiling OllamaKit OKHTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:37:34: warning: capture of non-sendable type 'T.Type' in an isolated closure
 35 |                     try validate(response: response)
 36 |
 37 |                     continuation.onTermination = { terminationState in
    |                                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:31:38: warning: capture of non-sendable type 'T.Type' in an isolated closure
 29 |
 30 |     func stream<T: Decodable>(request: URLRequest, with responseType: T.Type) -> AsyncThrowingStream<T, Error> {
 31 |         return AsyncThrowingStream { continuation in
    |                                      `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 32 |             Task {
 33 |                 do {
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:39:46: warning: capture of non-sendable type 'T.Type' in an isolated closure
 37 |                     continuation.onTermination = { terminationState in
 38 |                         // Cancellation of our task should cancel the URLSessionDataTask
 39 |                         if case .cancelled = terminationState {
    |                                              `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 40 |                             bytes.task.cancel()
 41 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKHTTPClient.swift:52:46: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
 50 |                             do {
 51 |                                 let decodedObject = try self.decoder.decode(T.self, from: chunk)
 52 |                                 continuation.yield(decodedObject)
    |                                              |- error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
    |                                              `- note: task-isolated 'decodedObject' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
 53 |                             } catch {
 54 |                                 continuation.finish(throwing: error)
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[20/36] Compiling OllamaKit OllamaKit+Chat.swift
[21/36] Compiling OllamaKit OllamaKit+CopyModel.swift
[22/36] Compiling OllamaKit OllamaKit+DeleteModel.swift
[23/36] Compiling OllamaKit OllamaKit+Embeddings.swift
[24/36] Compiling OllamaKit OKChatResponse.swift
[25/36] Compiling OllamaKit OKEmbeddingsResponse.swift
[26/36] Compiling OllamaKit OKGenerateResponse.swift
[27/36] Compiling OllamaKit OKDeleteModelRequestData.swift
[28/36] Compiling OllamaKit OKEmbeddingsRequestData.swift
[29/36] Compiling OllamaKit OKGenerateRequestData.swift
[30/36] Emitting module OllamaKit
[31/36] Compiling OllamaKit OllamaKit+PullModel.swift
[32/36] Compiling OllamaKit OllamaKit+Reachable.swift
[33/36] Compiling OllamaKit OllamaKit.swift
[34/36] Compiling OllamaKit OKJSONValue.swift
[35/36] Compiling OllamaKit OKRouter.swift
[36/36] Compiling OllamaKit StreamingDelegate.swift
Fetching https://github.com/apple/swift-docc-plugin.git
[1/2082] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin.git from cache (1.22s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.4 (3.78s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3415] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.18s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.74s)
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.4.4
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
BUILD FAILURE 6.2 macosSpm