The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of GroqSwift, reference main (3e3e24), with Swift 6.2 (beta) for Linux on 23 Jun 2025 04:39:21 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/engali94/groq_swift.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/engali94/groq_swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3e3e24a Refactor Dockerfile and update Linux URLSession extension
Cloned https://github.com/engali94/groq_swift.git
Revision (git rev-parse @):
3e3e24aadc0a89834f6511208517948d568966a5
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/engali94/groq_swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/engali94/groq_swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
Fetching https://github.com/lukepistrol/SwiftLintPlugin
Fetching https://github.com/apple/swift-docc-plugin
[4/358] Fetching swiftlintplugin
[359/2440] Fetching swiftlintplugin, swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.65s)
Fetched https://github.com/lukepistrol/SwiftLintPlugin from cache (0.66s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.4 (4.77s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3415] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.77s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (3.36s)
Computing version for https://github.com/lukepistrol/SwiftLintPlugin
Computed https://github.com/lukepistrol/SwiftLintPlugin at 0.59.1 (1.31s)
Creating working copy for https://github.com/lukepistrol/SwiftLintPlugin
Working copy of https://github.com/lukepistrol/SwiftLintPlugin resolved at 0.59.1
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.4
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip
[1397/41085097] Downloading https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip (5.19s)
[1/1] Compiling plugin SwiftLintFix
[2/2] Compiling plugin SwiftLint
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
Building for debugging...
[4/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/12] Compiling GroqSwift Models.swift
[8/12] Compiling GroqSwift Errors.swift
[9/12] Compiling GroqSwift URLSession+Linux.swift
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:31:38: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 29 |
 30 |     func stream<T: Decodable>(request: URLRequest, with responseType: T.Type, decoder: JSONDecoder, validate: @escaping (URLResponse) throws -> Void, extractNextJSON: @escaping (inout Data) -> Data?) -> AsyncThrowingStream<T, Error> {
 31 |         return AsyncThrowingStream { continuation in
    |                                      `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 32 |             Task {
 33 |                 let task = self.dataTask(with: request)
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:63:30: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 61 |                 task.delegate = delegate
 62 |
 63 |                 continuation.onTermination = { terminationState in
    |                              `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 64 |                     if case .cancelled = terminationState {
 65 |                         task.cancel()
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:40:29: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 38 |                             try validate(response)
 39 |                         } catch {
 40 |                             continuation.finish(throwing: error)
    |                             `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 41 |                         }
 42 |                     },
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:31:38: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 29 |
 30 |     func stream<T: Decodable>(request: URLRequest, with responseType: T.Type, decoder: JSONDecoder, validate: @escaping (URLResponse) throws -> Void, extractNextJSON: @escaping (inout Data) -> Data?) -> AsyncThrowingStream<T, Error> {
 31 |         return AsyncThrowingStream { continuation in
    |                                      `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 32 |             Task {
 33 |                 let task = self.dataTask(with: request)
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:46:65: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 44 |                         while let chunk = extractNextJSON(&buffer) {
 45 |                             do {
 46 |                                 let decodedObject = try decoder.decode(T.self, from: chunk)
    |                                                                 `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 47 |                                 continuation.yield(decodedObject)
 48 |                             } catch {
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:31:38: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 29 |
 30 |     func stream<T: Decodable>(request: URLRequest, with responseType: T.Type, decoder: JSONDecoder, validate: @escaping (URLResponse) throws -> Void, extractNextJSON: @escaping (inout Data) -> Data?) -> AsyncThrowingStream<T, Error> {
 31 |         return AsyncThrowingStream { continuation in
    |                                      `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 32 |             Task {
 33 |                 let task = self.dataTask(with: request)
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:56:29: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 54 |                     completionCallback: { error in
 55 |                         if let error {
 56 |                             continuation.finish(throwing: error)
    |                             `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 57 |                         }
 58 |                         continuation.finish()
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:31:38: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 29 |
 30 |     func stream<T: Decodable>(request: URLRequest, with responseType: T.Type, decoder: JSONDecoder, validate: @escaping (URLResponse) throws -> Void, extractNextJSON: @escaping (inout Data) -> Data?) -> AsyncThrowingStream<T, Error> {
 31 |         return AsyncThrowingStream { continuation in
    |                                      `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 32 |             Task {
 33 |                 let task = self.dataTask(with: request)
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:64:42: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 62 |
 63 |                 continuation.onTermination = { terminationState in
 64 |                     if case .cancelled = terminationState {
    |                                          `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 65 |                         task.cancel()
 66 |                     }
[10/12] Compiling GroqSwift GroqClient.swift
[11/12] Emitting module GroqSwift
[12/12] Compiling GroqSwift Message.swift
Build complete! (64.69s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    },
    {
      "identity" : "swiftlintplugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.2",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/lukepistrol/SwiftLintPlugin"
    }
  ],
  "manifest_display_name" : "GroqSwift",
  "name" : "GroqSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "GroqSwift",
      "targets" : [
        "GroqSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GroqSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "GroqSwiftTests",
      "path" : "Tests/GroqSwiftTests",
      "sources" : [
        "ChatCompletionTests.swift",
        "ModelsTests.swift",
        "StreamingTests.swift",
        "TestUtils.swift"
      ],
      "target_dependencies" : [
        "GroqSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GroqSwift",
      "module_type" : "SwiftTarget",
      "name" : "GroqSwift",
      "path" : "Sources/GroqSwift",
      "product_memberships" : [
        "GroqSwift"
      ],
      "sources" : [
        "Errors.swift",
        "GroqClient.swift",
        "Message.swift",
        "Models.swift",
        "URLSession+Linux.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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
Done.