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 superagent-swift, reference v1.0.0-beta (16372c), with Swift 5.10 for Linux on 5 Jul 2024 07:08:39 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$workDir" 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.44.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/simonweniger/agentkit-sdk.git
Reference: v1.0.0-beta
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/simonweniger/agentkit-sdk
 * tag               v1.0.0-beta -> FETCH_HEAD
HEAD is now at 16372c1 Merge pull request #1 from aiden-technologies/manual-setup
Cloned https://github.com/simonweniger/agentkit-sdk.git
Revision (git rev-parse @):
16372c1a73214965e864183ba70ca9945cd68927
SUCCESS checkout https://github.com/simonweniger/agentkit-sdk.git at v1.0.0-beta
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/simonweniger/agentkit-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$workDir" 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:25efef401ffd78342b231554234a436b1eb31bdd29046c1104fb984cc1b7d308
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/13] Compiling superagent_swift Datasource.swift
[4/13] Compiling superagent_swift LLM.swift
[5/13] Compiling superagent_swift Agent.swift
[6/13] Compiling superagent_swift Request.swift
[7/13] Emitting module superagent_swift
/host/spi-builder-workspace/Sources/main.swift:38:105: error: cannot find type 'URLRequest' in scope
        private func createRequest(method: HttpMethod, endpoint: String, data: [String: Any]? = nil) throws -> URLRequest {
                                                                                                               ^~~~~~~~~~
[8/13] Compiling superagent_swift WorkflowStep.swift
[9/13] Compiling superagent_swift main.swift
/host/spi-builder-workspace/Sources/main.swift:38:105: error: cannot find type 'URLRequest' in scope
        private func createRequest(method: HttpMethod, endpoint: String, data: [String: Any]? = nil) throws -> URLRequest {
                                                                                                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/main.swift:43:17: error: cannot find 'URLRequest' in scope
                var request = URLRequest(url: url)
                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/main.swift:71:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
                let (data, response) = try await URLSession.shared.data(for: request)
                                                 ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/main.swift:370:7: warning: variable 'payload' was never mutated; consider changing to 'let' constant
                var payload: [String: Any] = ["provider": provider, "apiKey": apiKey, "options": options as Any]
                ~~~ ^
                let
/host/spi-builder-workspace/Sources/main.swift:503:7: warning: variable 'payload' was never mutated; consider changing to 'let' constant
                var payload: [String: Any] = ["name": datasource.name,
                ~~~ ^
                let
/host/spi-builder-workspace/Sources/main.swift:607:7: warning: variable 'payload' was never mutated; consider changing to 'let' constant
                var payload: [String: Any] = ["name": tool.name,
                ~~~ ^
                let
/host/spi-builder-workspace/Sources/main.swift:647:7: warning: variable 'payload' was never mutated; consider changing to 'let' constant
                var payload: [String: Any] = ["name": newTool.name,
                ~~~ ^
                let
/host/spi-builder-workspace/Sources/main.swift:810:7: warning: variable 'payload' was never mutated; consider changing to 'let' constant
                var payload: [String: Any] = ["order": workflowStep.order,
                ~~~ ^
                let
[10/13] Compiling superagent_swift Tool.swift
error: fatalError
BUILD FAILURE 5.10 linux