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 Queuer, reference 3.0.1 (8bf0b4), with Swift 6.0 for Linux on 1 Dec 2024 00:51:30 UTC.

Swift 6 data race errors: 1

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 -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/FabrizioBrancati/Queuer.git
Reference: 3.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/FabrizioBrancati/Queuer
 * tag               3.0.1      -> FETCH_HEAD
HEAD is now at 8bf0b4c Merge branch 'main' into develop
Cloned https://github.com/FabrizioBrancati/Queuer.git
Revision (git rev-parse @):
8bf0b4cae3893f970e733025646d07fe8a39fb15
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/FabrizioBrancati/Queuer.git at 3.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/FabrizioBrancati/Queuer.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 -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
Fetching https://github.com/apple/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.34s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (1.95s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3188] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.38s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.50s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/10] Compiling Queuer Semaphore.swift
[6/10] Compiling Queuer Queuer.swift
/host/spi-builder-workspace/Sources/Queuer/Queuer.swift:32:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Queuer' may have shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 | /// Queuer class.
 30 | public class Queuer {
    |              `- note: class 'Queuer' does not conform to the 'Sendable' protocol
 31 |     /// Shared Queuer.
 32 |     public static let shared = Queuer(name: "Queuer")
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Queuer' 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
 33 |
 34 |     /// Queuer `OperationQueue`.
/host/spi-builder-workspace/Sources/Queuer/Queuer.swift:128:28: warning: passing non-sendable parameter 'operation' to function expecting a @Sendable closure
125 |     ///
126 |     /// - Parameter block: Block to be executed.
127 |     func addOperation(_ operation: @escaping () -> Void) {
    |                         `- note: parameter 'operation' is implicitly non-sendable
128 |         queue.addOperation(operation)
    |                            `- warning: passing non-sendable parameter 'operation' to function expecting a @Sendable closure
129 |     }
130 |
/host/spi-builder-workspace/Sources/Queuer/Queuer.swift:182:57: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
179 |     ///
180 |     /// - Parameter completionHandler: Completion handler to be executed as last `Operation`.
181 |     func addCompletionHandler(_ completionHandler: @escaping () -> Void) {
    |                                 `- note: parameter 'completionHandler' is implicitly non-sendable
182 |         let completionOperation = BlockOperation(block: completionHandler)
    |                                                         `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
183 |         if let lastOperation = operations.last {
184 |             completionOperation.addDependency(lastOperation)
[7/10] Compiling Queuer Scheduler.swift
[8/10] Emitting module Queuer
/host/spi-builder-workspace/Sources/Queuer/ConcurrentOperation.swift:31:12: warning: class 'ConcurrentOperation' must restate inherited '@unchecked Sendable' conformance
 29 | /// It allows asynchronous tasks, has a pause and resume states,
 30 | /// can be easily added to a queue and can be created with a block.
 31 | open class ConcurrentOperation: Operation {
    |            `- warning: class 'ConcurrentOperation' must restate inherited '@unchecked Sendable' conformance
 32 |     /// `Operation`'s execution block.
 33 |     public var executionBlock: ((_ operation: ConcurrentOperation) -> Void)?
/host/spi-builder-workspace/Sources/Queuer/GroupOperation.swift:30:12: warning: class 'GroupOperation' must restate inherited '@unchecked Sendable' conformance
28 |
29 | /// It allows the creation of group `Operation`s by using it's `operations` array of `ConcurrentOperation`.
30 | open class GroupOperation: ConcurrentOperation {
   |            `- warning: class 'GroupOperation' must restate inherited '@unchecked Sendable' conformance
31 |     /// Private `OperationQueue` instance.
32 |     private let queue = OperationQueue()
/host/spi-builder-workspace/Sources/Queuer/Queuer.swift:32:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Queuer' may have shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 | /// Queuer class.
 30 | public class Queuer {
    |              `- note: class 'Queuer' does not conform to the 'Sendable' protocol
 31 |     /// Shared Queuer.
 32 |     public static let shared = Queuer(name: "Queuer")
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Queuer' 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
 33 |
 34 |     /// Queuer `OperationQueue`.
[9/10] Compiling Queuer GroupOperation.swift
/host/spi-builder-workspace/Sources/Queuer/GroupOperation.swift:30:12: warning: class 'GroupOperation' must restate inherited '@unchecked Sendable' conformance
28 |
29 | /// It allows the creation of group `Operation`s by using it's `operations` array of `ConcurrentOperation`.
30 | open class GroupOperation: ConcurrentOperation {
   |            `- warning: class 'GroupOperation' must restate inherited '@unchecked Sendable' conformance
31 |     /// Private `OperationQueue` instance.
32 |     private let queue = OperationQueue()
/host/spi-builder-workspace/Sources/Queuer/GroupOperation.swift:57:30: warning: assigning non-sendable parameter 'completionHandler' to a @Sendable closure
51 |     ///     - operations: Array of ConcurrentOperation to be executed.
52 |     ///     - completionHandler: Block that will be executed once all operations are over.
53 |     public init(_ operations: [ConcurrentOperation], completionHandler: (() -> Void)? = nil) {
   |                                                      `- note: parameter 'completionHandler' is implicitly non-sendable
54 |         super.init()
55 |
56 |         self.operations = operations
57 |         self.completionBlock = completionHandler
   |                              `- warning: assigning non-sendable parameter 'completionHandler' to a @Sendable closure
58 |     }
59 |
[10/10] Compiling Queuer ConcurrentOperation.swift
/host/spi-builder-workspace/Sources/Queuer/ConcurrentOperation.swift:31:12: warning: class 'ConcurrentOperation' must restate inherited '@unchecked Sendable' conformance
 29 | /// It allows asynchronous tasks, has a pause and resume states,
 30 | /// can be easily added to a queue and can be created with a block.
 31 | open class ConcurrentOperation: Operation {
    |            `- warning: class 'ConcurrentOperation' must restate inherited '@unchecked Sendable' conformance
 32 |     /// `Operation`'s execution block.
 33 |     public var executionBlock: ((_ operation: ConcurrentOperation) -> Void)?
/host/spi-builder-workspace/Sources/Queuer/Queuer.swift:32:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Queuer' may have shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 | /// Queuer class.
 30 | public class Queuer {
    |              `- note: class 'Queuer' does not conform to the 'Sendable' protocol
 31 |     /// Shared Queuer.
 32 |     public static let shared = Queuer(name: "Queuer")
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Queuer' 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
 33 |
 34 |     /// Queuer `OperationQueue`.
Build complete! (24.73s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "Queuer",
  "name" : "Queuer",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "Queuer",
      "targets" : [
        "Queuer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "QueuerTests",
      "module_type" : "SwiftTarget",
      "name" : "QueuerTests",
      "path" : "Tests/QueuerTests",
      "sources" : [
        "ConcurrentOperationTests.swift",
        "GroupOperationTests.swift",
        "QueuerTests.swift",
        "SchedulerTests.swift",
        "SemaphoreTests.swift"
      ],
      "target_dependencies" : [
        "Queuer"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Queuer",
      "module_type" : "SwiftTarget",
      "name" : "Queuer",
      "path" : "Sources/Queuer",
      "product_memberships" : [
        "Queuer"
      ],
      "sources" : [
        "ConcurrentOperation.swift",
        "GroupOperation.swift",
        "Queuer.swift",
        "Scheduler.swift",
        "Semaphore.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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.