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 CodeQuickKit, reference 7.0.0 (8b1e51), with Swift 6.0 for Linux on 2 Nov 2024 19:31:49 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/richardpiazza/CodeQuickKit.git
Reference: 7.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/richardpiazza/CodeQuickKit
 * tag               7.0.0      -> FETCH_HEAD
HEAD is now at 8b1e515 Drop Deprecations (#8)
Cloned https://github.com/richardpiazza/CodeQuickKit.git
Revision (git rev-parse @):
8b1e5150daea43625dec1deff195bb254f2ecba4
SUCCESS checkout https://github.com/richardpiazza/CodeQuickKit.git at 7.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/richardpiazza/CodeQuickKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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: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/27] Emitting module CodeQuickKit
/host/spi-builder-workspace/Sources/CodeQuickKit/Swift/DependencyCache.swift:24:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static var shared: DependencyCache = .init()
   |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
25 |
26 |     /// Dependencies maintained by the cache
[4/30] Compiling CodeQuickKit DependencySupplier.swift
[5/30] Compiling CodeQuickKit Sequence+KeyPath.swift
[6/30] Compiling CodeQuickKit Sequence+SplitBefore.swift
[7/30] Compiling CodeQuickKit UIAlertController.swift
[8/30] Compiling CodeQuickKit UIPickerView.swift
[9/30] Compiling CodeQuickKit UIViewController.swift
[10/30] Compiling CodeQuickKit NSMutableAttributedString.swift
[11/30] Compiling CodeQuickKit Reusable.swift
[12/30] Compiling CodeQuickKit UIAlertController+ActivityAlert.swift
[13/30] Compiling CodeQuickKit FileManager.swift
/host/spi-builder-workspace/Sources/CodeQuickKit/Foundation/PausableTimer.swift:103:13: warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 10 | ///
 11 | /// Has options for delegate callbacks of status or a expiry completion handler.
 12 | open class PausableTimer {
    |            `- note: class 'PausableTimer' does not conform to the 'Sendable' protocol
 13 |     fileprivate let maxPercentComplete: Double = 1.0
 14 |     fileprivate var completedIntervals: TimeInterval = 0.0
    :
101 |
102 |         DispatchQueue.global(qos: .utility).asyncAfter(deadline: .now() + Double(delegateRefreshRate)) {
103 |             self.update()
    |             `- warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |         }
105 |     }
[14/30] Compiling CodeQuickKit NSMetadataQuery.swift
/host/spi-builder-workspace/Sources/CodeQuickKit/Foundation/PausableTimer.swift:103:13: warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 10 | ///
 11 | /// Has options for delegate callbacks of status or a expiry completion handler.
 12 | open class PausableTimer {
    |            `- note: class 'PausableTimer' does not conform to the 'Sendable' protocol
 13 |     fileprivate let maxPercentComplete: Double = 1.0
 14 |     fileprivate var completedIntervals: TimeInterval = 0.0
    :
101 |
102 |         DispatchQueue.global(qos: .utility).asyncAfter(deadline: .now() + Double(delegateRefreshRate)) {
103 |             self.update()
    |             `- warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |         }
105 |     }
[15/30] Compiling CodeQuickKit NumberFormatter.swift
/host/spi-builder-workspace/Sources/CodeQuickKit/Foundation/PausableTimer.swift:103:13: warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 10 | ///
 11 | /// Has options for delegate callbacks of status or a expiry completion handler.
 12 | open class PausableTimer {
    |            `- note: class 'PausableTimer' does not conform to the 'Sendable' protocol
 13 |     fileprivate let maxPercentComplete: Double = 1.0
 14 |     fileprivate var completedIntervals: TimeInterval = 0.0
    :
101 |
102 |         DispatchQueue.global(qos: .utility).asyncAfter(deadline: .now() + Double(delegateRefreshRate)) {
103 |             self.update()
    |             `- warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |         }
105 |     }
[16/30] Compiling CodeQuickKit PausableTimer.swift
/host/spi-builder-workspace/Sources/CodeQuickKit/Foundation/PausableTimer.swift:103:13: warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 10 | ///
 11 | /// Has options for delegate callbacks of status or a expiry completion handler.
 12 | open class PausableTimer {
    |            `- note: class 'PausableTimer' does not conform to the 'Sendable' protocol
 13 |     fileprivate let maxPercentComplete: Double = 1.0
 14 |     fileprivate var completedIntervals: TimeInterval = 0.0
    :
101 |
102 |         DispatchQueue.global(qos: .utility).asyncAfter(deadline: .now() + Double(delegateRefreshRate)) {
103 |             self.update()
    |             `- warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |         }
