Build Information
Successful build of Swollama, reference master (1ae1e1
), with Swift 6.0 for macOS (SPM) on 6 Nov 2024 23:37:40 UTC.
Swift 6 data race errors: 17
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marcusziade/Swollama.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swollama",
"name": "Swollama",
"url": "https://github.com/marcusziade/Swollama.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Swollama",
"dependencies": [
]
}
]
}
Fetching https://github.com/marcusziade/Swollama.git
[1/316] Fetching swollama
Fetched https://github.com/marcusziade/Swollama.git from cache (0.77s)
Creating working copy for https://github.com/marcusziade/Swollama.git
Working copy of https://github.com/marcusziade/Swollama.git resolved at master (1ae1e15)
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/marcusziade/Swollama.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write SwollamaCLI-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/31] Emitting module Swollama
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/Users/admin/builder/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?
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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 | }
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
7 |
8 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: 'configuration' declared here
10 |
11 | /// The configuration used for API requests
12 | var configuration: OllamaConfiguration { get }
| `- note: 'configuration' declared here
13 |
14 | /// Lists all models that are available locally.
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
9 | }
10 |
11 | public func showModel(name: OllamaModelName) async throws -> ModelInformation {
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
12 | let request = ShowModelRequest(name: name.fullName)
13 | let data = try await makeRequest(
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
28 | name: OllamaModelName,
29 | options: PullOptions
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; 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
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | name: OllamaModelName,
47 | options: PushOptions
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; 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
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
82 | }
83 |
84 | public func deleteModel(name: OllamaModelName) async throws {
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
85 | let request = DeleteModelRequest(name: name.fullName)
86 | _ = try await makeRequest(
/Users/admin/builder/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?
[6/33] Compiling Swollama OllamaError.swift
[7/33] Compiling Swollama OllamaProtocol.swift
[8/33] Compiling Swollama ChatRequest.swift
/Users/admin/builder/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?
/Users/admin/builder/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 | }
/Users/admin/builder/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/33] Compiling Swollama ChatResponse.swift
/Users/admin/builder/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?
/Users/admin/builder/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 | }
/Users/admin/builder/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/33] Compiling Swollama EmbeddingRequest.swift
/Users/admin/builder/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?
/Users/admin/builder/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 | }
/Users/admin/builder/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/33] Compiling Swollama EmbeddingResponse.swift
/Users/admin/builder/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 | }
[12/33] Compiling Swollama GenerateRequest.swift
/Users/admin/builder/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 | }
[13/33] Compiling Swollama GenerateResponse.swift
/Users/admin/builder/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 | }
[14/33] Compiling Swollama ToolCall.swift
[15/33] Compiling Swollama ToolDefinition.swift
[16/33] Compiling Swollama QuantizationLevel.swift
[17/33] Compiling Swollama RunningModelsResponse.swift
[18/33] Compiling Swollama ModelFamily.swift
[19/33] Compiling Swollama ModelFormat.swift
[20/33] Compiling Swollama ModelInformation.swift
[21/33] Compiling Swollama ModelsResponse.swift
[22/33] Compiling Swollama OllamaModelName.swift
[23/33] Compiling Swollama OperationProgress.swift
[24/33] Compiling Swollama OllamaClient.swift
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
7 |
8 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: 'configuration' declared here
10 |
11 | /// The configuration used for API requests
12 | var configuration: OllamaConfiguration { get }
| `- note: 'configuration' declared here
13 |
14 | /// Lists all models that are available locally.
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
9 | }
10 |
11 | public func showModel(name: OllamaModelName) async throws -> ModelInformation {
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
12 | let request = ShowModelRequest(name: name.fullName)
13 | let data = try await makeRequest(
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
28 | name: OllamaModelName,
29 | options: PullOptions
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; 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
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | name: OllamaModelName,
47 | options: PushOptions
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; 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
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
82 | }
83 |
84 | public func deleteModel(name: OllamaModelName) async throws {
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
85 | let request = DeleteModelRequest(name: name.fullName)
86 | _ = try await makeRequest(
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:47:16: warning: value 'body' was defined but never used; consider replacing with boolean test
45 | request.httpBody = body
46 |
47 | if let body = body {
| `- warning: value 'body' was defined but never used; consider replacing with boolean test
48 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
49 | }
[25/33] Compiling Swollama OllamaConfiguration.swift
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
7 |
8 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: 'configuration' declared here
10 |
11 | /// The configuration used for API requests
12 | var configuration: OllamaConfiguration { get }
| `- note: 'configuration' declared here
13 |
14 | /// Lists all models that are available locally.
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
9 | }
10 |
11 | public func showModel(name: OllamaModelName) async throws -> ModelInformation {
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
12 | let request = ShowModelRequest(name: name.fullName)
13 | let data = try await makeRequest(
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
28 | name: OllamaModelName,
29 | options: PullOptions
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func pullModel(
| `- warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; 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
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | name: OllamaModelName,
47 | options: PushOptions
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func pushModel(
| `- warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; 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
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
66 | }
67 |
68 | public func copyModel(
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
82 | }
83 |
84 | public func deleteModel(name: OllamaModelName) async throws {
| `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
85 | let request = DeleteModelRequest(name: name.fullName)
86 | _ = try await makeRequest(
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:47:16: warning: value 'body' was defined but never used; consider replacing with boolean test
45 | request.httpBody = body
46 |
47 | if let body = body {
| `- warning: value 'body' was defined but never used; consider replacing with boolean test
48 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
49 | }
[26/33] Compiling Swollama ChatOptions.swift
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
[27/33] Compiling Swollama EmbeddingOptions.swift
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
[28/33] Compiling Swollama GenerationOptions.swift
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
[29/33] Compiling Swollama OllamaClient+Generation.swift
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
[30/33] Compiling Swollama OllamaClient+ModelManagement.swift
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/Users/admin/builder/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
[31/48] Compiling SwollamaCLI SpeedCalculator.swift
[32/48] Compiling SwollamaCLI ModelFormatter.swift
[33/49] Compiling SwollamaCLI ListRunningModelsCommand.swift
[34/49] Compiling SwollamaCLI PullModelCommand.swift
[35/49] Compiling SwollamaCLI ProgressTracker.swift
[36/49] Compiling SwollamaCLI ShowModelCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/SwollamaCLI.swift:6:24: warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | @main
5 | struct SwollamaCLI {
6 | private static var commands: [String: CommandProtocol] = {
| |- warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'commands' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'commands' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | let client = OllamaClient()
8 | return [
[37/49] Compiling SwollamaCLI SwollamaCLI.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/SwollamaCLI.swift:6:24: warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | @main
5 | struct SwollamaCLI {
6 | private static var commands: [String: CommandProtocol] = {
| |- warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'commands' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'commands' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | let client = OllamaClient()
8 | return [
[38/49] Compiling SwollamaCLI CLIError.swift
[39/49] Compiling SwollamaCLI CopyModelCommand.swift
[40/49] Compiling SwollamaCLI DeleteModelCommand.swift
[41/49] Compiling SwollamaCLI ChatCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:107:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
105 |
106 | do {
107 | let stream = try await client.chat(
| |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
| |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
| `- note: access can happen concurrently
108 | messages: messages,
109 | model: model,
[42/49] Compiling SwollamaCLI CommandProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:107:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
105 |
106 | do {
107 | let stream = try await client.chat(
| |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
| |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
| `- note: access can happen concurrently
108 | messages: messages,
109 | model: model,
[43/49] Emitting module SwollamaCLI
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/SwollamaCLI.swift:6:24: warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | @main
5 | struct SwollamaCLI {
6 | private static var commands: [String: CommandProtocol] = {
| |- warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'commands' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'commands' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | let client = OllamaClient()
8 | return [
[44/49] Compiling SwollamaCLI GenerateCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:89:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
87 | )
88 |
89 | let stream = try await client.generateText(
| |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
| |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
| `- note: access can happen concurrently
90 | prompt: input,
91 | model: model,
[45/49] Compiling SwollamaCLI ListModelsCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:89:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
87 | )
88 |
89 | let stream = try await client.generateText(
| |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
| |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
| `- note: access can happen concurrently
90 | prompt: input,
91 | model: model,
[46/49] Compiling SwollamaCLI TerminalHelper.swift
[46/49] Write Objects.LinkFileList
[47/49] Linking SwollamaCLI
[48/49] Applying SwollamaCLI
Build complete! (19.41s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Swollama",
"name" : "Swollama",
"path" : "/Users/admin/builder/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"
}
Done.