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

Successful build of GroqSwift, reference main (3e3e24), with Swift 6.0 for Linux on 12 Mar 2025 06:35:06 UTC.

Swift 6 data race errors: 0

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 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
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.0
Building package at path:  $PWD
https://github.com/engali94/groq_swift.git
https://github.com/engali94/groq_swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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"
}
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 -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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/lukepistrol/SwiftLintPlugin
[1/352] Fetching swiftlintplugin
[353/2402] Fetching swiftlintplugin, swift-docc-plugin
Fetched https://github.com/lukepistrol/SwiftLintPlugin from cache (0.31s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.31s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (1.87s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3336] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.32s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.54s)
Computing version for https://github.com/lukepistrol/SwiftLintPlugin
Computed https://github.com/lukepistrol/SwiftLintPlugin at 0.58.2 (0.52s)
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/lukepistrol/SwiftLintPlugin
Working copy of https://github.com/lukepistrol/SwiftLintPlugin resolved at 0.58.2
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.3
[1369/40913916] Downloading https://github.com/realm/SwiftLint/releases/download/0.58.2/SwiftLintBinary.artifactbundle.zip
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.58.2/SwiftLintBinary.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.58.2/SwiftLintBinary.artifactbundle.zip (3.27s)
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin SwiftLint
[4/4] Compiling plugin SwiftLintFix
Building for debugging...
[4/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/12] Compiling GroqSwift Models.swift
[8/12] Compiling GroqSwift URLSession+Linux.swift
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:38:33: warning: capture of 'validate' with non-sendable type '(URLResponse) throws -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 36 |                     urlResponseCallback: { response in
 37 |                         do {
 38 |                             try validate(response)
    |                                 |- warning: capture of 'validate' with non-sendable type '(URLResponse) throws -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 39 |                         } catch {
 40 |                             continuation.finish(throwing: error)
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:44:43: warning: capture of 'extractNextJSON' with non-sendable type '(inout Data) -> Data?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 42 |                     },
 43 |                     dataCallback: { buffer in
 44 |                         while let chunk = extractNextJSON(&buffer) {
    |                                           |- warning: capture of 'extractNextJSON' with non-sendable type '(inout Data) -> Data?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 45 |                             do {
 46 |                                 let decodedObject = try decoder.decode(T.self, from: chunk)
/host/spi-builder-workspace/Sources/GroqSwift/URLSession+Linux.swift:32:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 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
 32 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 33 |                 let task = self.dataTask(with: request)
 34 |
    :
 42 |                     },
 43 |                     dataCallback: { buffer in
 44 |                         while let chunk = extractNextJSON(&buffer) {
    |                                           `- note: closure captures 'extractNextJSON' which is accessible to code in the current task
 45 |                             do {
 46 |                                 let decodedObject = try decoder.decode(T.self, from: chunk)
[9/12] Compiling GroqSwift Errors.swift
[10/12] Compiling GroqSwift GroqClient.swift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:169:38: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
167 |
168 |                     for try await response in stream {
169 |                         continuation.yield(response)
    |                                      |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
170 |                     }
171 |
[11/12] Emitting module GroqSwift
[12/12] Compiling GroqSwift Message.swift
Build complete! (27.98s)
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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.