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 6.0 for Linux on 16 Sep 2024 09:36:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.53.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:             6.0
Building package at path:  $PWD
https://github.com/simonweniger/agentkit-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling superagent_swift LLM.swift
[4/13] Compiling superagent_swift WorkflowStep.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/13] Compiling superagent_swift Agent.swift
[6/13] Compiling superagent_swift Datasource.swift
[7/13] Emitting module superagent_swift
/host/spi-builder-workspace/Sources/main.swift:38:105: error: cannot find type 'URLRequest' in scope
 36 |
 37 | 	//createRequest
 38 | 	private func createRequest(method: HttpMethod, endpoint: String, data: [String: Any]? = nil) throws -> URLRequest {
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
 39 | 		guard let url = URL(string: "\(self.baseUrl)\(endpoint)") else {
 40 | 			throw URLError(.badURL)
[8/13] Compiling superagent_swift Tool.swift
[9/13] Compiling superagent_swift Request.swift
[10/13] Compiling superagent_swift main.swift
/host/spi-builder-workspace/Sources/main.swift:38:105: error: cannot find type 'URLRequest' in scope
 36 |
 37 | 	//createRequest
 38 | 	private func createRequest(method: HttpMethod, endpoint: String, data: [String: Any]? = nil) throws -> URLRequest {
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
 39 | 		guard let url = URL(string: "\(self.baseUrl)\(endpoint)") else {
 40 | 			throw URLError(.badURL)
/host/spi-builder-workspace/Sources/main.swift:43:17: error: cannot find 'URLRequest' in scope
 41 | 		}
 42 |
 43 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 44 | 		request.httpMethod = method.rawValue.uppercased()
 45 | 		request.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/main.swift:71:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 | 	private func request(method: HttpMethod, endpoint: String, data: [String: Any]? = nil) async throws -> Any  {
 70 | 		let request = try createRequest(method: method, endpoint: endpoint, data: data)
 71 | 		let (data, response) = try await URLSession.shared.data(for: request)
    |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |
 73 | 		if let httpResponse = response as? HTTPURLResponse, 200..<300 ~= httpResponse.statusCode {
/host/spi-builder-workspace/Sources/main.swift:370:7: warning: variable 'payload' was never mutated; consider changing to 'let' constant
368 | 	///Create a new LLM
369 | 	public func createLLM(provider: String, apiKey: String, options: [String: Any]?) async throws -> [String: Any] {
370 | 		var payload: [String: Any] = ["provider": provider, "apiKey": apiKey, "options": options as Any]
    |       `- warning: variable 'payload' was never mutated; consider changing to 'let' constant
371 |
372 | 		let data = try await request(method: .post, endpoint: "/llms", data: payload)
/host/spi-builder-workspace/Sources/main.swift:503:7: warning: variable 'payload' was never mutated; consider changing to 'let' constant
501 | 	///Create a new datasource
502 | 	public func createDatasource(datasource: Datasource) async throws -> [String: Any] {
503 | 		var payload: [String: Any] = ["name": datasource.name,
    |       `- warning: variable 'payload' was never mutated; consider changing to 'let' constant
504 | 									  "description": datasource.description,
505 | 									  "type": datasource.type,
/host/spi-builder-workspace/Sources/main.swift:607:7: warning: variable 'payload' was never mutated; consider changing to 'let' constant
605 | 	///Create a new tool
606 | 	public func createTool(tool: Tool) async throws -> [String: Any] {
607 | 		var payload: [String: Any] = ["name": tool.name,
    |       `- warning: variable 'payload' was never mutated; consider changing to 'let' constant
608 | 									  "description": tool.description,
609 | 									  "type": tool.type,
/host/spi-builder-workspace/Sources/main.swift:647:7: warning: variable 'payload' was never mutated; consider changing to 'let' constant
645 | 	///Update a specific tool
646 | 	public func updateTool(toolId: String , newTool: Tool) async throws -> [String: Any] {
647 | 		var payload: [String: Any] = ["name": newTool.name,
    |       `- warning: variable 'payload' was never mutated; consider changing to 'let' constant
648 | 									  "description": newTool.description,
649 | 									  "type": newTool.type,
/host/spi-builder-workspace/Sources/main.swift:810:7: warning: variable 'payload' was never mutated; consider changing to 'let' constant
808 | 	///Create a new workflow step
809 | 	public func addWorkflowStep(workflowId: String ,workflowStep: WorkflowStep) async throws -> [String: Any] {
810 | 		var payload: [String: Any] = ["order": workflowStep.order,
    |       `- warning: variable 'payload' was never mutated; consider changing to 'let' constant
811 | 									  "agentId": workflowStep.agentId,
812 | 									  "input": workflowStep.input,
BUILD FAILURE 6.0 linux