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 QuickServiceLocator, reference main (00c665), with Swift 6.0 for Linux on 7 Apr 2025 18:21:46 UTC.

Swift 6 data race errors: 2

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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/frankois944/QuickServiceLocator.git
Reference: main
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/frankois944/QuickServiceLocator
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 00c6652 Merge pull request #1 from jordanekay/main
Cloned https://github.com/frankois944/QuickServiceLocator.git
Revision (git rev-parse @):
00c665230fe31f0e1b092e4c8bf05b026a70c2db
SUCCESS checkout https://github.com/frankois944/QuickServiceLocator.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/frankois944/QuickServiceLocator.git
https://github.com/frankois944/QuickServiceLocator.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "QuickServiceLocator",
  "name" : "QuickServiceLocator",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "QuickServiceLocator",
      "targets" : [
        "QuickServiceLocator"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "QuickServiceLocatorTests",
      "module_type" : "SwiftTarget",
      "name" : "QuickServiceLocatorTests",
      "path" : "Tests/QuickServiceLocatorTests",
      "sources" : [
        "QuickSLTest.swift"
      ],
      "target_dependencies" : [
        "QuickServiceLocator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "QuickServiceLocator",
      "module_type" : "SwiftTarget",
      "name" : "QuickServiceLocator",
      "path" : "Sources/QuickServiceLocator",
      "product_memberships" : [
        "QuickServiceLocator"
      ],
      "sources" : [
        "QuickSL.swift",
        "QuickServiceLocator.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
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:9029076bb687edc160a3d5201c89e92dd9fa7309f33f090c4234365c83366c31
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/5] Emitting module QuickServiceLocator
/host/spi-builder-workspace/Sources/QuickServiceLocator/QuickServiceLocator.swift:23:24: warning: static property 'factories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 21 |     // MARK: - Properties
 22 |
 23 |     private static var factories: [ObjectIdentifier: (LocatingMode, () -> Any)] = [:]
    |                        |- warning: static property 'factories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'factories' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'factories' 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
 24 |     private static var sharedInstances: [ObjectIdentifier: Any] = [:]
 25 |
/host/spi-builder-workspace/Sources/QuickServiceLocator/QuickServiceLocator.swift:24:24: warning: static property 'sharedInstances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 22 |
 23 |     private static var factories: [ObjectIdentifier: (LocatingMode, () -> Any)] = [:]
 24 |     private static var sharedInstances: [ObjectIdentifier: Any] = [:]
    |                        |- warning: static property 'sharedInstances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'sharedInstances' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'sharedInstances' 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 |     // MARK: - Register
[4/5] Compiling QuickServiceLocator QuickServiceLocator.swift
/host/spi-builder-workspace/Sources/QuickServiceLocator/QuickServiceLocator.swift:23:24: warning: static property 'factories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 21 |     // MARK: - Properties
 22 |
 23 |     private static var factories: [ObjectIdentifier: (LocatingMode, () -> Any)] = [:]
    |                        |- warning: static property 'factories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'factories' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'factories' 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
 24 |     private static var sharedInstances: [ObjectIdentifier: Any] = [:]
 25 |
/host/spi-builder-workspace/Sources/QuickServiceLocator/QuickServiceLocator.swift:24:24: warning: static property 'sharedInstances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 22 |
 23 |     private static var factories: [ObjectIdentifier: (LocatingMode, () -> Any)] = [:]
 24 |     private static var sharedInstances: [ObjectIdentifier: Any] = [:]
    |                        |- warning: static property 'sharedInstances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'sharedInstances' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'sharedInstances' 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 |     // MARK: - Register
[5/5] Compiling QuickServiceLocator QuickSL.swift
Build complete! (9.51s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "QuickServiceLocator",
  "name" : "QuickServiceLocator",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "QuickServiceLocator",
      "targets" : [
        "QuickServiceLocator"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "QuickServiceLocatorTests",
      "module_type" : "SwiftTarget",
      "name" : "QuickServiceLocatorTests",
      "path" : "Tests/QuickServiceLocatorTests",
      "sources" : [
        "QuickSLTest.swift"
      ],
      "target_dependencies" : [
        "QuickServiceLocator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "QuickServiceLocator",
      "module_type" : "SwiftTarget",
      "name" : "QuickServiceLocator",
      "path" : "Sources/QuickServiceLocator",
      "product_memberships" : [
        "QuickServiceLocator"
      ],
      "sources" : [
        "QuickSL.swift",
        "QuickServiceLocator.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9029076bb687edc160a3d5201c89e92dd9fa7309f33f090c4234365c83366c31
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.