The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PineconeSwift, reference main (c13d1e), with Swift 6.3 for Linux on 22 Apr 2026 12:40:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ArchieGoodwin/PineconeSwift.git
Reference: main
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/ArchieGoodwin/PineconeSwift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c13d1e1 Create LICENSE
Cloned https://github.com/ArchieGoodwin/PineconeSwift.git
Revision (git rev-parse @):
c13d1e1a0aa81d23f166dfbef3999b162c1557dd
SUCCESS checkout https://github.com/ArchieGoodwin/PineconeSwift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ArchieGoodwin/PineconeSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module PineconeSwift
/host/spi-builder-workspace/Sources/PineconeSwift/PineconeSwift.swift:102:103: error: cannot find type 'URLRequest' in scope
100 |
101 |
102 |     private func prepareRequest<BodyType: Encodable>(_ endpoint: PineconeEndpoint, body: BodyType) -> URLRequest {
    |                                                                                                       `- error: cannot find type 'URLRequest' in scope
103 |         var urlComponents = URLComponents(url: URL(string: baseURL)!, resolvingAgainstBaseURL: true)
104 |         urlComponents?.path = endpoint.path
[4/6] Compiling PineconeSwift PineconeSwift.swift
/host/spi-builder-workspace/Sources/PineconeSwift/PineconeSwift.swift:102:103: error: cannot find type 'URLRequest' in scope
100 |
101 |
102 |     private func prepareRequest<BodyType: Encodable>(_ endpoint: PineconeEndpoint, body: BodyType) -> URLRequest {
    |                                                                                                       `- error: cannot find type 'URLRequest' in scope
103 |         var urlComponents = URLComponents(url: URL(string: baseURL)!, resolvingAgainstBaseURL: true)
104 |         urlComponents?.path = endpoint.path
/host/spi-builder-workspace/Sources/PineconeSwift/PineconeSwift.swift:31:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 29 |         let request = prepareRequest(endpoint, body: body)
 30 |
 31 |         let session = URLSession.shared
    |                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 32 |         let (data, _) = try await session.data(for: request)
 33 |         print(NSString(string: String(decoding: data, as: UTF8.self)))
/host/spi-builder-workspace/Sources/PineconeSwift/PineconeSwift.swift:46:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         let request = prepareRequest(endpoint, body: body)
 45 |
 46 |         let session = URLSession.shared
    |                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         let (data, _) = try await session.data(for: request)
 48 |         print(NSString(string: String(decoding: data, as: UTF8.self)))
/host/spi-builder-workspace/Sources/PineconeSwift/PineconeSwift.swift:66:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 64 |         let request = prepareRequest(endpoint, body: body)
 65 |
 66 |         let session = URLSession.shared
    |                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 67 |         let (data, response) = try await session.data(for: request)
 68 |         print(NSString(string: String(decoding: data, as: UTF8.self)))
/host/spi-builder-workspace/Sources/PineconeSwift/PineconeSwift.swift:86:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 84 |         let request = prepareRequest(endpoint, body: body)
 85 |
 86 |         let session = URLSession.shared
    |                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 87 |         let (data, response) = try await session.data(for: request)
 88 |         print(NSString(string: String(decoding: data, as: UTF8.self)))
/host/spi-builder-workspace/Sources/PineconeSwift/PineconeSwift.swift:105:23: error: cannot find 'URLRequest' in scope
103 |         var urlComponents = URLComponents(url: URL(string: baseURL)!, resolvingAgainstBaseURL: true)
104 |         urlComponents?.path = endpoint.path
105 |         var request = URLRequest(url: urlComponents!.url!)
    |                       `- error: cannot find 'URLRequest' in scope
106 |         request.httpMethod = endpoint.method
107 |
[5/6] Compiling PineconeSwift PineconeModels.swift
[6/6] Compiling PineconeSwift EmbedModel.swift
/host/spi-builder-workspace/Sources/PineconeSwift/EmbedModel.swift:58:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
56 |
57 | public struct EmbedResult: Codable {
58 |     public let id: String? = UUID().uuidString
   |                |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
   |                |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'id' case to silence this warning
   |                `- note: make the property mutable instead
59 |     public let index: Int
60 |     public let embedding: [Double]
BUILD FAILURE 6.3 linux