The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of Causality, reference 0.0.6 (4122e2), with Swift 6.1 for Android on 28 May 2025 06:58:43 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dannys42/Causality.git
Reference: 0.0.6
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/dannys42/Causality
 * tag               0.0.6      -> FETCH_HEAD
HEAD is now at 4122e20 Update inline doc for DynamicState.
Cloned https://github.com/dannys42/Causality.git
Revision (git rev-parse @):
4122e2059ffb26f051869c5d3c0d4c2dfd9096a5
SUCCESS checkout https://github.com/dannys42/Causality.git at 0.0.6
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/dannys42/Causality.git
https://github.com/dannys42/Causality.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Causality",
  "name" : "Causality",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Causality",
      "targets" : [
        "Causality"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CausalityTests",
      "module_type" : "SwiftTarget",
      "name" : "CausalityTests",
      "path" : "Tests/CausalityTests",
      "sources" : [
        "EventTests.swift",
        "StateTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Causality"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Causality",
      "module_type" : "SwiftTarget",
      "name" : "Causality",
      "path" : "Sources/Causality",
      "product_memberships" : [
        "Causality"
      ],
      "sources" : [
        "Address.swift",
        "Bus.swift",
        "Causality.swift",
        "Event.swift",
        "Internal/CausalityAnySubscription.swift",
        "Internal/EncodableExtension.swift",
        "Internal/EventSubscription.swift",
        "Internal/StateSubscription.swift",
        "Message.swift",
        "State.swift",
        "WorkQueue.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling Causality CausalityAnySubscription.swift
[4/13] Compiling Causality EncodableExtension.swift
[5/14] Compiling Causality Causality.swift
/host/spi-builder-workspace/Sources/Causality/Event.swift:164:34: warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
162 |     public func unsubscribe<Event: Causality.AnyEvent<Message>, Message: Causality.Message>(_ subscriptions: [Causality.EventSubscription<Event, Message>]) {
163 |         self.queue.async {
164 |             var newSubscribers = self.eventSubscribers
    |                                  `- warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
165 |             for subscription in subscriptions {
166 |                 newSubscribers.removeValue(forKey: subscription.id)
/host/spi-builder-workspace/Sources/Causality/Bus.swift:32:11: note: class 'Bus' does not conform to the 'Sendable' protocol
30 |
31 |     /// A Bus for events to go from publishers to subscribers
32 |     class Bus {
   |           `- note: class 'Bus' does not conform to the 'Sendable' protocol
33 |         /// A name for the bus.
34 |         public private(set) var label: String
/host/spi-builder-workspace/Sources/Causality/Event.swift:165:33: warning: capture of 'subscriptions' with non-sendable type '[Causality.EventSubscription<Event, Message>]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
163 |         self.queue.async {
164 |             var newSubscribers = self.eventSubscribers
165 |             for subscription in subscriptions {
    |                                 `- warning: capture of 'subscriptions' with non-sendable type '[Causality.EventSubscription<Event, Message>]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
166 |                 newSubscribers.removeValue(forKey: subscription.id)
167 |             }
/host/spi-builder-workspace/Sources/Causality/Internal/EventSubscription.swift:19:18: note: generic class 'EventSubscription' does not conform to the 'Sendable' protocol
17 |     /// Subscription handler for Events.
18 |     /// Used to `unsubscribe()` or determine the `bus` or `state` that triggered an update.
19 |     public class EventSubscription<Event: Causality.AnyEvent<Message>, Message: Causality.Message>: CausalityAnyEventSubscription {
   |                  `- note: generic class 'EventSubscription' does not conform to the 'Sendable' protocol
20 |         typealias SubscriptionHandler = (EventSubscription<Event,Message>, Message)->Void
21 |
/host/spi-builder-workspace/Sources/Causality/Event.swift:184:13: warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
182 |         let subscriber = Causality.EventSubscription(bus: self, event: event, handler: handler, workQueue: workQueue)
183 |         self.queue.async {
184 |             self.eventSubscribers[subscriber.id] = subscriber
    |             `- warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
185 |         }
186 |
/host/spi-builder-workspace/Sources/Causality/Bus.swift:32:11: note: class 'Bus' does not conform to the 'Sendable' protocol
30 |
31 |     /// A Bus for events to go from publishers to subscribers
32 |     class Bus {
   |           `- note: class 'Bus' does not conform to the 'Sendable' protocol
33 |         /// A name for the bus.
34 |         public private(set) var label: String
/host/spi-builder-workspace/Sources/Causality/Event.swift:184:35: warning: capture of 'subscriber' with non-sendable type 'Causality.EventSubscription<Event, Message>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
182 |         let subscriber = Causality.EventSubscription(bus: self, event: event, handler: handler, workQueue: workQueue)
183 |         self.queue.async {
184 |             self.eventSubscribers[subscriber.id] = subscriber
    |                                   `- warning: capture of 'subscriber' with non-sendable type 'Causality.EventSubscription<Event, Message>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
185 |         }
186 |
/host/spi-builder-workspace/Sources/Causality/Internal/EventSubscription.swift:19:18: note: generic class 'EventSubscription' does not conform to the 'Sendable' protocol
17 |     /// Subscription handler for Events.
18 |     /// Used to `unsubscribe()` or determine the `bus` or `state` that triggered an update.
19 |     public class EventSubscription<Event: Causality.AnyEvent<Message>, Message: Causality.Message>: CausalityAnyEventSubscription {
   |                  `- note: generic class 'EventSubscription' does not conform to the 'Sendable' protocol
20 |         typealias SubscriptionHandler = (EventSubscription<Event,Message>, Message)->Void
21 |
[6/14] Compiling Causality Event.swift
/host/spi-builder-workspace/Sources/Causality/Event.swift:164:34: warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
162 |     public func unsubscribe<Event: Causality.AnyEvent<Message>, Message: Causality.Message>(_ subscriptions: [Causality.EventSubscription<Event, Message>]) {
163 |         self.queue.async {
164 |             var newSubscribers = self.eventSubscribers
    |                                  `- warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
165 |             for subscription in subscriptions {
166 |                 newSubscribers.removeValue(forKey: subscription.id)
/host/spi-builder-workspace/Sources/Causality/Bus.swift:32:11: note: class 'Bus' does not conform to the 'Sendable' protocol
30 |
31 |     /// A Bus for events to go from publishers to subscribers
32 |     class Bus {
   |           `- note: class 'Bus' does not conform to the 'Sendable' protocol
33 |         /// A name for the bus.
34 |         public private(set) var label: String
/host/spi-builder-workspace/Sources/Causality/Event.swift:165:33: warning: capture of 'subscriptions' with non-sendable type '[Causality.EventSubscription<Event, Message>]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
163 |         self.queue.async {
164 |             var newSubscribers = self.eventSubscribers
165 |             for subscription in subscriptions {
    |                                 `- warning: capture of 'subscriptions' with non-sendable type '[Causality.EventSubscription<Event, Message>]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
166 |                 newSubscribers.removeValue(forKey: subscription.id)
167 |             }
/host/spi-builder-workspace/Sources/Causality/Internal/EventSubscription.swift:19:18: note: generic class 'EventSubscription' does not conform to the 'Sendable' protocol
17 |     /// Subscription handler for Events.
18 |     /// Used to `unsubscribe()` or determine the `bus` or `state` that triggered an update.
19 |     public class EventSubscription<Event: Causality.AnyEvent<Message>, Message: Causality.Message>: CausalityAnyEventSubscription {
   |                  `- note: generic class 'EventSubscription' does not conform to the 'Sendable' protocol
20 |         typealias SubscriptionHandler = (EventSubscription<Event,Message>, Message)->Void
21 |
/host/spi-builder-workspace/Sources/Causality/Event.swift:184:13: warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
182 |         let subscriber = Causality.EventSubscription(bus: self, event: event, handler: handler, workQueue: workQueue)
183 |         self.queue.async {
184 |             self.eventSubscribers[subscriber.id] = subscriber
    |             `- warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
185 |         }
186 |
/host/spi-builder-workspace/Sources/Causality/Bus.swift:32:11: note: class 'Bus' does not conform to the 'Sendable' protocol
30 |
31 |     /// A Bus for events to go from publishers to subscribers
32 |     class Bus {
   |           `- note: class 'Bus' does not conform to the 'Sendable' protocol
33 |         /// A name for the bus.
34 |         public private(set) var label: String
/host/spi-builder-workspace/Sources/Causality/Event.swift:184:35: warning: capture of 'subscriber' with non-sendable type 'Causality.EventSubscription<Event, Message>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
182 |         let subscriber = Causality.EventSubscription(bus: self, event: event, handler: handler, workQueue: workQueue)
183 |         self.queue.async {
184 |             self.eventSubscribers[subscriber.id] = subscriber
    |                                   `- warning: capture of 'subscriber' with non-sendable type 'Causality.EventSubscription<Event, Message>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
185 |         }
186 |
/host/spi-builder-workspace/Sources/Causality/Internal/EventSubscription.swift:19:18: note: generic class 'EventSubscription' does not conform to the 'Sendable' protocol
17 |     /// Subscription handler for Events.
18 |     /// Used to `unsubscribe()` or determine the `bus` or `state` that triggered an update.
19 |     public class EventSubscription<Event: Causality.AnyEvent<Message>, Message: Causality.Message>: CausalityAnyEventSubscription {
   |                  `- note: generic class 'EventSubscription' does not conform to the 'Sendable' protocol
20 |         typealias SubscriptionHandler = (EventSubscription<Event,Message>, Message)->Void
21 |
[7/14] Compiling Causality StateSubscription.swift
[8/14] Compiling Causality Message.swift
/host/spi-builder-workspace/Sources/Causality/Message.swift:18:29: warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Causality.NoMessage' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 |     /// A convenience message that can be included for events that have no associated data
13 |     struct NoMessage: Message {
   |            `- note: consider making struct 'NoMessage' conform to the 'Sendable' protocol
14 |
15 |         /// Users of the library are not expected to create these messages
16 |         private init() {
17 |         }
18 |         internal static let message = NoMessage()
   |                             |- warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Causality.NoMessage' may have shared mutable state; this is an error in the Swift 6 language mode
   |                             |- note: add '@MainActor' to make static property 'message' part of global actor 'MainActor'
   |                             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |     }
20 |
[9/14] Compiling Causality EventSubscription.swift
[10/14] Compiling Causality State.swift
/host/spi-builder-workspace/Sources/Causality/State.swift:186:34: warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
184 |     public func unsubscribe<State: Causality.AnyState<Value>, Value: Causality.StateValue>(_ subscriptions: [Causality.StateSubscription<State, Value>]) {
185 |         self.queue.async {
186 |             var newSubscribers = self.eventSubscribers
    |                                  `- warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
187 |             for subscription in subscriptions {
188 |                 newSubscribers.removeValue(forKey: subscription.id)
/host/spi-builder-workspace/Sources/Causality/Bus.swift:32:11: note: class 'Bus' does not conform to the 'Sendable' protocol
30 |
31 |     /// A Bus for events to go from publishers to subscribers
32 |     class Bus {
   |           `- note: class 'Bus' does not conform to the 'Sendable' protocol
33 |         /// A name for the bus.
34 |         public private(set) var label: String
/host/spi-builder-workspace/Sources/Causality/State.swift:187:33: warning: capture of 'subscriptions' with non-sendable type '[Causality.StateSubscription<State, Value>]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
185 |         self.queue.async {
186 |             var newSubscribers = self.eventSubscribers
187 |             for subscription in subscriptions {
    |                                 `- warning: capture of 'subscriptions' with non-sendable type '[Causality.StateSubscription<State, Value>]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 |                 newSubscribers.removeValue(forKey: subscription.id)
189 |             }
/host/spi-builder-workspace/Sources/Causality/Internal/StateSubscription.swift:18:11: note: generic class 'StateSubscription' does not conform to the 'Sendable' protocol
16 |     /// Subscription handler for States.
17 |     /// Used to `unsubscribe()` or determine the `bus` or `state` that triggered an update.
18 |     class StateSubscription<State: Causality.AnyState<Value>, Value: Causality.StateValue>: CausalityAnyStateSubscription {
   |           `- note: generic class 'StateSubscription' does not conform to the 'Sendable' protocol
19 |         typealias SubscriptionHandler = (Causality.StateSubscription<State,Value>, Value)->Void
20 |
/host/spi-builder-workspace/Sources/Causality/State.swift:205:13: warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
203 |         let subscriber = Causality.StateSubscription(bus: self, state: state, handler: handler, workQueue: workQueue)
204 |         self.queue.async {
205 |             self.stateSubscribers[subscriber.id] = subscriber
    |             `- warning: capture of 'self' with non-sendable type 'Causality.Bus' in a '@Sendable' closure; this is an error in the Swift 6 language mode
206 |
207 |             if let lastState = self.state[state.causalityStateId] as? Value {
/host/spi-builder-workspace/Sources/Causality/Bus.swift:32:11: note: class 'Bus' does not conform to the 'Sendable' protocol
30 |
31 |     /// A Bus for events to go from publishers to subscribers
32 |     class Bus {
   |           `- note: class 'Bus' does not conform to the 'Sendable' protocol
33 |         /// A name for the bus.
34 |         public private(set) var label: String
/host/spi-builder-workspace/Sources/Causality/State.swift:205:35: warning: capture of 'subscriber' with non-sendable type 'Causality.StateSubscription<State, Value>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
203 |         let subscriber = Causality.StateSubscription(bus: self, state: state, handler: handler, workQueue: workQueue)
204 |         self.queue.async {
205 |             self.stateSubscribers[subscriber.id] = subscriber
    |                                   `- warning: capture of 'subscriber' with non-sendable type 'Causality.StateSubscription<State, Value>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
206 |
207 |             if let lastState = self.state[state.causalityStateId] as? Value {
/host/spi-builder-workspace/Sources/Causality/Internal/StateSubscription.swift:18:11: note: generic class 'StateSubscription' does not conform to the 'Sendable' protocol
16 |     /// Subscription handler for States.
17 |     /// Used to `unsubscribe()` or determine the `bus` or `state` that triggered an update.
18 |     class StateSubscription<State: Causality.AnyState<Value>, Value: Causality.StateValue>: CausalityAnyStateSubscription {
   |           `- note: generic class 'StateSubscription' does not conform to the 'Sendable' protocol
19 |         typealias SubscriptionHandler = (Causality.StateSubscription<State,Value>, Value)->Void
20 |
/host/spi-builder-workspace/Sources/Causality/State.swift:207:43: warning: capture of 'state' with non-sendable type 'State' in a '@Sendable' closure; this is an error in the Swift 6 language mode
199 |     ///   - workQueue: The queue on which to execute the handler
200 |     ///   - handler: A handler that is called when the state changes.  If there was a previous value, the handler be called immediately with the old value.
201 |     private func subscribe<State: Causality.AnyState<Value>, Value: Causality.StateValue>(_ state: State, workQueue: WorkQueue, handler: @escaping (Causality.StateSubscription<State, Value>, Value)->Void) -> Causality.StateSubscription<State, Value> {
    |                            `- note: consider making generic parameter 'State' conform to the 'Sendable' protocol
202 |
203 |         let subscriber = Causality.StateSubscription(bus: self, state: state, handler: handler, workQueue: workQueue)
    :
205 |             self.stateSubscribers[subscriber.id] = subscriber
206 |
207 |             if let lastState = self.state[state.causalityStateId] as? Value {
    |                                           `- warning: capture of 'state' with non-sendable type 'State' in a '@Sendable' closure; this is an error in the Swift 6 language mode
208 |                 let runQueue = subscriber.workQueue.withDefault(workQueue)
209 |                 runQueue.execute {
/host/spi-builder-workspace/Sources/Causality/State.swift:210:21: warning: capture of 'subscriber' with non-sendable type 'Causality.StateSubscription<State, Value>' in an isolated closure; this is an error in the Swift 6 language mode
208 |                 let runQueue = subscriber.workQueue.withDefault(workQueue)
209 |                 runQueue.execute {
210 |                     subscriber.handler(subscriber, lastState)
    |                     `- warning: capture of 'subscriber' with non-sendable type 'Causality.StateSubscription<State, Value>' in an isolated closure; this is an error in the Swift 6 language mode
211 |                 }
212 |             }
/host/spi-builder-workspace/Sources/Causality/Internal/StateSubscription.swift:18:11: note: generic class 'StateSubscription' does not conform to the 'Sendable' protocol
16 |     /// Subscription handler for States.
17 |     /// Used to `unsubscribe()` or determine the `bus` or `state` that triggered an update.
18 |     class StateSubscription<State: Causality.AnyState<Value>, Value: Causality.StateValue>: CausalityAnyStateSubscription {
   |           `- note: generic class 'StateSubscription' does not conform to the 'Sendable' protocol
19 |         typealias SubscriptionHandler = (Causality.StateSubscription<State,Value>, Value)->Void
20 |
[11/14] Emitting module Causality
/host/spi-builder-workspace/Sources/Causality/Bus.swift:15:16: warning: static property 'bus' is not concurrency-safe because non-'Sendable' type 'Causality.Bus' may have shared mutable state; this is an error in the Swift 6 language mode
13 |     static let globalQueue = DispatchQueue(label: "Causality.global", qos: .default, attributes: [], autoreleaseFrequency: .inherit, target: .global(qos: .default))
14 |     /// A default/global bus
15 |     static let bus = Bus(label: "global", queue: globalQueue)
   |                |- warning: static property 'bus' is not concurrency-safe because non-'Sendable' type 'Causality.Bus' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'bus' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     /// Subscriptions can have the following statuses:
   :
30 |
31 |     /// A Bus for events to go from publishers to subscribers
32 |     class Bus {
   |           `- note: class 'Bus' does not conform to the 'Sendable' protocol
33 |         /// A name for the bus.
34 |         public private(set) var label: String
/host/spi-builder-workspace/Sources/Causality/Message.swift:18:29: warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Causality.NoMessage' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 |     /// A convenience message that can be included for events that have no associated data
13 |     struct NoMessage: Message {
   |            `- note: consider making struct 'NoMessage' conform to the 'Sendable' protocol
14 |
15 |         /// Users of the library are not expected to create these messages
16 |         private init() {
17 |         }
18 |         internal static let message = NoMessage()
   |                             |- warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Causality.NoMessage' may have shared mutable state; this is an error in the Swift 6 language mode
   |                             |- note: add '@MainActor' to make static property 'message' part of global actor 'MainActor'
   |                             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |     }
20 |
[12/14] Compiling Causality Address.swift
/host/spi-builder-workspace/Sources/Causality/Bus.swift:15:16: warning: static property 'bus' is not concurrency-safe because non-'Sendable' type 'Causality.Bus' may have shared mutable state; this is an error in the Swift 6 language mode
13 |     static let globalQueue = DispatchQueue(label: "Causality.global", qos: .default, attributes: [], autoreleaseFrequency: .inherit, target: .global(qos: .default))
14 |     /// A default/global bus
15 |     static let bus = Bus(label: "global", queue: globalQueue)
   |                |- warning: static property 'bus' is not concurrency-safe because non-'Sendable' type 'Causality.Bus' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'bus' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     /// Subscriptions can have the following statuses:
   :
30 |
31 |     /// A Bus for events to go from publishers to subscribers
32 |     class Bus {
   |           `- note: class 'Bus' does not conform to the 'Sendable' protocol
33 |         /// A name for the bus.
34 |         public private(set) var label: String
[13/14] Compiling Causality Bus.swift
/host/spi-builder-workspace/Sources/Causality/Bus.swift:15:16: warning: static property 'bus' is not concurrency-safe because non-'Sendable' type 'Causality.Bus' may have shared mutable state; this is an error in the Swift 6 language mode
13 |     static let globalQueue = DispatchQueue(label: "Causality.global", qos: .default, attributes: [], autoreleaseFrequency: .inherit, target: .global(qos: .default))
14 |     /// A default/global bus
15 |     static let bus = Bus(label: "global", queue: globalQueue)
   |                |- warning: static property 'bus' is not concurrency-safe because non-'Sendable' type 'Causality.Bus' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'bus' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     /// Subscriptions can have the following statuses:
   :
30 |
31 |     /// A Bus for events to go from publishers to subscribers
32 |     class Bus {
   |           `- note: class 'Bus' does not conform to the 'Sendable' protocol
33 |         /// A name for the bus.
34 |         public private(set) var label: String
[14/14] Compiling Causality WorkQueue.swift
/host/spi-builder-workspace/Sources/Causality/WorkQueue.swift:51:17: warning: capture of 'work' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 |         case .dispatch(let q):
50 |             q.async {
51 |                 work()
   |                 |- warning: capture of 'work' with non-sendable type '() -> Void' 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'
52 |             }
53 |         case .operation(let q):
/host/spi-builder-workspace/Sources/Causality/WorkQueue.swift:55:17: warning: capture of 'work' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
53 |         case .operation(let q):
54 |             q.addOperation {
55 |                 work()
   |                 |- warning: capture of 'work' with non-sendable type '() -> Void' 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'
56 |             }
57 |         }
Build complete! (18.03s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Causality",
  "name" : "Causality",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Causality",
      "targets" : [
        "Causality"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CausalityTests",
      "module_type" : "SwiftTarget",
      "name" : "CausalityTests",
      "path" : "Tests/CausalityTests",
      "sources" : [
        "EventTests.swift",
        "StateTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Causality"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Causality",
      "module_type" : "SwiftTarget",
      "name" : "Causality",
      "path" : "Sources/Causality",
      "product_memberships" : [
        "Causality"
      ],
      "sources" : [
        "Address.swift",
        "Bus.swift",
        "Causality.swift",
        "Event.swift",
        "Internal/CausalityAnySubscription.swift",
        "Internal/EncodableExtension.swift",
        "Internal/EventSubscription.swift",
        "Internal/StateSubscription.swift",
        "Message.swift",
        "State.swift",
        "WorkQueue.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.