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, reference 1.0.1 (279167), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 02:40:19 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sgade/InFlightValue.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sgade/InFlightValue
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 279167c Add Sendable attribute to ValueProducer.
Cloned https://github.com/sgade/InFlightValue.git
Revision (git rev-parse @):
279167c1926f9ea27a2199487e5f481632380a99
SUCCESS checkout https://github.com/sgade/InFlightValue.git at 1.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "inflightvalue",
      "name": "InFlightValue",
      "url": "https://github.com/sgade/InFlightValue.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/InFlightValue",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/sgade/InFlightValue.git
[1/40] Fetching inflightvalue
Fetched https://github.com/sgade/InFlightValue.git from cache (0.56s)
Creating working copy for https://github.com/sgade/InFlightValue.git
Working copy of https://github.com/sgade/InFlightValue.git resolved at 1.0.1 (279167c)
warning: '.resolve-product-dependencies': dependency 'inflightvalue' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/sgade/InFlightValue.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun 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--7754E27361AE5C74.txt
[3/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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated property 'value' cannot cross actor boundary; this is an error in the Swift 6 language mode
44 |     }
45 |
[4/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) {
Build complete! (1.76s)
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.