The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PineconeSwift, reference 0.7.4 (c13d1e), with Swift 6.1 for Wasm on 28 May 2025 18:12:08 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ArchieGoodwin/PineconeSwift.git
https://github.com/ArchieGoodwin/PineconeSwift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PineconeSwift",
  "name" : "PineconeSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "PineconeSwift",
      "targets" : [
        "PineconeSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PineconeSwift",
      "module_type" : "SwiftTarget",
      "name" : "PineconeSwift",
      "path" : "Sources/PineconeSwift",
      "product_memberships" : [
        "PineconeSwift"
      ],
      "sources" : [
        "EmbedModel.swift",
        "PineconeModels.swift",
        "PineconeSwift.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling PineconeSwift PineconeModels.swift
[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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] 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)
[3/5] 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]
[4/5] Compiling PineconeSwift PineconeModels.swift
[5/5] 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.1 wasm