The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Swollama, reference master (1ae1e1), with Swift 6.1 for Linux on 29 Apr 2025 18:56:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marcusziade/Swollama.git
Reference: master
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/marcusziade/Swollama
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1ae1e15 remove redundant license.md file
Cloned https://github.com/marcusziade/Swollama.git
Revision (git rev-parse @):
1ae1e15b0730e034f9b0d34bf4872cf342acdb31
SUCCESS checkout https://github.com/marcusziade/Swollama.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/marcusziade/Swollama.git
https://github.com/marcusziade/Swollama.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Swollama",
  "name" : "Swollama",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "Swollama",
      "targets" : [
        "Swollama"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwollamaCLI",
      "targets" : [
        "SwollamaCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwollamaTests",
      "module_type" : "SwiftTarget",
      "name" : "SwollamaTests",
      "path" : "Tests/SwollamaTests",
      "sources" : [
        "SwollamaTests.swift"
      ],
      "target_dependencies" : [
        "Swollama"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwollamaCLI",
      "module_type" : "SwiftTarget",
      "name" : "SwollamaCLI",
      "path" : "Sources/SwollamaCLI",
      "product_memberships" : [
        "SwollamaCLI"
      ],
      "sources" : [
        "Commands/ChatCommand.swift",
        "Commands/CommandProtocol.swift",
        "Commands/CopyModelCommand.swift",
        "Commands/DeleteModelCommand.swift",
        "Commands/GenerateCommand.swift",
        "Commands/ListModelsCommand.swift",
        "Commands/ListRunningModelsCommand.swift",
        "Commands/PullModelCommand.swift",
        "Commands/ShowModelCommand.swift",
        "SwollamaCLI.swift",
        "Tools/CLIError.swift",
        "Tools/ModelFormatter.swift",
        "Tools/ProgressTracker.swift",
        "Tools/SpeedCalculator.swift",
        "Tools/TerminalHelper.swift"
      ],
      "target_dependencies" : [
        "Swollama"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Swollama",
      "module_type" : "SwiftTarget",
      "name" : "Swollama",
      "path" : "Sources/Swollama",
      "product_memberships" : [
        "Swollama",
        "SwollamaCLI"
      ],
      "sources" : [
        "ChatOptions.swift",
        "EmbeddingOptions.swift",
        "GenerationOptions.swift",
        "Models/ChatRequest.swift",
        "Models/ChatResponse.swift",
        "Models/EmbeddingRequest.swift",
        "Models/EmbeddingResponse.swift",
        "Models/GenerateRequest.swift",
        "Models/GenerateResponse.swift",
        "Models/ModelFamily.swift",
        "Models/ModelFormat.swift",
        "Models/ModelInformation.swift",
        "Models/ModelsResponse.swift",
        "Models/OllamaModelName.swift",
        "Models/OperationProgress.swift",
        "Models/QuantizationLevel.swift",
        "Models/RunningModelsResponse.swift",
        "Models/ToolCall.swift",
        "Models/ToolDefinition.swift",
        "OllamaClient+Generation.swift",
        "OllamaClient+ModelManagement.swift",
        "OllamaClient.swift",
        "OllamaConfiguration.swift",
        "OllamaError.swift",
        "OllamaProtocol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/30] Emitting module Swollama
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: requirement 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: requirement 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName) async throws -> ModelInformation {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 12 |         let request = ShowModelRequest(name: name.fullName)
 13 |         let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
    :
124 |
125 | /// Options for pulling models
126 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
127 |     /// Whether to allow insecure connections
128 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
    :
134 |
135 | /// Options for pushing models
136 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
137 |     /// Whether to allow insecure connections
138 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 82 |     }
 83 |
 84 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 85 |         let request = DeleteModelRequest(name: name.fullName)
 86 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration options for the Ollama client.
 4 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
 5 |     /// The timeout interval for requests in seconds
 6 |     public let timeoutInterval: TimeInterval
   :
40 |
41 |     /// The default configuration
42 |     public static let `default` = OllamaConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[5/33] Compiling Swollama OllamaConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration options for the Ollama client.
 4 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
 5 |     /// The timeout interval for requests in seconds
 6 |     public let timeoutInterval: TimeInterval
   :
40 |
41 |     /// The default configuration
42 |     public static let `default` = OllamaConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[6/33] Compiling Swollama OllamaError.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration options for the Ollama client.
 4 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
 5 |     /// The timeout interval for requests in seconds
 6 |     public let timeoutInterval: TimeInterval
   :
40 |
41 |     /// The default configuration
42 |     public static let `default` = OllamaConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[7/33] Compiling Swollama OllamaProtocol.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration options for the Ollama client.
 4 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
 5 |     /// The timeout interval for requests in seconds
 6 |     public let timeoutInterval: TimeInterval
   :
40 |
41 |     /// The default configuration
42 |     public static let `default` = OllamaConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[8/33] Compiling Swollama RunningModelsResponse.swift
[9/33] Compiling Swollama ToolCall.swift
[10/33] Compiling Swollama ToolDefinition.swift
[11/33] Compiling Swollama OllamaModelName.swift
[12/33] Compiling Swollama OperationProgress.swift
[13/33] Compiling Swollama QuantizationLevel.swift
[14/33] Compiling Swollama ChatResponse.swift
[15/33] Compiling Swollama EmbeddingRequest.swift
[16/33] Compiling Swollama EmbeddingResponse.swift
[17/33] Compiling Swollama OllamaClient+Generation.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: requirement 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: requirement 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName) async throws -> ModelInformation {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 12 |         let request = ShowModelRequest(name: name.fullName)
 13 |         let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
    :
124 |
125 | /// Options for pulling models
126 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
127 |     /// Whether to allow insecure connections
128 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
    :
134 |
135 | /// Options for pushing models
136 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
137 |     /// Whether to allow insecure connections
138 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 82 |     }
 83 |
 84 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 85 |         let request = DeleteModelRequest(name: name.fullName)
 86 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
 41 |     ) async throws -> Data {
 42 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
 43 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 44 |         request.httpMethod = method
 45 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 52 |         for attempt in 0...configuration.maxRetries {
 53 |             do {
 54 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 55 |
 56 |                 guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
106 |                 do {
107 |                     let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
108 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
109 |                     request.httpMethod = method
110 |                     request.httpBody = body
[18/33] Compiling Swollama OllamaClient+ModelManagement.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: requirement 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: requirement 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName) async throws -> ModelInformation {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 12 |         let request = ShowModelRequest(name: name.fullName)
 13 |         let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
    :
124 |
125 | /// Options for pulling models
126 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
127 |     /// Whether to allow insecure connections
128 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
    :
134 |
135 | /// Options for pushing models
136 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
137 |     /// Whether to allow insecure connections
138 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 82 |     }
 83 |
 84 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 85 |         let request = DeleteModelRequest(name: name.fullName)
 86 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
 41 |     ) async throws -> Data {
 42 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
 43 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 44 |         request.httpMethod = method
 45 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 52 |         for attempt in 0...configuration.maxRetries {
 53 |             do {
 54 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 55 |
 56 |                 guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
106 |                 do {
107 |                     let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
108 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
109 |                     request.httpMethod = method
110 |                     request.httpBody = body
[19/33] Compiling Swollama OllamaClient.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: requirement 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: requirement 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName) async throws -> ModelInformation {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 12 |         let request = ShowModelRequest(name: name.fullName)
 13 |         let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
    :
124 |
125 | /// Options for pulling models
126 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
127 |     /// Whether to allow insecure connections
128 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
    :
134 |
135 | /// Options for pushing models
136 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
137 |     /// Whether to allow insecure connections
138 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 82 |     }
 83 |
 84 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 85 |         let request = DeleteModelRequest(name: name.fullName)
 86 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
 41 |     ) async throws -> Data {
 42 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
 43 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 44 |         request.httpMethod = method
 45 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 52 |         for attempt in 0...configuration.maxRetries {
 53 |             do {
 54 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 55 |
 56 |                 guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
106 |                 do {
107 |                     let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
108 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
109 |                     request.httpMethod = method
110 |                     request.httpBody = body
[20/33] Compiling Swollama ModelFormat.swift
[21/33] Compiling Swollama ModelInformation.swift
[22/33] Compiling Swollama ModelsResponse.swift
[23/33] Compiling Swollama GenerateRequest.swift
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
[24/33] Compiling Swollama GenerateResponse.swift
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
[25/33] Compiling Swollama ModelFamily.swift
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
[26/33] Compiling Swollama ChatOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
[27/33] Compiling Swollama EmbeddingOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
[28/33] Compiling Swollama GenerationOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
[29/33] Compiling Swollama ChatRequest.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/28] Compiling Swollama OllamaClient+Generation.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: requirement 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: requirement 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
 41 |     ) async throws -> Data {
 42 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
 43 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 44 |         request.httpMethod = method
 45 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 52 |         for attempt in 0...configuration.maxRetries {
 53 |             do {
 54 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 55 |
 56 |                 guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
106 |                 do {
107 |                     let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
108 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
109 |                     request.httpMethod = method
110 |                     request.httpBody = body
[3/28] Compiling Swollama OllamaClient+ModelManagement.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: requirement 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: requirement 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
 41 |     ) async throws -> Data {
 42 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
 43 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 44 |         request.httpMethod = method
 45 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 52 |         for attempt in 0...configuration.maxRetries {
 53 |             do {
 54 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 55 |
 56 |                 guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
106 |                 do {
107 |                     let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
108 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
109 |                     request.httpMethod = method
110 |                     request.httpBody = body
[4/28] Compiling Swollama OllamaClient.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: requirement 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: requirement 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
 41 |     ) async throws -> Data {
 42 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
 43 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 44 |         request.httpMethod = method
 45 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 52 |         for attempt in 0...configuration.maxRetries {
 53 |             do {
 54 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 55 |
 56 |                 guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
106 |                 do {
107 |                     let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
108 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
109 |                     request.httpMethod = method
110 |                     request.httpBody = body
[5/31] Compiling Swollama OllamaConfiguration.swift
[6/31] Compiling Swollama OllamaError.swift
[7/31] Compiling Swollama OllamaProtocol.swift
[8/31] Compiling Swollama ChatOptions.swift
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
[9/31] Compiling Swollama EmbeddingOptions.swift
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
[10/31] Compiling Swollama GenerationOptions.swift
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
[11/31] Compiling Swollama ChatRequest.swift
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/31] Emitting module Swollama
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated requirement from protocol 'OllamaProtocol'; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: requirement 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: requirement 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
[13/31] Compiling Swollama ModelFormat.swift
[14/31] Compiling Swollama ModelInformation.swift
[15/31] Compiling Swollama ModelsResponse.swift
[16/31] Compiling Swollama ChatResponse.swift
[17/31] Compiling Swollama EmbeddingRequest.swift
[18/31] Compiling Swollama EmbeddingResponse.swift
[19/31] Compiling Swollama OllamaModelName.swift
[20/31] Compiling Swollama OperationProgress.swift
[21/31] Compiling Swollama QuantizationLevel.swift
[22/31] Compiling Swollama RunningModelsResponse.swift
[23/31] Compiling Swollama ToolCall.swift
[24/31] Compiling Swollama ToolDefinition.swift
[25/31] Compiling Swollama GenerateRequest.swift
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
[26/31] Compiling Swollama GenerateResponse.swift
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
[27/31] Compiling Swollama ModelFamily.swift
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
BUILD FAILURE 6.1 linux