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, reference develop (f09985), with Swift 6.1 for Linux on 28 Apr 2025 00:42:20 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/ptrkstr/Injector.git
Reference: develop
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/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:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ptrkstr/Injector.git
https://github.com/ptrkstr/Injector.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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" : "/host/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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
Fetching https://github.com/hmlongco/Factory.git
[1/14486] Fetching factory
Fetched https://github.com/hmlongco/Factory.git from cache (0.65s)
Computing version for https://github.com/hmlongco/Factory.git
Computed https://github.com/hmlongco/Factory.git at 1.3.7 (1.23s)
Creating working copy for https://github.com/hmlongco/Factory.git
Working copy of https://github.com/hmlongco/Factory.git resolved at 1.3.7
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Compiling Factory Factory.swift
[5/5] Emitting module Factory
[7/8] Emitting module Injector
/host/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 |
/host/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()
/host/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: add '@MainActor' to make static property 'cache' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 | }
 34 |
[8/8] Compiling Injector Injector.swift
/host/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 |
/host/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()
/host/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: add '@MainActor' to make static property 'cache' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 | }
 34 |
Build complete! (10.17s)
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" : "/host/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"
}
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.