The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PineconeSwift, reference 0.7.4 (c13d1e), with Swift 6.2 for Linux on 20 Jun 2025 09:29:50 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ArchieGoodwin/PineconeSwift.git
Reference: 0.7.4
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
 * tag               0.7.4      -> FETCH_HEAD
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 0.7.4
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
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" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling PineconeSwift PineconeModels.swift
[5/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]
[6/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
BUILD FAILURE 6.2 linux