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 Linux on 28 Nov 2024 09:08:12 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sgade/InFlightValue.git
Reference: 1.0.1
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/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
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/sgade/InFlightValue.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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] Compiling InFlightValue InFlightValueProvider.swift
/host/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) {
/host/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 |
/host/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 |         }
/host/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 |         }
/host/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 |
/host/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 |
/host/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 |
/host/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 |
/host/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 |
/host/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
/host/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! (4.86s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "InFlightValue",
  "name" : "InFlightValue",
  "path" : "/host/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"
}
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.