Build Information
Successful build of OllamaKit, reference main (f94752
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 16:39:42 UTC.
Swift 6 data race errors: 3
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/kevinhermawan/OllamaKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kevinhermawan/OllamaKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f947524 release: 5.0.5
Cloned https://github.com/kevinhermawan/OllamaKit.git
Revision (git rev-parse @):
f947524e08fa8b0ddb875834a81ed7b4cf9ea23a
SUCCESS checkout https://github.com/kevinhermawan/OllamaKit.git at main
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2038] Fetching swift-docc-plugin
[226/5191] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.32s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.32s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.3.0 (3.24s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.69s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
========================================
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": "ollamakit",
"name": "OllamaKit",
"url": "https://github.com/kevinhermawan/OllamaKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OllamaKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/kevinhermawan/OllamaKit.git
[1/593] Fetching ollamakit
Fetched https://github.com/kevinhermawan/OllamaKit.git from cache (0.78s)
Creating working copy for https://github.com/kevinhermawan/OllamaKit.git
Working copy of https://github.com/kevinhermawan/OllamaKit.git resolved at main (f947524)
warning: '.resolve-product-dependencies': dependency 'ollamakit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/kevinhermawan/OllamaKit.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
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/31] Emitting module OllamaKit
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKRouter.swift:11:16: warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal enum OKRouter {
11 | static var baseURL = URL(string: "http://localhost:11434")!
| |- warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'baseURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'baseURL' 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
12 |
13 | case root
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/StreamingDelegate.swift:11:16: warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | internal class StreamingDelegate: NSObject, URLSessionDataDelegate {
| `- warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
12 | private let subject = PassthroughSubject<Data, URLError>()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/StreamingDelegate.swift:12:17: warning: stored property 'subject' of 'Sendable'-conforming class 'StreamingDelegate' has non-sendable type 'PassthroughSubject<Data, URLError>'; this is an error in the Swift 6 language mode
10 |
11 | internal class StreamingDelegate: NSObject, URLSessionDataDelegate {
12 | private let subject = PassthroughSubject<Data, URLError>()
| `- warning: stored property 'subject' of 'Sendable'-conforming class 'StreamingDelegate' has non-sendable type 'PassthroughSubject<Data, URLError>'; this is an error in the Swift 6 language mode
13 |
14 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/StreamingDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
6 | //
7 |
8 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
9 | import Foundation
10 |
[6/33] Compiling OllamaKit OKDeleteModelRequestData.swift
[7/33] Compiling OllamaKit OKEmbeddingsRequestData.swift
[8/33] Compiling OllamaKit OKGenerateRequestData.swift
[9/33] Compiling OllamaKit OllamaKit+Chat.swift
[10/33] Compiling OllamaKit OllamaKit+CopyModel.swift
[11/33] Compiling OllamaKit OllamaKit+DeleteModel.swift
[12/33] Compiling OllamaKit OllamaKit+Models.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKRouter.swift:11:16: warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal enum OKRouter {
11 | static var baseURL = URL(string: "http://localhost:11434")!
| |- warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'baseURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'baseURL' 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
12 |
13 | case root
[13/33] Compiling OllamaKit OllamaKit+Reachable.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKRouter.swift:11:16: warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal enum OKRouter {
11 | static var baseURL = URL(string: "http://localhost:11434")!
| |- warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'baseURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'baseURL' 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
12 |
13 | case root
[14/33] Compiling OllamaKit OllamaKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKRouter.swift:11:16: warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal enum OKRouter {
11 | static var baseURL = URL(string: "http://localhost:11434")!
| |- warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'baseURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'baseURL' 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
12 |
13 | case root
[15/33] Compiling OllamaKit OKCompletionOptions.swift
[16/33] Compiling OllamaKit OKChatRequestData.swift
[17/33] Compiling OllamaKit OKCopyModelRequestData.swift
[18/33] Compiling OllamaKit OKHTTPClient.swift
[19/33] Compiling OllamaKit OKJSONValue.swift
[20/33] Compiling OllamaKit OKModelResponse.swift
[21/33] Compiling OllamaKit JSONDecoder+Default.swift
[22/33] Compiling OllamaKit JSONEncoder+Default.swift
[23/33] Compiling OllamaKit OKRouter.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKRouter.swift:11:16: warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal enum OKRouter {
11 | static var baseURL = URL(string: "http://localhost:11434")!
| |- warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'baseURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'baseURL' 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
12 |
13 | case root
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/StreamingDelegate.swift:11:16: warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | internal class StreamingDelegate: NSObject, URLSessionDataDelegate {
| `- warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
12 | private let subject = PassthroughSubject<Data, URLError>()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/StreamingDelegate.swift:12:17: warning: stored property 'subject' of 'Sendable'-conforming class 'StreamingDelegate' has non-sendable type 'PassthroughSubject<Data, URLError>'; this is an error in the Swift 6 language mode
10 |
11 | internal class StreamingDelegate: NSObject, URLSessionDataDelegate {
12 | private let subject = PassthroughSubject<Data, URLError>()
| `- warning: stored property 'subject' of 'Sendable'-conforming class 'StreamingDelegate' has non-sendable type 'PassthroughSubject<Data, URLError>'; this is an error in the Swift 6 language mode
13 |
14 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/StreamingDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
6 | //
7 |
8 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
9 | import Foundation
10 |
[24/33] Compiling OllamaKit StreamingDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/OKRouter.swift:11:16: warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | internal enum OKRouter {
11 | static var baseURL = URL(string: "http://localhost:11434")!
| |- warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'baseURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'baseURL' 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
12 |
13 | case root
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/StreamingDelegate.swift:11:16: warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | internal class StreamingDelegate: NSObject, URLSessionDataDelegate {
| `- warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
12 | private let subject = PassthroughSubject<Data, URLError>()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/StreamingDelegate.swift:12:17: warning: stored property 'subject' of 'Sendable'-conforming class 'StreamingDelegate' has non-sendable type 'PassthroughSubject<Data, URLError>'; this is an error in the Swift 6 language mode
10 |
11 | internal class StreamingDelegate: NSObject, URLSessionDataDelegate {
12 | private let subject = PassthroughSubject<Data, URLError>()
| `- warning: stored property 'subject' of 'Sendable'-conforming class 'StreamingDelegate' has non-sendable type 'PassthroughSubject<Data, URLError>'; this is an error in the Swift 6 language mode
13 |
14 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/OllamaKit/Utils/StreamingDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
6 | //
7 |
8 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
9 | import Foundation
10 |
[25/33] Compiling OllamaKit OKEmbeddingsResponse.swift
[26/33] Compiling OllamaKit OKGenerateResponse.swift
[27/33] Compiling OllamaKit OKModelInfoResponse.swift
[28/33] Compiling OllamaKit OllamaKit+Embeddings.swift
[29/33] Compiling OllamaKit OllamaKit+Generate.swift
[30/33] Compiling OllamaKit OllamaKit+ModelInfo.swift
[31/33] Compiling OllamaKit OKModelInfoRequestData.swift
[32/33] Compiling OllamaKit OKCompletionResponse.swift
[33/33] Compiling OllamaKit OKChatResponse.swift
Build complete! (28.93s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin.git"
}
],
"manifest_display_name" : "OllamaKit",
"name" : "OllamaKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "maccatalyst",
"version" : "15.0"
}
],
"products" : [
{
"name" : "OllamaKit",
"targets" : [
"OllamaKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OllamaKitTests",
"module_type" : "SwiftTarget",
"name" : "OllamaKitTests",
"path" : "Tests/OllamaKitTests",
"sources" : [
"OllamaKitTests.swift"
],
"target_dependencies" : [
"OllamaKit"
],
"type" : "test"
},
{
"c99name" : "OllamaKit",
"module_type" : "SwiftTarget",
"name" : "OllamaKit",
"path" : "Sources/OllamaKit",
"product_memberships" : [
"OllamaKit"
],
"sources" : [
"OllamaKit+Chat.swift",
"OllamaKit+CopyModel.swift",
"OllamaKit+DeleteModel.swift",
"OllamaKit+Embeddings.swift",
"OllamaKit+Generate.swift",
"OllamaKit+ModelInfo.swift",
"OllamaKit+Models.swift",
"OllamaKit+Reachable.swift",
"OllamaKit.swift",
"RequestData/Completion/OKCompletionOptions.swift",
"RequestData/OKChatRequestData.swift",
"RequestData/OKCopyModelRequestData.swift",
"RequestData/OKDeleteModelRequestData.swift",
"RequestData/OKEmbeddingsRequestData.swift",
"RequestData/OKGenerateRequestData.swift",
"RequestData/OKModelInfoRequestData.swift",
"Responses/Completion/OKCompletionResponse.swift",
"Responses/OKChatResponse.swift",
"Responses/OKEmbeddingsResponse.swift",
"Responses/OKGenerateResponse.swift",
"Responses/OKModelInfoResponse.swift",
"Responses/OKModelResponse.swift",
"Utils/JSONDecoder+Default.swift",
"Utils/JSONEncoder+Default.swift",
"Utils/OKHTTPClient.swift",
"Utils/OKJSONValue.swift",
"Utils/OKRouter.swift",
"Utils/StreamingDelegate.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.