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 5.10 for Linux on 29 Oct 2024 10:04:38 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.55.3
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:             5.10
Building package at path:  $PWD
https://github.com/marcusziade/Swollama.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:5bb17dbcfcf8548eee753b07845b2378de013b2470bb445b58120b16b16ecc2b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-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/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'
    public let format: ResponseFormat?
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
public enum ResponseFormat: String, Codable {
            ^
                                           , Sendable
/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'
    public let role: MessageRole
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:71:13: note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
public enum MessageRole: String, Codable {
            ^
                                        , Sendable
/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?'
    public let format: ResponseFormat?
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
public enum ResponseFormat: String, Codable {
            ^
                                           , Sendable
/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.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        self.session = URLSession(configuration: config)
                       ^~~~~~~~~~
[5/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?'
    public let format: ResponseFormat?
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
public enum ResponseFormat: String, Codable {
            ^
                                           , Sendable
[6/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?'
    public let format: ResponseFormat?
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
public enum ResponseFormat: String, Codable {
            ^
                                           , Sendable
[7/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?'
    public let format: ResponseFormat?
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
public enum ResponseFormat: String, Codable {
            ^
                                           , Sendable
[8/33] Compiling Swollama OllamaConfiguration.swift
[9/33] Compiling Swollama OllamaError.swift
[10/33] Compiling Swollama OllamaProtocol.swift
[11/33] 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?'
    public let format: ResponseFormat?
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
public enum ResponseFormat: String, Codable {
            ^
                                           , Sendable
/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'
    public let role: MessageRole
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:71:13: note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
public enum MessageRole: String, Codable {
            ^
                                        , Sendable
[12/33] 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?'
    public let format: ResponseFormat?
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
public enum ResponseFormat: String, Codable {
            ^
                                           , Sendable
/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'
    public let role: MessageRole
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:71:13: note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
public enum MessageRole: String, Codable {
            ^
                                        , Sendable
[13/33] 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?'
    public let format: ResponseFormat?
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
public enum ResponseFormat: String, Codable {
            ^
                                           , Sendable
/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'
    public let role: MessageRole
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:71:13: note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
public enum MessageRole: String, Codable {
            ^
                                        , Sendable
[14/33] 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?'
    public let format: ResponseFormat?
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
public enum ResponseFormat: String, Codable {
            ^
                                           , Sendable
/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'
    public let role: MessageRole
               ^
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:71:13: note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
public enum MessageRole: String, Codable {
            ^
                                        , Sendable
[15/33] Compiling Swollama OllamaModelName.swift
[16/33] Compiling Swollama OperationProgress.swift
[17/33] Compiling Swollama QuantizationLevel.swift
[18/33] Compiling Swollama ModelFormat.swift
[19/33] Compiling Swollama ModelInformation.swift
[20/33] Compiling Swollama ModelsResponse.swift
[21/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.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        self.session = URLSession(configuration: config)
                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
                let (data, response) = try await session.data(for: request)
                                                 ~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
                    var request = URLRequest(url: url)
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:107:31: error: reference to property 'baseURL' in closure requires explicit use of 'self' to make capture semantics explicit
                    let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
                              ^
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:107:31: note: reference 'self.' explicitly
                    let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
                              ^
                              self.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:105:29: note: capture 'self' explicitly to enable implicit 'self' in this closure
            let task = Task {
                            ^
                              [self] in
[22/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.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        self.session = URLSession(configuration: config)
                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
                let (data, response) = try await session.data(for: request)
                                                 ~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
                    var request = URLRequest(url: url)
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:107:31: error: reference to property 'baseURL' in closure requires explicit use of 'self' to make capture semantics explicit
                    let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
                              ^
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:107:31: note: reference 'self.' explicitly
                    let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
                              ^
                              self.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:105:29: note: capture 'self' explicitly to enable implicit 'self' in this closure
            let task = Task {
                            ^
                              [self] in
[23/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.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        self.session = URLSession(configuration: config)
                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
                let (data, response) = try await session.data(for: request)
                                                 ~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
                    var request = URLRequest(url: url)
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:107:31: error: reference to property 'baseURL' in closure requires explicit use of 'self' to make capture semantics explicit
                    let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
                              ^
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:107:31: note: reference 'self.' explicitly
                    let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
                              ^
                              self.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:105:29: note: capture 'self' explicitly to enable implicit 'self' in this closure
            let task = Task {
                            ^
                              [self] in
[24/33] Compiling Swollama ChatResponse.swift
[25/33] Compiling Swollama EmbeddingRequest.swift
[26/33] Compiling Swollama EmbeddingResponse.swift
[27/33] Compiling Swollama RunningModelsResponse.swift
[28/33] Compiling Swollama ToolCall.swift
[29/33] Compiling Swollama ToolDefinition.swift
error: fatalError
BUILD FAILURE 5.10 linux