This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 Baggins with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexito4/Baggins.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexito4/Baggins
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d66135f SimpleError
Cloned https://github.com/alexito4/Baggins.git
Revision (git rev-parse @):
d66135fb07c12055599952ddf0e94a16978ad534
SUCCESS checkout https://github.com/alexito4/Baggins.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/alexito4/Baggins.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/11] Compiling Flow Flowable.swift
[6/11] Compiling Flow Functions.swift
[7/11] Compiling Flow Extensions.swift
[8/11] Compiling UnwrapOrThrow UnwrapOrThrow.swift
[9/11] Emitting module UnwrapOrThrow
[10/11] Emitting module Flow
[11/11] Compiling Flow Conformances.swift
[12/20] Compiling Baggins _Brewing.swift
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/_Brewing.swift:11:28: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
  9 |     combined: (Left, Right) async throws -> Return
 10 | ) async throws -> Return {
 11 |     async let leftResult = left()
    |                            `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
 12 |     async let rightResult = right()
 13 |     return try await combined(leftResult, rightResult)
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/_Brewing.swift:12:29: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
 10 | ) async throws -> Return {
 11 |     async let leftResult = left()
 12 |     async let rightResult = right()
    |                             `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
 13 |     return try await combined(leftResult, rightResult)
 14 | }
