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

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-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.9
Building package at path:  $PWD
https://github.com/marcusziade/Swollama.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:5a47d9d39a5702cbfa0ba55458353b9ccb6eb7cde0581792bc757a518ca63386
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/26] 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)
                       ^~~~~~~~~~
[2/29] Compiling Swollama ChatResponse.swift
[3/29] Compiling Swollama EmbeddingRequest.swift
[4/29] Compiling Swollama EmbeddingResponse.swift
[5/29] Compiling Swollama ModelFormat.swift
[6/29] Compiling Swollama ModelInformation.swift
[7/29] Compiling Swollama ModelsResponse.swift
[8/29] 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
[9/29] 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
[10/29] 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
[11/29] 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
[12/29] Compiling Swollama OllamaModelName.swift
[13/29] Compiling Swollama OperationProgress.swift
[14/29] Compiling Swollama QuantizationLevel.swift
[15/29] Compiling Swollama RunningModelsResponse.swift
[16/29] Compiling Swollama ToolCall.swift
[17/29] Compiling Swollama ToolDefinition.swift
[18/29] 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
[19/29] 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
[20/29] 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
[21/29] 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/29] 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/29] 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/29] Compiling Swollama OllamaConfiguration.swift
[25/29] Compiling Swollama OllamaError.swift
[26/29] Compiling Swollama OllamaProtocol.swift
error: fatalError
BUILD FAILURE 5.9 linux