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 swift-concurrency-primitives, reference main (d7c711), with Swift 6.0 for Linux on 1 Dec 2024 21:59:03 UTC.

Swift 6 data race errors: 6

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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Genaro-Chris/swift-concurrency-primitives.git
Reference: main
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/Genaro-Chris/swift-concurrency-primitives
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d7c711d V0.1.0
Cloned https://github.com/Genaro-Chris/swift-concurrency-primitives.git
Revision (git rev-parse @):
d7c711d397f144ac4e15726b8f1775cc314d42d7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Genaro-Chris/swift-concurrency-primitives.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Genaro-Chris/swift-concurrency-primitives.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/30] Compiling Primitives OnceState.swift
[4/30] Compiling Primitives OneShotChannel.swift
[5/30] Compiling Primitives Operators.swift
[6/30] Compiling Primitives Queue.swift
[7/30] Compiling Primitives Semaphore.swift
[8/30] Compiling Primitives SingleElementStorage.swift
[9/30] Compiling Primitives Storage.swift
[10/30] Compiling Primitives TaskChannel.swift
[11/33] Emitting module Primitives
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 |     }
19 |
20 |     public static let nanoseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'nanoseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         TimeDuration(duration: .nanoseconds, value: value)
22 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static let microseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'microseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |         TimeDuration(duration: .microseconds, value: value)
26 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     }
27 |
28 |     public static let milliseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'milliseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |         TimeDuration(duration: .milliseconds, value: value)
30 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     public static let seconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'seconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |         TimeDuration(duration: .seconds, value: value)
34 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |
36 |     public static let minutes = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'minutes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         TimeDuration(duration: .minutes, value: value)
38 |     }
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | /// }
 16 | /// ```
 17 | public final class WorkerPool {
    |                    `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
 18 |
 19 |     let taskChannels: [TaskChannel]
    :
 27 |     let waitType: WaitType
 28 |
 29 |     static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 |     /// Initialises an instance of the `WorkerPool` type
[12/33] Compiling Primitives Channel.swift
[13/33] Compiling Primitives Condition.swift
[14/33] Compiling Primitives ConditionLock.swift
[15/33] Compiling Primitives Latch.swift
[16/33] Compiling Primitives Lock.swift
[17/33] Compiling Primitives Locked.swift
[18/33] Compiling Primitives Mutex.swift
[19/33] Compiling Primitives Once.swift
[20/33] Compiling Primitives ArrayStorage.swift
[21/33] Compiling Primitives Barrier.swift
[22/33] Compiling Primitives BoundedChannel.swift
[23/33] Compiling Primitives Buffers.swift
[24/33] Compiling Primitives ThreadParker.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 |     }
19 |
20 |     public static let nanoseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'nanoseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         TimeDuration(duration: .nanoseconds, value: value)
22 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static let microseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'microseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |         TimeDuration(duration: .microseconds, value: value)
26 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     }
27 |
28 |     public static let milliseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'milliseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |         TimeDuration(duration: .milliseconds, value: value)
30 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     public static let seconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'seconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |         TimeDuration(duration: .seconds, value: value)
34 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |
36 |     public static let minutes = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'minutes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         TimeDuration(duration: .minutes, value: value)
38 |     }
[25/33] Compiling Primitives ThreadPool.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 |     }
19 |
20 |     public static let nanoseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'nanoseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         TimeDuration(duration: .nanoseconds, value: value)
22 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static let microseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'microseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |         TimeDuration(duration: .microseconds, value: value)
26 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     }
27 |
28 |     public static let milliseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'milliseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |         TimeDuration(duration: .milliseconds, value: value)
30 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     public static let seconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'seconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |         TimeDuration(duration: .seconds, value: value)
34 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |
36 |     public static let minutes = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'minutes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         TimeDuration(duration: .minutes, value: value)
38 |     }
[26/33] Compiling Primitives TimeDuration.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 |     }
19 |
20 |     public static let nanoseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'nanoseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         TimeDuration(duration: .nanoseconds, value: value)
22 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static let microseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'microseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |         TimeDuration(duration: .microseconds, value: value)
26 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     }
27 |
28 |     public static let milliseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'milliseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |         TimeDuration(duration: .milliseconds, value: value)
30 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     public static let seconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'seconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |         TimeDuration(duration: .seconds, value: value)
34 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |
36 |     public static let minutes = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'minutes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         TimeDuration(duration: .minutes, value: value)
38 |     }
[27/33] Compiling Primitives Timespec.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 |     }
19 |
20 |     public static let nanoseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'nanoseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         TimeDuration(duration: .nanoseconds, value: value)
22 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static let microseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'microseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |         TimeDuration(duration: .microseconds, value: value)
26 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     }
27 |
28 |     public static let milliseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'milliseconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |         TimeDuration(duration: .milliseconds, value: value)
30 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     public static let seconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'seconds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |         TimeDuration(duration: .seconds, value: value)
34 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |
36 |     public static let minutes = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'minutes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         TimeDuration(duration: .minutes, value: value)
38 |     }
[28/33] Compiling Primitives UnboundedChannel.swift
[29/33] Compiling Primitives UnbufferedChannel.swift
[30/33] Compiling Primitives WaitGroup.swift
[31/33] Compiling Primitives WaitType.swift
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | /// }
 16 | /// ```
 17 | public final class WorkerPool {
    |                    `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
 18 |
 19 |     let taskChannels: [TaskChannel]
    :
 27 |     let waitType: WaitType
 28 |
 29 |     static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 |     /// Initialises an instance of the `WorkerPool` type
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:74:38: warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 72 |             taskChannels.forEach { channel in
 73 |                 Thread { [channel] in
 74 |                     while let task = channel.dequeue() { task() }
    |                                      `- warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 |                 }.start()
 76 |             }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | struct TaskChannel {
   |        `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 4 |
 5 |     let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
/host/spi-builder-workspace/Sources/Primitives/WorkerThread.swift:52:34: warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 |         onceFlag.runOnce {
51 |             Thread { [taskChannel] in
52 |                 while let task = taskChannel.dequeue() { task() }
   |                                  `- warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 |             }.start()