[13/20] Compiling Baggins UnwrapOrThrow.swift
[14/20] Compiling Baggins Collection.swift
[15/20] Compiling Baggins Flow.swift
[16/20] Compiling Baggins Sequence.swift
[17/20] Compiling Baggins Bool.swift
[18/20] Compiling Baggins Concurrency.swift
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:29:22: warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 19 | // MARK: - Race
 20 |
 21 | public func firstOf<R>(
    |                     `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 22 |     _ f1: @escaping () async throws -> R,
 23 |     or f2: @escaping () async throws -> R
    :
 27 |     // `addTaskUnlessCancelled`...
 28 |     try Task.checkCancellation()
 29 |     return try await withThrowingTaskGroup(of: R.self) { group in
    |                      `- warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 30 |         try Task.checkCancellation()
 31 |         guard group.addTaskUnlessCancelled(operation: { try await f1() }) else {
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:31:21: warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 19 | // MARK: - Race
 20 |
 21 | public func firstOf<R>(
    |                     `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 22 |     _ f1: @escaping () async throws -> R,
 23 |     or f2: @escaping () async throws -> R
    :
 29 |     return try await withThrowingTaskGroup(of: R.self) { group in
 30 |         try Task.checkCancellation()
 31 |         guard group.addTaskUnlessCancelled(operation: { try await f1() }) else {
    |                     `- warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 32 |             throw CancellationError()
 33 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:34:21: warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 19 | // MARK: - Race
 20 |
 21 | public func firstOf<R>(
    |                     `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 22 |     _ f1: @escaping () async throws -> R,
 23 |     or f2: @escaping () async throws -> R
    :
 32 |             throw CancellationError()
 33 |         }
 34 |         guard group.addTaskUnlessCancelled(operation: { try await f2() }) else {
    |                     `- warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 35 |             group.cancelAll()
 36 |             throw CancellationError()
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:35:19: warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 19 | // MARK: - Race
 20 |
 21 | public func firstOf<R>(
    |                     `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 22 |     _ f1: @escaping () async throws -> R,
 23 |     or f2: @escaping () async throws -> R
    :
 33 |         }
 34 |         guard group.addTaskUnlessCancelled(operation: { try await f2() }) else {
 35 |             group.cancelAll()
    |                   `- warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 36 |             throw CancellationError()
 37 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:38:43: warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 19 | // MARK: - Race
 20 |
 21 | public func firstOf<R>(
    |                     `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 22 |     _ f1: @escaping () async throws -> R,
 23 |     or f2: @escaping () async throws -> R
    :
 36 |             throw CancellationError()
 37 |         }
 38 |         guard let first = try await group.next() else {
    |                                           `- warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 39 |             fatalError()
 40 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:41:15: warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 19 | // MARK: - Race
 20 |
 21 | public func firstOf<R>(
    |                     `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
 22 |     _ f1: @escaping () async throws -> R,
 23 |     or f2: @escaping () async throws -> R
    :
 39 |             fatalError()
 40 |         }
 41 |         group.cancelAll()
    |               `- warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 42 |         return first
 43 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:31:67: warning: capture of 'f1' with non-sendable type '() async throws -> R' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 |     return try await withThrowingTaskGroup(of: R.self) { group in
 30 |         try Task.checkCancellation()
 31 |         guard group.addTaskUnlessCancelled(operation: { try await f1() }) else {
    |                                                                   |- warning: capture of 'f1' with non-sendable type '() async throws -> R' 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'
 32 |             throw CancellationError()
 33 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:34:67: warning: capture of 'f2' with non-sendable type '() async throws -> R' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |             throw CancellationError()
 33 |         }
 34 |         guard group.addTaskUnlessCancelled(operation: { try await f2() }) else {
    |                                                                   |- warning: capture of 'f2' with non-sendable type '() async throws -> R' 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'
 35 |             group.cancelAll()
 36 |             throw CancellationError()
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:87:17: warning: capture of 'onResult' with non-sendable type '(Result<Success, any Error>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 85 |             do {
 86 |                 let value = try await operation()
 87 |                 onResult(.success(value))
    |                 |- warning: capture of 'onResult' with non-sendable type '(Result<Success, 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'
 88 |             } catch {
 89 |                 onResult(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:118:13: warning: capture of 'onResult' with non-sendable type '(Success) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 |         Task<Void, Never>(priority: priority) {
117 |             let value = await operation()
118 |             onResult(value)
    |             |- warning: capture of 'onResult' with non-sendable type '(Success) -> ()' 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'
119 |             semaphore.signal()
120 |         }
[19/20] Compiling Baggins String.swift
[20/20] Emitting module Baggins
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:87:17: warning: capture of 'onResult' with non-sendable type '(Result<Success, any Error>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 85 |             do {
 86 |                 let value = try await operation()
 87 |                 onResult(.success(value))
    |                 |- warning: capture of 'onResult' with non-sendable type '(Result<Success, 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'
 88 |             } catch {
 89 |                 onResult(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/Baggins/Concurrency.swift:118:13: warning: capture of 'onResult' with non-sendable type '(Success) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 |         Task<Void, Never>(priority: priority) {
117 |             let value = await operation()
118 |             onResult(value)
    |             |- warning: capture of 'onResult' with non-sendable type '(Success) -> ()' 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'
119 |             semaphore.signal()
120 |         }
Build complete! (23.82s)
Fetching https://github.com/alexito4/UnwrapOrThrow
Fetching https://github.com/alexito4/Flow.git
[1/48] Fetching flow
[49/85] Fetching flow, unwraporthrow
Fetched https://github.com/alexito4/UnwrapOrThrow from cache (0.74s)
Fetched https://github.com/alexito4/Flow.git from cache (0.74s)
Computing version for https://github.com/alexito4/UnwrapOrThrow
Computed https://github.com/alexito4/UnwrapOrThrow at 1.0.0 (0.79s)
Computing version for https://github.com/alexito4/Flow.git
Computed https://github.com/alexito4/Flow.git at 1.0.0 (0.68s)
Creating working copy for https://github.com/alexito4/Flow.git
Working copy of https://github.com/alexito4/Flow.git resolved at 1.0.0
Creating working copy for https://github.com/alexito4/UnwrapOrThrow
Working copy of https://github.com/alexito4/UnwrapOrThrow resolved at 1.0.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "flow",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/alexito4/Flow.git"
    },
    {
      "identity" : "unwraporthrow",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/alexito4/UnwrapOrThrow"
    }
  ],
  "manifest_display_name" : "Baggins",
  "name" : "Baggins",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Baggins",
      "targets" : [
        "Baggins"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BagginsTests",
      "module_type" : "SwiftTarget",
      "name" : "BagginsTests",
      "path" : "Tests/BagginsTests",
      "sources" : [
        "BoolTests.swift",
        "BrewingTests.swift",
        "CollectionTests.swift",
        "ConcurrencyTests.swift",
        "ConcurrencyUnsafeBlockingTests.swift",
        "SequenceTests.swift",
        "StringTests.swift"
      ],
      "target_dependencies" : [
        "Baggins"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Baggins",
      "module_type" : "SwiftTarget",
      "name" : "Baggins",
      "path" : "Sources/Baggins",
      "product_dependencies" : [
        "Flow",
        "UnwrapOrThrow"
      ],
      "product_memberships" : [
        "Baggins"
      ],
      "sources" : [
        "Bool.swift",
        "Collection.swift",
        "Concurrency.swift",
        "Flow.swift",
        "Sequence.swift",
        "String.swift",
        "UnwrapOrThrow.swift",
        "_Brewing.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.