105 |     }
[17/30] Compiling CodeQuickKit ActivityAlertView.swift
[18/30] Compiling CodeQuickKit Bundle+Storyboards.swift
[19/30] Compiling CodeQuickKit HUD.swift
[20/30] Compiling CodeQuickKit UserDefaults.swift
/host/spi-builder-workspace/Sources/CodeQuickKit/Swift/DependencyCache.swift:24:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static var shared: DependencyCache = .init()
   |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
25 |
26 |     /// Dependencies maintained by the cache
[21/30] Compiling CodeQuickKit Dependency.swift
/host/spi-builder-workspace/Sources/CodeQuickKit/Swift/DependencyCache.swift:24:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static var shared: DependencyCache = .init()
   |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
25 |
26 |     /// Dependencies maintained by the cache
[22/30] Compiling CodeQuickKit DependencyCache.swift
/host/spi-builder-workspace/Sources/CodeQuickKit/Swift/DependencyCache.swift:24:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static var shared: DependencyCache = .init()
   |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
25 |
26 |     /// Dependencies maintained by the cache
[23/30] Compiling CodeQuickKit Bundle+CommonKeys.swift
[24/30] Compiling CodeQuickKit Bundle+DecodableResources.swift
[25/30] Compiling CodeQuickKit Character+Casing.swift
[26/30] Compiling CodeQuickKit Date+Semantic.swift
[27/30] Compiling CodeQuickKit String+Casing.swift
[28/30] Compiling CodeQuickKit StringProtocol+Replacement.swift
[29/30] Compiling CodeQuickKit Ubiquity.swift
[30/30] Compiling CodeQuickKit UserDefault.swift
Build complete! (11.61s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CodeQuickKit",
  "name" : "CodeQuickKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "CodeQuickKit",
      "targets" : [
        "CodeQuickKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "CodeQuickKitTests",
      "module_type" : "SwiftTarget",
      "name" : "CodeQuickKitTests",
      "path" : "Tests/CodeQuickKitTests",
      "sources" : [
        "Foundation/BundleTests.swift",
        "Foundation/DateTests.swift",
        "Foundation/NumberFormatterTests.swift",
        "Foundation/PausableTimerTests.swift",
        "Foundation/UserDefaultTests.swift",
        "Swift/DependencyTests.swift"
      ],
      "target_dependencies" : [
        "CodeQuickKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CodeQuickKit",
      "module_type" : "SwiftTarget",
      "name" : "CodeQuickKit",
      "path" : "Sources/CodeQuickKit",
      "product_memberships" : [
        "CodeQuickKit"
      ],
      "sources" : [
        "Foundation/Bundle+CommonKeys.swift",
        "Foundation/Bundle+DecodableResources.swift",
        "Foundation/Character+Casing.swift",
        "Foundation/Date+Semantic.swift",
        "Foundation/FileManager.swift",
        "Foundation/NSMetadataQuery.swift",
        "Foundation/NumberFormatter.swift",
        "Foundation/PausableTimer.swift",
        "Foundation/String+Casing.swift",
        "Foundation/StringProtocol+Replacement.swift",
        "Foundation/Ubiquity.swift",
        "Foundation/UserDefault.swift",
        "Foundation/UserDefaults.swift",
        "Swift/Dependency.swift",
        "Swift/DependencyCache.swift",
        "Swift/DependencySupplier.swift",
        "Swift/Sequence+KeyPath.swift",
        "Swift/Sequence+SplitBefore.swift",
        "SwiftUI/ActivityAlertView.swift",
        "UIKit/Bundle+Storyboards.swift",
        "UIKit/HUD.swift",
        "UIKit/NSMutableAttributedString.swift",
        "UIKit/Reusable.swift",
        "UIKit/UIAlertController+ActivityAlert.swift",
        "UIKit/UIAlertController.swift",
        "UIKit/UIPickerView.swift",
        "UIKit/UIViewController.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.