54 |         }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | struct TaskChannel {
   |        `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 4 |
 5 |     let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
[32/33] Compiling Primitives WorkerPool.swift
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | /// }
 16 | /// ```
 17 | public final class WorkerPool {
    |                    `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
 18 |
 19 |     let taskChannels: [TaskChannel]
    :
 27 |     let waitType: WaitType
 28 |
 29 |     static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 |     /// Initialises an instance of the `WorkerPool` type
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:74:38: warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 72 |             taskChannels.forEach { channel in
 73 |                 Thread { [channel] in
 74 |                     while let task = channel.dequeue() { task() }
    |                                      `- warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 |                 }.start()
 76 |             }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | struct TaskChannel {
   |        `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 4 |
 5 |     let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
/host/spi-builder-workspace/Sources/Primitives/WorkerThread.swift:52:34: warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 |         onceFlag.runOnce {
51 |             Thread { [taskChannel] in
52 |                 while let task = taskChannel.dequeue() { task() }
   |                                  `- warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 |             }.start()
54 |         }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | struct TaskChannel {
   |        `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 4 |
 5 |     let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
[33/33] Compiling Primitives WorkerThread.swift
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | /// }
 16 | /// ```
 17 | public final class WorkerPool {
    |                    `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
 18 |
 19 |     let taskChannels: [TaskChannel]
    :
 27 |     let waitType: WaitType
 28 |
 29 |     static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 |     /// Initialises an instance of the `WorkerPool` type
/host/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:74:38: warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 72 |             taskChannels.forEach { channel in
 73 |                 Thread { [channel] in
 74 |                     while let task = channel.dequeue() { task() }
    |                                      `- warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 |                 }.start()
 76 |             }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | struct TaskChannel {
   |        `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 4 |
 5 |     let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
/host/spi-builder-workspace/Sources/Primitives/WorkerThread.swift:52:34: warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 |         onceFlag.runOnce {
51 |             Thread { [taskChannel] in
52 |                 while let task = taskChannel.dequeue() { task() }
   |                                  `- warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 |             }.start()
54 |         }
/host/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | struct TaskChannel {
   |        `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
 4 |
 5 |     let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
Build complete! (22.67s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-concurrency-primitives",
  "name" : "swift-concurrency-primitives",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "Primitives",
      "targets" : [
        "Primitives"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Primitives_Tests",
      "module_type" : "SwiftTarget",
      "name" : "Primitives-Tests",
      "path" : "Tests/PrimitivesTests",
      "sources" : [
        "ChannelTests.swift",
        "PrimitivesTests.swift",
        "SynchronizationTests.swift",
        "ThreadPoolTests.swift"
      ],
      "target_dependencies" : [
        "Primitives"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Primitives",
      "module_type" : "SwiftTarget",
      "name" : "Primitives",
      "path" : "Sources/Primitives",
      "product_memberships" : [
        "Primitives"
      ],
      "sources" : [
        "ArrayStorage.swift",
        "Barrier.swift",
        "BoundedChannel.swift",
        "Buffers.swift",
        "Channel.swift",
        "Condition.swift",
        "ConditionLock.swift",
        "Latch.swift",
        "Lock.swift",
        "Locked.swift",
        "Mutex.swift",
        "Once.swift",
        "OnceState.swift",
        "OneShotChannel.swift",
        "Operators.swift",
        "Queue.swift",
        "Semaphore.swift",
        "SingleElementStorage.swift",
        "Storage.swift",
        "TaskChannel.swift",
        "ThreadParker.swift",
        "ThreadPool.swift",
        "TimeDuration.swift",
        "Timespec.swift",
        "UnboundedChannel.swift",
        "UnbufferedChannel.swift",
        "WaitGroup.swift",
        "WaitType.swift",
        "WorkerPool.swift",
        "WorkerThread.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.