This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 Injector with Swift 6.0 (beta) for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ptrkstr/Injector.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ptrkstr/Injector
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at f09985d Simplify tests
Cloned https://github.com/ptrkstr/Injector.git
Revision (git rev-parse @):
f09985d1d4eed1d2f054db15fe55999cf2ec378d
SUCCESS checkout https://github.com/ptrkstr/Injector.git at develop
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/ptrkstr/Injector.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/5] Emitting module Factory
[5/5] Compiling Factory Factory.swift
[6/7] Emitting module Injector
/Users/admin/builder/spi-builder-workspace/Sources/Injector/Injector.swift:32:16: warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 | private extension Container.Scope {
 32 |     static let cache = Cached()
    |                `- warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | }
 34 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory.swift:241:24: note: class 'Cached' does not conform to the 'Sendable' protocol
239 |     /// Defines a cached scope. The same instance will be returned by the factory until the cache is reset.
240 |     public static let cached = Cached()
241 |     public final class Cached: SharedContainer.Scope {
    |                        `- note: class 'Cached' does not conform to the 'Sendable' protocol
242 |         public override init() {
243 |             super.init()
/Users/admin/builder/spi-builder-workspace/Sources/Injector/Injector.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
  1 | import Foundation
  2 | import Factory
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
  3 |
  4 | public enum InjectorEnvironment {
    :
 30 |
 31 | private extension Container.Scope {
 32 |     static let cache = Cached()
    |                |- note: annotate 'cache' 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 |
[7/7] Compiling Injector Injector.swift
/Users/admin/builder/spi-builder-workspace/Sources/Injector/Injector.swift:32:16: warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 | private extension Container.Scope {
 32 |     static let cache = Cached()
    |                `- warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | }
 34 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory.swift:241:24: note: class 'Cached' does not conform to the 'Sendable' protocol
239 |     /// Defines a cached scope. The same instance will be returned by the factory until the cache is reset.
240 |     public static let cached = Cached()
241 |     public final class Cached: SharedContainer.Scope {
    |                        `- note: class 'Cached' does not conform to the 'Sendable' protocol
242 |         public override init() {
243 |             super.init()
/Users/admin/builder/spi-builder-workspace/Sources/Injector/Injector.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
  1 | import Foundation
  2 | import Factory
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
  3 |
  4 | public enum InjectorEnvironment {
    :
 30 |
 31 | private extension Container.Scope {
 32 |     static let cache = Cached()
    |                |- note: annotate 'cache' 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 |
Build complete! (27.17s)
Fetching https://github.com/hmlongco/Factory.git
[1/12544] Fetching factory
Fetched https://github.com/hmlongco/Factory.git from cache (8.69s)
Computing version for https://github.com/hmlongco/Factory.git
Computed https://github.com/hmlongco/Factory.git at 1.3.7 (0.69s)
Creating working copy for https://github.com/hmlongco/Factory.git
Working copy of https://github.com/hmlongco/Factory.git resolved at 1.3.7
Build complete.
{
  "dependencies" : [
    {
      "identity" : "factory",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/hmlongco/Factory.git"
    }
  ],
  "manifest_display_name" : "Injector",
  "name" : "Injector",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Injector",
      "targets" : [
        "Injector"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InjectorTests",
      "module_type" : "SwiftTarget",
      "name" : "InjectorTests",
      "path" : "Tests/InjectorTests",
      "sources" : [
        "InjectorTests.swift"
      ],
      "target_dependencies" : [
        "Injector"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Injector",
      "module_type" : "SwiftTarget",
      "name" : "Injector",
      "path" : "Sources/Injector",
      "product_dependencies" : [
        "Factory"
      ],
      "product_memberships" : [
        "Injector"
      ],
      "sources" : [
        "Injector.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.