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

Swift 6 data race errors: 1

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/sgade/InFlightValue.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sgade/InFlightValue
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9b5af68 Remove warning in Xcode 13.2.1.
Cloned https://github.com/sgade/InFlightValue.git
Revision (git rev-parse @):
9b5af68d42affc21b4a93d6f8f8bf3c1227191a0
SUCCESS checkout https://github.com/sgade/InFlightValue.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/sgade/InFlightValue.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/4] Emitting module InFlightValue
/Users/admin/builder/spi-builder-workspace/Sources/InFlightValue/InFlightValueProvider.swift:17:17: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 8 |
 9 | /// Provides access to in-flight calls to values of a producer.
10 | public actor InFlightValueProvider<Value> {
   |                                    `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
11 |
12 |     /// Provides a `Value` or throws an `Error`.
   :
15 |     private var producer: ValueProducer
16 |     /// A possible in-flight call. `nil` if not awaiting any calls currently.
17 |     private var activeTask: Task<Value, Error>?
   |                 `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
18 |
19 |     public init(_ producer: @escaping ValueProducer) {
[4/4] Compiling InFlightValue InFlightValueProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/InFlightValue/InFlightValueProvider.swift:17:17: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 8 |
 9 | /// Provides access to in-flight calls to values of a producer.
10 | public actor InFlightValueProvider<Value> {
   |                                    `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
11 |
12 |     /// Provides a `Value` or throws an `Error`.
   :
15 |     private var producer: ValueProducer
16 |     /// A possible in-flight call. `nil` if not awaiting any calls currently.
17 |     private var activeTask: Task<Value, Error>?
   |                 `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
18 |
19 |     public init(_ producer: @escaping ValueProducer) {
/Users/admin/builder/spi-builder-workspace/Sources/InFlightValue/InFlightValueProvider.swift:33:41: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 8 |
 9 | /// Provides access to in-flight calls to values of a producer.
10 | public actor InFlightValueProvider<Value> {
   |                                    `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
11 |
12 |     /// Provides a `Value` or throws an `Error`.
   :
31 |     public func get() async throws -> Value {
32 |         if let activeTask = activeTask {
33 |             return try await activeTask.value
   |                                         `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
34 |         }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/InFlightValue/InFlightValueProvider.swift:36:23: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 8 |
 9 | /// Provides access to in-flight calls to values of a producer.
10 | public actor InFlightValueProvider<Value> {
   |                                    `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
11 |
12 |     /// Provides a `Value` or throws an `Error`.
   :
34 |         }
35 |
36 |         let newTask = Task<Value, Error> {
   |                       `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 |             return try await producer()
38 |         }
/Users/admin/builder/spi-builder-workspace/Sources/InFlightValue/InFlightValueProvider.swift:36:40: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 8 |
 9 | /// Provides access to in-flight calls to values of a producer.
10 | public actor InFlightValueProvider<Value> {
   |                                    `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
11 |
12 |     /// Provides a `Value` or throws an `Error`.
   :
34 |         }
35 |
36 |         let newTask = Task<Value, Error> {
   |                                        `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 |             return try await producer()
38 |         }
/Users/admin/builder/spi-builder-workspace/Sources/InFlightValue/InFlightValueProvider.swift:43:34: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 8 |
 9 | /// Provides access to in-flight calls to values of a producer.
10 | public actor InFlightValueProvider<Value> {
   |                                    `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
11 |
12 |     /// Provides a `Value` or throws an `Error`.
   :
41 |         activeTask = newTask
42 |
43 |         return try await newTask.value
   |                                  `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 |     }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/InFlightValue/InFlightValueProvider.swift:33:30: warning: non-sendable type 'Task<Value, any Error>' exiting actor-isolated context in call to non-isolated property 'value' cannot cross actor boundary; this is an error in the Swift 6 language mode
 8 |
 9 | /// Provides access to in-flight calls to values of a producer.
10 | public actor InFlightValueProvider<Value> {
   |                                    `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
11 |
12 |     /// Provides a `Value` or throws an `Error`.
   :
31 |     public func get() async throws -> Value {
32 |         if let activeTask = activeTask {
33 |             return try await activeTask.value
   |                              `- warning: non-sendable type 'Task<Value, any Error>' exiting actor-isolated context in call to non-isolated property 'value' cannot cross actor boundary; this is an error in the Swift 6 language mode
34 |         }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/InFlightValue/InFlightValueProvider.swift:33:41: warning: non-sendable type 'Value' in asynchronous access from actor-isolated context to non-isolated property 'value' cannot cross actor boundary; this is an error in the Swift 6 language mode
 8 |
 9 | /// Provides access to in-flight calls to values of a producer.
10 | public actor InFlightValueProvider<Value> {
   |                                    `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
11 |
12 |     /// Provides a `Value` or throws an `Error`.
   :
31 |     public func get() async throws -> Value {
32 |         if let activeTask = activeTask {
33 |             return try await activeTask.value
   |                                         `- warning: non-sendable type 'Value' in asynchronous access from actor-isolated context to non-isolated property 'value' cannot cross actor boundary; this is an error in the Swift 6 language mode
34 |         }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/InFlightValue/InFlightValueProvider.swift:37:30: warning: non-sendable type 'Value' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 8 |
 9 | /// Provides access to in-flight calls to values of a producer.
10 | public actor InFlightValueProvider<Value> {
   |                                    `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
11 |
12 |     /// Provides a `Value` or throws an `Error`.
   :
35 |
36 |         let newTask = Task<Value, Error> {
37 |             return try await producer()
   |                              `- warning: non-sendable type 'Value' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
38 |         }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/InFlightValue/InFlightValueProvider.swift:43:26: warning: non-sendable type 'Task<Value, any Error>' exiting actor-isolated context in call to non-isolated property 'value' cannot cross actor boundary; this is an error in the Swift 6 language mode
 8 |
 9 | /// Provides access to in-flight calls to values of a producer.
10 | public actor InFlightValueProvider<Value> {
   |                                    `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
11 |
12 |     /// Provides a `Value` or throws an `Error`.
   :
41 |         activeTask = newTask
42 |
43 |         return try await newTask.value
   |                          `- warning: non-sendable type 'Task<Value, any Error>' exiting actor-isolated context in call to non-isolated property 'value' cannot cross actor boundary; this is an error in the Swift 6 language mode
44 |     }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/InFlightValue/InFlightValueProvider.swift:43:34: warning: non-sendable type 'Value' in asynchronous access from actor-isolated context to non-isolated property 'value' cannot cross actor boundary; this is an error in the Swift 6 language mode
 8 |
 9 | /// Provides access to in-flight calls to values of a producer.
10 | public actor InFlightValueProvider<Value> {
   |                                    `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
11 |
12 |     /// Provides a `Value` or throws an `Error`.
   :
41 |         activeTask = newTask
42 |
43 |         return try await newTask.value
   |                                  `- warning: non-sendable type 'Value' in asynchronous access from actor-isolated context to non-isolated property 'value' cannot cross actor boundary; this is an error in the Swift 6 language mode
44 |     }
45 |
Build complete! (2.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "InFlightValue",
  "name" : "InFlightValue",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "InFlightValue",
      "targets" : [
        "InFlightValue"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InFlightValueTests",
      "module_type" : "SwiftTarget",
      "name" : "InFlightValueTests",
      "path" : "Tests/InFlightValueTests",
      "sources" : [
        "InFlightValueTests.swift"
      ],
      "target_dependencies" : [
        "InFlightValue"
      ],
      "type" : "test"
    },
    {
      "c99name" : "InFlightValue",
      "module_type" : "SwiftTarget",
      "name" : "InFlightValue",
      "path" : "Sources/InFlightValue",
      "product_memberships" : [
        "InFlightValue"
      ],
      "sources" : [
        "InFlightValueProvider.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.