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 TinyNetworking, reference master (45ba23), with Swift 6.0 for Linux on 29 Nov 2024 23:30:40 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objcio/tiny-networking.git
Reference: master
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/objcio/tiny-networking
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 45ba230 Fix for Xcode 13
Cloned https://github.com/objcio/tiny-networking.git
Revision (git rev-parse @):
45ba230cc9a843bf82a642803a43ef8838dc5b70
SUCCESS checkout https://github.com/objcio/tiny-networking.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/objcio/tiny-networking.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Emitting module TinyNetworking
[4/4] Compiling TinyNetworking Endpoint.swift
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:235:17: warning: capture of 'onComplete' with non-sendable type '(Result<A, any Error>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |         let task = dataTask(with: r, completionHandler: { data, resp, err in
234 |             if let err = err {
235 |                 onComplete(.failure(err))
    |                 |- warning: capture of 'onComplete' with non-sendable type '(Result<A, any Error>) -> ()' 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'
236 |                 return
237 |             }
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:244:19: warning: capture of 'e' with non-sendable type 'Endpoint<A>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 |
 18 | /// This describes an endpoint returning `A` values. It contains both a `URLRequest` and a way to parse the response.
 19 | public struct Endpoint<A> {
    |               `- note: consider making generic struct 'Endpoint' conform to the 'Sendable' protocol
 20 |
 21 |     /// The HTTP Method
    :
242 |             }
243 |
244 |             guard e.expectedStatusCode(h.statusCode) else {
    |                   `- warning: capture of 'e' with non-sendable type 'Endpoint<A>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
245 |                 onComplete(.failure(WrongStatusCodeError(statusCode: h.statusCode, response: h, responseBody: data)))
246 |                 return
Build complete! (9.75s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TinyNetworking",
  "name" : "TinyNetworking",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TinyNetworking",
      "targets" : [
        "TinyNetworking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TinyNetworkingTests",
      "module_type" : "SwiftTarget",
      "name" : "TinyNetworkingTests",
      "path" : "Tests/TinyNetworkingTests",
      "sources" : [
        "TestFixtures.swift",
        "TinyHTTPStubURLProtocol.swift",
        "TinyNetworkingTests.swift",
        "URLSessionIntegrationTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "TinyNetworking"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TinyNetworking",
      "module_type" : "SwiftTarget",
      "name" : "TinyNetworking",
      "path" : "Sources/TinyNetworking",
      "product_memberships" : [
        "TinyNetworking"
      ],
      "sources" : [
        "Endpoint.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.