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 EventHub, reference 1.0.0 (764e6a), with Swift 6.0 for Linux on 8 Oct 2024 10:34:29 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/imbue11235/EventHub.git
Reference: 1.0.0
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/imbue11235/EventHub
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 764e6a1 Updated PodSpec
Cloned https://github.com/imbue11235/EventHub.git
Revision (git rev-parse @):
764e6a1caf8d084aba2111a64318b4f1c889cc0c
SUCCESS checkout https://github.com/imbue11235/EventHub.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/imbue11235/EventHub.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:b1f5b321a5d74ef5eaf6f5f3afbfebaaa54c7954de6f859009c18a90e0e1c3b4
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/8] Compiling EventHub EventHub+Subscriber.swift
[4/8] Compiling EventHub Listener.swift
[5/8] Compiling EventHub EventHub+SubscriptionType.swift
[6/8] Compiling EventHub Event.swift
[7/8] Emitting module EventHub
[8/8] Compiling EventHub EventHub.swift
/host/spi-builder-workspace/Sources/EventHub/EventHub.swift:30:17: warning: capture of 'self' with non-sendable type 'EventHub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | final public class EventHub {
   |                    `- note: class 'EventHub' does not conform to the 'Sendable' protocol
 4 |
 5 |     public typealias Callback<T: Event> = (T) -> ()
   :
28 |         self.subscriptions.forEach { subscriber in
29 |             self.queue.async {
30 |                 self.notify(a: subscriber, of: event)
   |                 `- warning: capture of 'self' with non-sendable type 'EventHub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 |             }
32 |         }
/host/spi-builder-workspace/Sources/EventHub/EventHub.swift:30:32: warning: capture of 'subscriber' with non-sendable type 'EventHub.Subscriber' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |         self.subscriptions.forEach { subscriber in
29 |             self.queue.async {
30 |                 self.notify(a: subscriber, of: event)
   |                                `- warning: capture of 'subscriber' with non-sendable type 'EventHub.Subscriber' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 |             }
32 |         }
/host/spi-builder-workspace/Sources/EventHub/EventHub+Subscriber.swift:2:21: note: consider making struct 'Subscriber' conform to the 'Sendable' protocol
1 | extension EventHub {
2 |     internal struct Subscriber {
  |                     `- note: consider making struct 'Subscriber' conform to the 'Sendable' protocol
3 |         public let identifier: String
4 |         public let handler: Any
/host/spi-builder-workspace/Sources/EventHub/EventHub.swift:30:48: warning: capture of 'event' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 |     }
26 |
27 |     public func trigger<T: Event>(event: T) {
   |                         `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 |         self.subscriptions.forEach { subscriber in
29 |             self.queue.async {
30 |                 self.notify(a: subscriber, of: event)
   |                                                `- warning: capture of 'event' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 |             }
32 |         }
Build complete! (9.35s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EventHub",
  "name" : "EventHub",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "EventHub",
      "targets" : [
        "EventHub"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EventHubTests",
      "module_type" : "SwiftTarget",
      "name" : "EventHubTests",
      "path" : "Tests/EventHubTests",
      "sources" : [
        "EventHubTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "EventHub"
      ],
      "type" : "test"
    },
    {
      "c99name" : "EventHub",
      "module_type" : "SwiftTarget",
      "name" : "EventHub",
      "path" : "Sources/EventHub",
      "product_memberships" : [
        "EventHub"
      ],
      "sources" : [
        "Event.swift",
        "EventHub+Subscriber.swift",
        "EventHub+SubscriptionType.swift",
        "EventHub.swift",
        "Listener.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:b1f5b321a5d74ef5eaf6f5f3afbfebaaa54c7954de6f859009c18a90e0e1c3b4
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.