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 DependencyInjection, reference 2.0.2 (8e6599), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 13:02:35 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sebastianpixel/dependencyinjection.git
Reference: 2.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sebastianpixel/dependencyinjection
 * tag               2.0.2      -> FETCH_HEAD
HEAD is now at 8e65999 bump podspec version
Cloned https://github.com/sebastianpixel/dependencyinjection.git
Revision (git rev-parse @):
8e65999330f2cead7b0aa246792a14180c50c413
SUCCESS checkout https://github.com/sebastianpixel/dependencyinjection.git at 2.0.2
Fetching https://github.com/realm/SwiftLint
[1/141188] Fetching swiftlint
Fetched https://github.com/realm/SwiftLint from cache (275.50s)
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/drmohundro/SWXMLHash.git
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/jpsim/SourceKitten.git
Fetching https://github.com/scottrhoyt/SwiftyTextTable.git
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Carthage/Commandant.git
[1/929] Fetching swiftytexttable
[11/3749] Fetching swiftytexttable, swxmlhash
[124/6072] Fetching swiftytexttable, swxmlhash, commandant
[1694/15974] Fetching swiftytexttable, swxmlhash, commandant, yams
[3947/31990] Fetching swiftytexttable, swxmlhash, commandant, yams, sourcekitten
[3948/46713] Fetching swiftytexttable, swxmlhash, commandant, yams, sourcekitten, quick
Fetched https://github.com/scottrhoyt/SwiftyTextTable.git from cache (1.01s)
[5677/45784] Fetching swxmlhash, commandant, yams, sourcekitten, quick
[18191/65002] Fetching swxmlhash, commandant, yams, sourcekitten, quick, nimble
Fetched https://github.com/Quick/Quick.git from cache (2.06s)
Fetched https://github.com/Carthage/Commandant.git from cache (2.06s)
Fetched https://github.com/jpsim/SourceKitten.git from cache (2.06s)
[20986/31940] Fetching swxmlhash, yams, nimble
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (6.06s)
Fetched https://github.com/Quick/Nimble.git from cache (6.06s)
Fetched https://github.com/jpsim/Yams.git from cache (6.06s)
Computing version for https://github.com/scottrhoyt/SwiftyTextTable.git
Computed https://github.com/scottrhoyt/SwiftyTextTable.git at 0.9.0 (2.69s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 2.0.0 (0.70s)
Computing version for https://github.com/jpsim/SourceKitten.git
Computed https://github.com/jpsim/SourceKitten.git at 0.29.0 (0.69s)
Computing version for https://github.com/Carthage/Commandant.git
Computed https://github.com/Carthage/Commandant.git at 0.17.0 (0.75s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 5.0.1 (0.79s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.1 (0.78s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.1 (0.80s)
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.1
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 5.0.1
Creating working copy for https://github.com/jpsim/SourceKitten.git
Working copy of https://github.com/jpsim/SourceKitten.git resolved at 0.29.0
Creating working copy for https://github.com/scottrhoyt/SwiftyTextTable.git
Working copy of https://github.com/scottrhoyt/SwiftyTextTable.git resolved at 0.9.0
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.1
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 2.0.0
Creating working copy for https://github.com/realm/SwiftLint
Working copy of https://github.com/realm/SwiftLint resolved at master (9e5557f)
Creating working copy for https://github.com/Carthage/Commandant.git
Working copy of https://github.com/Carthage/Commandant.git resolved at 0.17.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "dependencyinjection",
      "name": "DependencyInjection",
      "url": "https://github.com/sebastianpixel/dependencyinjection.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/dependencyinjection",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/sebastianpixel/dependencyinjection.git
