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 MockSix, reference v0.2.0 (248b1d), with Swift 6.1 for Linux on 25 Apr 2025 11:45:24 UTC.

Swift 6 data race errors: 6

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lvsti/MockSix.git
Reference: v0.2.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/lvsti/MockSix
 * tag               v0.2.0     -> FETCH_HEAD
HEAD is now at 248b1df Still fixing the build
Cloned https://github.com/lvsti/MockSix.git
Revision (git rev-parse @):
248b1df60240b6c68813a1b3e650b946cfcf4a84
SUCCESS checkout https://github.com/lvsti/MockSix.git at v0.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/lvsti/MockSix.git
https://github.com/lvsti/MockSix.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MockSix",
  "name" : "MockSix",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MockSix",
      "targets" : [
        "MockSix"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4.2"
  ],
  "targets" : [
    {
      "c99name" : "MockSix",
      "module_type" : "SwiftTarget",
      "name" : "MockSix",
      "path" : "Sources",
      "product_memberships" : [
        "MockSix"
      ],
      "sources" : [
        "MockSix/MockSix.swift",
        "MockSix/MockSixInternal.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/5] Emitting module MockSix
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:297:13: warning: var 'mockQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
295 |
296 |
297 | private var mockQueue: DispatchQueue = DispatchQueue(label: "MockSix")
    |             |- warning: var 'mockQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'mockQueue' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'mockQueue' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
298 | private var globalObjectIDIndex: Int32 = 0
299 | private var mockRecords: [String: [MockInvocation]] = [:]
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:298:13: warning: var 'globalObjectIDIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
296 |
297 | private var mockQueue: DispatchQueue = DispatchQueue(label: "MockSix")
298 | private var globalObjectIDIndex: Int32 = 0
    |             |- warning: var 'globalObjectIDIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'globalObjectIDIndex' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'globalObjectIDIndex' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
299 | private var mockRecords: [String: [MockInvocation]] = [:]
300 | private var mockBlocks: [String: [String: Any]] = [:]
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:299:13: warning: var 'mockRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
297 | private var mockQueue: DispatchQueue = DispatchQueue(label: "MockSix")
298 | private var globalObjectIDIndex: Int32 = 0
299 | private var mockRecords: [String: [MockInvocation]] = [:]
    |             |- warning: var 'mockRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'mockRecords' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'mockRecords' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
300 | private var mockBlocks: [String: [String: Any]] = [:]
301 |
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:300:13: warning: var 'mockBlocks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
298 | private var globalObjectIDIndex: Int32 = 0
299 | private var mockRecords: [String: [MockInvocation]] = [:]
300 | private var mockBlocks: [String: [String: Any]] = [:]
    |             |- warning: var 'mockBlocks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'mockBlocks' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'mockBlocks' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
301 |
302 |
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:310:16: warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
308 |
309 | struct FatalErrorUtil {
310 |     static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
    |                |- warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'fatalErrorClosure' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'fatalErrorClosure' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
311 |     private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
312 |     static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) { fatalErrorClosure = closure }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:311:24: warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
309 | struct FatalErrorUtil {
310 |     static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
311 |     private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
    |                        |- warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'defaultFatalErrorClosure' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
312 |     static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) { fatalErrorClosure = closure }
313 |     static func restoreFatalError() { fatalErrorClosure = defaultFatalErrorClosure }
[4/5] Compiling MockSix MockSixInternal.swift
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:297:13: warning: var 'mockQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
295 |
296 |
297 | private var mockQueue: DispatchQueue = DispatchQueue(label: "MockSix")
    |             |- warning: var 'mockQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'mockQueue' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'mockQueue' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
298 | private var globalObjectIDIndex: Int32 = 0
299 | private var mockRecords: [String: [MockInvocation]] = [:]
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:298:13: warning: var 'globalObjectIDIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
296 |
297 | private var mockQueue: DispatchQueue = DispatchQueue(label: "MockSix")
298 | private var globalObjectIDIndex: Int32 = 0
    |             |- warning: var 'globalObjectIDIndex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'globalObjectIDIndex' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'globalObjectIDIndex' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
299 | private var mockRecords: [String: [MockInvocation]] = [:]
300 | private var mockBlocks: [String: [String: Any]] = [:]
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:299:13: warning: var 'mockRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
297 | private var mockQueue: DispatchQueue = DispatchQueue(label: "MockSix")
298 | private var globalObjectIDIndex: Int32 = 0
299 | private var mockRecords: [String: [MockInvocation]] = [:]
    |             |- warning: var 'mockRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'mockRecords' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'mockRecords' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
300 | private var mockBlocks: [String: [String: Any]] = [:]
301 |
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:300:13: warning: var 'mockBlocks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
298 | private var globalObjectIDIndex: Int32 = 0
299 | private var mockRecords: [String: [MockInvocation]] = [:]
300 | private var mockBlocks: [String: [String: Any]] = [:]
    |             |- warning: var 'mockBlocks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'mockBlocks' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'mockBlocks' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
301 |
302 |
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:310:16: warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
308 |
309 | struct FatalErrorUtil {
310 |     static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
    |                |- warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'fatalErrorClosure' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'fatalErrorClosure' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
311 |     private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
312 |     static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) { fatalErrorClosure = closure }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MockSix/MockSixInternal.swift:311:24: warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
309 | struct FatalErrorUtil {
310 |     static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
311 |     private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
    |                        |- warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'defaultFatalErrorClosure' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
312 |     static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) { fatalErrorClosure = closure }
313 |     static func restoreFatalError() { fatalErrorClosure = defaultFatalErrorClosure }
[5/5] Compiling MockSix MockSix.swift
Build complete! (3.19s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MockSix",
  "name" : "MockSix",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MockSix",
      "targets" : [
        "MockSix"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4.2"
  ],
  "targets" : [
    {
      "c99name" : "MockSix",
      "module_type" : "SwiftTarget",
      "name" : "MockSix",
      "path" : "Sources",
      "product_memberships" : [
        "MockSix"
      ],
      "sources" : [
        "MockSix/MockSix.swift",
        "MockSix/MockSixInternal.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.