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 EasyInject, reference 1.4.0 (721920), with Swift 6.0 for Linux on 1 Nov 2024 08:30:41 UTC.

Swift 6 data race errors: 5

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vknabel/EasyInject.git
Reference: 1.4.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/vknabel/EasyInject
 * tag               1.4.0      -> FETCH_HEAD
HEAD is now at 7219204 Upgraded to Swift 5-Package-Syntax
Cloned https://github.com/vknabel/EasyInject.git
Revision (git rev-parse @):
7219204554c55d805b0e91cdb3b5b6cd713f31b5
SUCCESS checkout https://github.com/vknabel/EasyInject.git at 1.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/vknabel/EasyInject.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
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/13] Compiling EasyInject LazyInjector.swift
[4/13] Compiling EasyInject Extensions.swift
[5/13] Compiling EasyInject GenericProvidableKey.swift
[6/14] Compiling EasyInject GlobalInjector.swift
[7/14] Compiling EasyInject LazilyInjectedProvider.swift
[8/14] Compiling EasyInject StrictInjector.swift
[9/14] Emitting module EasyInject
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:129:8: warning: associated value 'keyNotProvided' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
125 |
126 | /// Errors, that may occur while resolving from a `Provider`.
127 | public enum InjectionError<Key: ProvidableKey>: Error, Equatable {
    |                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
128 |   /// There has been no value provided with the `ProvidableKey`.
129 |   case keyNotProvided(Key)
    |        `- warning: associated value 'keyNotProvided' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
130 |
131 |   /// The given `Provider`'s `Value`-type did not match with the stored one.
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:134:8: warning: associated value 'nonMatchingType(provided:expected:)' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
132 |   /// - Note: When issue arised, you probably have defined two different `Provider`s
133 |   /// using the same `key`, but a different `Value`-Type.
134 |   case nonMatchingType(provided: Any, expected: Providable.Type)
    |        `- warning: associated value 'nonMatchingType(provided:expected:)' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
135 |
136 |   /// Any specific Error that may occur in your custom implementations.
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:141:8: warning: associated value 'cyclicDependency' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
125 |
126 | /// Errors, that may occur while resolving from a `Provider`.
127 | public enum InjectionError<Key: ProvidableKey>: Error, Equatable {
    |                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
128 |   /// There has been no value provided with the `ProvidableKey`.
129 |   case keyNotProvided(Key)
    :
139 |
140 |   /// Will be thrown if the dependency graph is recursive.
141 |   case cyclicDependency(Key)
    |        `- warning: associated value 'cyclicDependency' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
142 |
143 |   /// Tests for equality.
/host/spi-builder-workspace/Sources/EasyInject/CoreExtensions.swift:104:29: warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
102 |   /// - Returns: A new `Provider` with a `String` as `ProvidableKey`,
103 |   /// containing type information and the caller's `function`.
104 |   public static func derive<V: Providable, K: ProvidableKey & ExpressibleByStringLiteral>(
    |                             `- warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
105 |     function: String = #function
106 |   ) -> Provider<K, V> where K.StringLiteralType == String {
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:8:42: note: 'V' previously declared here
  6 |
  7 | /// Adds type information to a `ProvidableKey`.
  8 | public struct Provider<K: ProvidableKey, V: Providable>: CustomDebugStringConvertible {
    |                                          `- note: 'V' previously declared here
  9 |   /// Type of `Providable`s that will be associated with `Provider.key`.
 10 |   public typealias Value = V
/host/spi-builder-workspace/Sources/EasyInject/CoreExtensions.swift:104:44: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
102 |   /// - Returns: A new `Provider` with a `String` as `ProvidableKey`,
103 |   /// containing type information and the caller's `function`.
104 |   public static func derive<V: Providable, K: ProvidableKey & ExpressibleByStringLiteral>(
    |                                            `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
105 |     function: String = #function
106 |   ) -> Provider<K, V> where K.StringLiteralType == String {
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:8:24: note: 'K' previously declared here
  6 |
  7 | /// Adds type information to a `ProvidableKey`.
  8 | public struct Provider<K: ProvidableKey, V: Providable>: CustomDebugStringConvertible {
    |                        `- note: 'K' previously declared here
  9 |   /// Type of `Providable`s that will be associated with `Provider.key`.
 10 |   public typealias Value = V
[10/14] Compiling EasyInject AnyInjector.swift
[11/14] Compiling EasyInject ComposedInjector.swift
[12/14] Compiling EasyInject Core.swift
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:129:8: warning: associated value 'keyNotProvided' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
125 |
126 | /// Errors, that may occur while resolving from a `Provider`.
127 | public enum InjectionError<Key: ProvidableKey>: Error, Equatable {
    |                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
128 |   /// There has been no value provided with the `ProvidableKey`.
129 |   case keyNotProvided(Key)
    |        `- warning: associated value 'keyNotProvided' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
130 |
131 |   /// The given `Provider`'s `Value`-type did not match with the stored one.
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:134:8: warning: associated value 'nonMatchingType(provided:expected:)' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
132 |   /// - Note: When issue arised, you probably have defined two different `Provider`s
133 |   /// using the same `key`, but a different `Value`-Type.
134 |   case nonMatchingType(provided: Any, expected: Providable.Type)
    |        `- warning: associated value 'nonMatchingType(provided:expected:)' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
135 |
136 |   /// Any specific Error that may occur in your custom implementations.
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:141:8: warning: associated value 'cyclicDependency' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
125 |
126 | /// Errors, that may occur while resolving from a `Provider`.
127 | public enum InjectionError<Key: ProvidableKey>: Error, Equatable {
    |                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
128 |   /// There has been no value provided with the `ProvidableKey`.
129 |   case keyNotProvided(Key)
    :
139 |
140 |   /// Will be thrown if the dependency graph is recursive.
141 |   case cyclicDependency(Key)
    |        `- warning: associated value 'cyclicDependency' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
142 |
143 |   /// Tests for equality.
/host/spi-builder-workspace/Sources/EasyInject/CoreExtensions.swift:104:29: warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
102 |   /// - Returns: A new `Provider` with a `String` as `ProvidableKey`,
103 |   /// containing type information and the caller's `function`.
104 |   public static func derive<V: Providable, K: ProvidableKey & ExpressibleByStringLiteral>(
    |                             `- warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
105 |     function: String = #function
106 |   ) -> Provider<K, V> where K.StringLiteralType == String {
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:8:42: note: 'V' previously declared here
  6 |
  7 | /// Adds type information to a `ProvidableKey`.
  8 | public struct Provider<K: ProvidableKey, V: Providable>: CustomDebugStringConvertible {
    |                                          `- note: 'V' previously declared here
  9 |   /// Type of `Providable`s that will be associated with `Provider.key`.
 10 |   public typealias Value = V
/host/spi-builder-workspace/Sources/EasyInject/CoreExtensions.swift:104:44: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
102 |   /// - Returns: A new `Provider` with a `String` as `ProvidableKey`,
103 |   /// containing type information and the caller's `function`.
104 |   public static func derive<V: Providable, K: ProvidableKey & ExpressibleByStringLiteral>(
    |                                            `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
105 |     function: String = #function
106 |   ) -> Provider<K, V> where K.StringLiteralType == String {
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:8:24: note: 'K' previously declared here
  6 |
  7 | /// Adds type information to a `ProvidableKey`.
  8 | public struct Provider<K: ProvidableKey, V: Providable>: CustomDebugStringConvertible {
    |                        `- note: 'K' previously declared here
  9 |   /// Type of `Providable`s that will be associated with `Provider.key`.
 10 |   public typealias Value = V
[13/14] Compiling EasyInject CoreExtensions.swift
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:129:8: warning: associated value 'keyNotProvided' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
125 |
126 | /// Errors, that may occur while resolving from a `Provider`.
127 | public enum InjectionError<Key: ProvidableKey>: Error, Equatable {
    |                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
128 |   /// There has been no value provided with the `ProvidableKey`.
129 |   case keyNotProvided(Key)
    |        `- warning: associated value 'keyNotProvided' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
130 |
131 |   /// The given `Provider`'s `Value`-type did not match with the stored one.
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:134:8: warning: associated value 'nonMatchingType(provided:expected:)' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
132 |   /// - Note: When issue arised, you probably have defined two different `Provider`s
133 |   /// using the same `key`, but a different `Value`-Type.
134 |   case nonMatchingType(provided: Any, expected: Providable.Type)
    |        `- warning: associated value 'nonMatchingType(provided:expected:)' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
135 |
136 |   /// Any specific Error that may occur in your custom implementations.
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:141:8: warning: associated value 'cyclicDependency' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
125 |
126 | /// Errors, that may occur while resolving from a `Provider`.
127 | public enum InjectionError<Key: ProvidableKey>: Error, Equatable {
    |                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
128 |   /// There has been no value provided with the `ProvidableKey`.
129 |   case keyNotProvided(Key)
    :
139 |
140 |   /// Will be thrown if the dependency graph is recursive.
141 |   case cyclicDependency(Key)
    |        `- warning: associated value 'cyclicDependency' of 'Sendable'-conforming generic enum 'InjectionError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
142 |
143 |   /// Tests for equality.
/host/spi-builder-workspace/Sources/EasyInject/CoreExtensions.swift:104:29: warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
102 |   /// - Returns: A new `Provider` with a `String` as `ProvidableKey`,
103 |   /// containing type information and the caller's `function`.
104 |   public static func derive<V: Providable, K: ProvidableKey & ExpressibleByStringLiteral>(
    |                             `- warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
105 |     function: String = #function
106 |   ) -> Provider<K, V> where K.StringLiteralType == String {
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:8:42: note: 'V' previously declared here
  6 |
  7 | /// Adds type information to a `ProvidableKey`.
  8 | public struct Provider<K: ProvidableKey, V: Providable>: CustomDebugStringConvertible {
    |                                          `- note: 'V' previously declared here
  9 |   /// Type of `Providable`s that will be associated with `Provider.key`.
 10 |   public typealias Value = V
/host/spi-builder-workspace/Sources/EasyInject/CoreExtensions.swift:104:44: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
102 |   /// - Returns: A new `Provider` with a `String` as `ProvidableKey`,
103 |   /// containing type information and the caller's `function`.
104 |   public static func derive<V: Providable, K: ProvidableKey & ExpressibleByStringLiteral>(
    |                                            `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
105 |     function: String = #function
106 |   ) -> Provider<K, V> where K.StringLiteralType == String {
/host/spi-builder-workspace/Sources/EasyInject/Core.swift:8:24: note: 'K' previously declared here
  6 |
  7 | /// Adds type information to a `ProvidableKey`.
  8 | public struct Provider<K: ProvidableKey, V: Providable>: CustomDebugStringConvertible {
    |                        `- note: 'K' previously declared here
  9 |   /// Type of `Providable`s that will be associated with `Provider.key`.
 10 |   public typealias Value = V
[14/14] Compiling EasyInject StrictlyInjectedProvider.swift
Build complete! (10.50s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EasyInject",
  "name" : "EasyInject",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "EasyInject",
      "targets" : [
        "EasyInject"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EasyInjectTests",
      "module_type" : "SwiftTarget",
      "name" : "EasyInjectTests",
      "path" : "Tests/EasyInjectTests",
      "sources" : [
        "AnyInjectorTests.swift",
        "AnyMutableInjectorTests.swift",
        "ComposedInjectorTests.swift",
        "EasyInjectTests.swift",
        "GenericProvidableKeyTests.swift",
        "GlobalInjectorTests.swift",
        "InjectionErrorTests.swift",
        "InjectorTestCase.swift",
        "LazyInjectorTests.swift",
        "MutableInjectorTestCase.swift",
        "StrictInjectorTests.swift"
      ],
      "target_dependencies" : [
        "EasyInject"
      ],
      "type" : "test"
    },
    {
      "c99name" : "EasyInject",
      "module_type" : "SwiftTarget",
      "name" : "EasyInject",
      "path" : "Sources/EasyInject",
      "product_memberships" : [
        "EasyInject"
      ],
      "sources" : [
        "AnyInjector.swift",
        "ComposedInjector.swift",
        "Core.swift",
        "CoreExtensions.swift",
        "Extensions.swift",
        "GenericProvidableKey.swift",
        "GlobalInjector.swift",
        "LazilyInjectedProvider.swift",
        "LazyInjector.swift",
        "StrictInjector.swift",
        "StrictlyInjectedProvider.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.