[1/302] Fetching dependencyinjection
Fetched https://github.com/sebastianpixel/dependencyinjection.git from cache (0.79s)
Creating working copy for https://github.com/sebastianpixel/dependencyinjection.git
Working copy of https://github.com/sebastianpixel/dependencyinjection.git resolved at 2.0.2 (8e65999)
warning: '.resolve-product-dependencies': dependency 'dependencyinjection' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/sebastianpixel/dependencyinjection.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/17] Compiling DependencyInjection New.swift
[4/17] Compiling DependencyInjection Shared.swift
[5/18] Compiling DependencyInjection Resolver.swift
[6/18] Compiling DependencyInjection Registration.swift
[7/18] Compiling DependencyInjection Registrar.swift
[8/18] Emitting module DependencyInjection
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjection/FunctionBuilders/ModuleBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
  |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct ModuleBuilder {
3 |     public static func buildBlock(_ modules: Module...) -> [Module] {
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjection/FunctionBuilders/RegistrationBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
  |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct RegistrationBuilder {
3 |     public static func buildBlock(_ registrations: Registration...) -> [Registration] {
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjection/DIContainer.swift:7:16: 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
  5 |     public static var resolve: Resolver { shared }
  6 |
  7 |     static var shared = DIContainer()
    |                |- 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
  8 |
  9 |     private let queue = ReentrantSyncQueue(label: "dependency_injection")
[9/18] Compiling DependencyInjection Module.swift
[10/18] Compiling DependencyInjection Inject.swift
[11/18] Compiling DependencyInjection MutableLazyInject.swift
[12/18] Compiling DependencyInjection ReentrantSyncQueue.swift
[13/18] Compiling DependencyInjection LazyInject.swift
[14/18] Compiling DependencyInjection MutableInject.swift
[15/18] Compiling DependencyInjection ModuleBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjection/FunctionBuilders/ModuleBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
  |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct ModuleBuilder {
3 |     public static func buildBlock(_ modules: Module...) -> [Module] {
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjection/FunctionBuilders/RegistrationBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
  |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct RegistrationBuilder {
3 |     public static func buildBlock(_ registrations: Registration...) -> [Registration] {
[16/18] Compiling DependencyInjection RegistrationBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjection/FunctionBuilders/ModuleBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
  |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct ModuleBuilder {
3 |     public static func buildBlock(_ modules: Module...) -> [Module] {
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjection/FunctionBuilders/RegistrationBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
  |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct RegistrationBuilder {
3 |     public static func buildBlock(_ registrations: Registration...) -> [Registration] {
[17/18] Compiling DependencyInjection DIContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjection/DIContainer.swift:7:16: 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
  5 |     public static var resolve: Resolver { shared }
  6 |
  7 |     static var shared = DIContainer()
    |                |- 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
  8 |
  9 |     private let queue = ReentrantSyncQueue(label: "dependency_injection")
[18/18] Compiling DependencyInjection DependencyRegistering.swift
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjection/DIContainer.swift:7:16: 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
  5 |     public static var resolve: Resolver { shared }
  6 |
  7 |     static var shared = DIContainer()
    |                |- 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
  8 |
  9 |     private let queue = ReentrantSyncQueue(label: "dependency_injection")
Build complete! (14.00s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftlint",
      "requirement" : {
        "branch" : [
          "master"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/realm/SwiftLint"
    }
  ],
  "manifest_display_name" : "DependencyInjection",
  "name" : "DependencyInjection",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DependencyInjection",
      "targets" : [
        "DependencyInjection"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DependencyInjectionTests",
      "module_type" : "SwiftTarget",
      "name" : "DependencyInjectionTests",
      "path" : "Tests/DependencyInjectionTests",
      "sources" : [
        "DependencyInjectionTests.swift",
        "MockTypes.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "DependencyInjection"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DependencyInjection",
      "module_type" : "SwiftTarget",
      "name" : "DependencyInjection",
      "path" : "Sources/DependencyInjection",
      "product_memberships" : [
        "DependencyInjection"
      ],
      "sources" : [
        "DIContainer.swift",
        "DependencyRegistering.swift",
        "FunctionBuilders/ModuleBuilder.swift",
        "FunctionBuilders/RegistrationBuilder.swift",
        "Module.swift",
        "PropertyWrappers/Inject.swift",
        "PropertyWrappers/LazyInject.swift",
        "PropertyWrappers/MutableInject.swift",
        "PropertyWrappers/MutableLazyInject.swift",
        "ReentrantSyncQueue.swift",
        "Registrar.swift",
        "Registration.swift",
        "Registrations/New.swift",
        "Registrations/Shared.swift",
        "Resolver.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.