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.8 for Linux on 5 Jul 2024 07:09:00 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-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.8
Building package at path:  $workDir
https://github.com/simonweniger/agentkit-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.8-latest: Pulling from finestructure/spi-images
Digest: sha256:04b855c1ccaa3e5be7e0a673b43cb5972bbce6f39eeabbf4f2cb26180c5e9854
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.8-latest
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/10] 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 {
                                                                                                               ^~~~~~~~~~
[2/10] Compiling superagent_swift Request.swift
[3/10] Compiling superagent_swift Tool.swift
[4/10] Compiling superagent_swift WorkflowStep.swift
[5/10] 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
[6/10] Compiling superagent_swift Datasource.swift
[7/10] Compiling superagent_swift Agent.swift
[8/10] Compiling superagent_swift LLM.swift
BUILD FAILURE 5.8 linux