Build Information
Failed to build superagent-swift, reference v1.0.0-beta (16372c
), with Swift 5.9 for Linux on 5 Jul 2024 07:08:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$workDir" 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.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.9
Building package at path: $workDir
https://github.com/simonweniger/agentkit-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$workDir" 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:bf2706fb3ad57f47449cad6c85f40e5d27f055fda5f2d8da4d3c25f3a5524d1a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Building for debugging...
[1/10] Compiling superagent_swift Request.swift
[2/10] Compiling superagent_swift Tool.swift
[3/10] Compiling superagent_swift Datasource.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Compiling superagent_swift Agent.swift
[5/10] Compiling superagent_swift LLM.swift
[6/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 {
^~~~~~~~~~
[7/10] Compiling superagent_swift WorkflowStep.swift
[8/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
error: fatalError
BUILD FAILURE 5.9 linux