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 Dip, reference develop (7ec008), with Swift 6.0 for Linux on 31 Oct 2024 10:57:47 UTC.

Swift 6 data race errors: 6

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AliSoftware/Dip.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/AliSoftware/Dip
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 7ec008a Merge pull request #237 from michalsrutek/develop
Cloned https://github.com/AliSoftware/Dip.git
Revision (git rev-parse @):
7ec008a5c09520b67f07669ad5a753d757f05bbe
SUCCESS checkout https://github.com/AliSoftware/Dip.git at develop
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/AliSoftware/Dip.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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 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/15] Compiling Dip Resolve.swift
[4/15] Compiling Dip RuntimeArguments.swift
[5/16] Compiling Dip DipError.swift
/host/spi-builder-workspace/Sources/DipError.swift:37:8: warning: associated value 'definitionNotFound(key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
35 |    - parameter key: definition key used to lookup matching definition
36 |    */
37 |   case definitionNotFound(key: DefinitionKey)
   |        `- warning: associated value 'definitionNotFound(key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
38 |
39 |   /**
/host/spi-builder-workspace/Sources/Definition.swift:26:15: note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 24 |
 25 | ///A key used to store definitons in a container.
 26 | public struct DefinitionKey: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 27 |   public let type: Any.Type
 28 |   public let typeOfArguments: Any.Type
/host/spi-builder-workspace/Sources/DipError.swift:66:8: warning: associated value 'ambiguousDefinitions(type:definitions:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'any DefinitionType'; this is an error in the Swift 6 language mode
64 |       - definitions: Ambiguous definitions
65 |    */
66 |   case ambiguousDefinitions(type: Any.Type, definitions: [DefinitionType])
   |        `- warning: associated value 'ambiguousDefinitions(type:definitions:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'any DefinitionType'; this is an error in the Swift 6 language mode
67 |
68 |   /**
/host/spi-builder-workspace/Sources/Definition.swift:64:17: note: protocol 'DefinitionType' does not conform to the 'Sendable' protocol
 62 |
 63 | ///Dummy protocol to store definitions for different types in collection
 64 | public protocol DefinitionType: AnyObject { }
    |                 `- note: protocol 'DefinitionType' does not conform to the 'Sendable' protocol
 65 |
 66 | /**
/host/spi-builder-workspace/Sources/DipError.swift:75:8: warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
73 |       - key: Definition key used to resolve instance
74 |    */
75 |   case invalidType(resolved: Any?, key: DefinitionKey)
   |        `- warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
76 |
77 |   public var description: String {
/host/spi-builder-workspace/Sources/DipError.swift:75:8: warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
73 |       - key: Definition key used to resolve instance
74 |    */
75 |   case invalidType(resolved: Any?, key: DefinitionKey)
   |        `- warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
76 |
77 |   public var description: String {
/host/spi-builder-workspace/Sources/Definition.swift:26:15: note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 24 |
 25 | ///A key used to store definitons in a container.
 26 | public struct DefinitionKey: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 27 |   public let type: Any.Type
 28 |   public let typeOfArguments: Any.Type
[6/16] Compiling Dip Register.swift
/host/spi-builder-workspace/Sources/DipError.swift:37:8: warning: associated value 'definitionNotFound(key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
35 |    - parameter key: definition key used to lookup matching definition
36 |    */
37 |   case definitionNotFound(key: DefinitionKey)
   |        `- warning: associated value 'definitionNotFound(key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
38 |
39 |   /**
/host/spi-builder-workspace/Sources/Definition.swift:26:15: note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 24 |
 25 | ///A key used to store definitons in a container.
 26 | public struct DefinitionKey: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 27 |   public let type: Any.Type
 28 |   public let typeOfArguments: Any.Type
/host/spi-builder-workspace/Sources/DipError.swift:66:8: warning: associated value 'ambiguousDefinitions(type:definitions:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'any DefinitionType'; this is an error in the Swift 6 language mode
64 |       - definitions: Ambiguous definitions
65 |    */
66 |   case ambiguousDefinitions(type: Any.Type, definitions: [DefinitionType])
   |        `- warning: associated value 'ambiguousDefinitions(type:definitions:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'any DefinitionType'; this is an error in the Swift 6 language mode
67 |
68 |   /**
/host/spi-builder-workspace/Sources/Definition.swift:64:17: note: protocol 'DefinitionType' does not conform to the 'Sendable' protocol
 62 |
 63 | ///Dummy protocol to store definitions for different types in collection
 64 | public protocol DefinitionType: AnyObject { }
    |                 `- note: protocol 'DefinitionType' does not conform to the 'Sendable' protocol
 65 |
 66 | /**
/host/spi-builder-workspace/Sources/DipError.swift:75:8: warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
73 |       - key: Definition key used to resolve instance
74 |    */
75 |   case invalidType(resolved: Any?, key: DefinitionKey)
   |        `- warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
76 |
77 |   public var description: String {
/host/spi-builder-workspace/Sources/DipError.swift:75:8: warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
73 |       - key: Definition key used to resolve instance
74 |    */
75 |   case invalidType(resolved: Any?, key: DefinitionKey)
   |        `- warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
76 |
77 |   public var description: String {
/host/spi-builder-workspace/Sources/Definition.swift:26:15: note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 24 |
 25 | ///A key used to store definitons in a container.
 26 | public struct DefinitionKey: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 27 |   public let type: Any.Type
 28 |   public let typeOfArguments: Any.Type
[7/16] Compiling Dip Definition.swift
[8/16] Compiling Dip Dip.swift
[9/16] Compiling Dip TypeForwarding.swift
[10/16] Compiling Dip StoryboardInstantiatable.swift
[11/16] Compiling Dip AutoInjection.swift
[12/16] Compiling Dip AutoWiring.swift
[13/16] Emitting module Dip
/host/spi-builder-workspace/Sources/DipError.swift:37:8: warning: associated value 'definitionNotFound(key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
35 |    - parameter key: definition key used to lookup matching definition
36 |    */
37 |   case definitionNotFound(key: DefinitionKey)
   |        `- warning: associated value 'definitionNotFound(key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
38 |
39 |   /**
/host/spi-builder-workspace/Sources/Definition.swift:26:15: note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 24 |
 25 | ///A key used to store definitons in a container.
 26 | public struct DefinitionKey: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 27 |   public let type: Any.Type
 28 |   public let typeOfArguments: Any.Type
/host/spi-builder-workspace/Sources/DipError.swift:66:8: warning: associated value 'ambiguousDefinitions(type:definitions:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'any DefinitionType'; this is an error in the Swift 6 language mode
64 |       - definitions: Ambiguous definitions
65 |    */
66 |   case ambiguousDefinitions(type: Any.Type, definitions: [DefinitionType])
   |        `- warning: associated value 'ambiguousDefinitions(type:definitions:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'any DefinitionType'; this is an error in the Swift 6 language mode
67 |
68 |   /**
/host/spi-builder-workspace/Sources/Definition.swift:64:17: note: protocol 'DefinitionType' does not conform to the 'Sendable' protocol
 62 |
 63 | ///Dummy protocol to store definitions for different types in collection
 64 | public protocol DefinitionType: AnyObject { }
    |                 `- note: protocol 'DefinitionType' does not conform to the 'Sendable' protocol
 65 |
 66 | /**
/host/spi-builder-workspace/Sources/DipError.swift:75:8: warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
73 |       - key: Definition key used to resolve instance
74 |    */
75 |   case invalidType(resolved: Any?, key: DefinitionKey)
   |        `- warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
76 |
77 |   public var description: String {
/host/spi-builder-workspace/Sources/DipError.swift:75:8: warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
73 |       - key: Definition key used to resolve instance
74 |    */
75 |   case invalidType(resolved: Any?, key: DefinitionKey)
   |        `- warning: associated value 'invalidType(resolved:key:)' of 'Sendable'-conforming enum 'DipError' has non-sendable type 'DefinitionKey'; this is an error in the Swift 6 language mode
76 |
77 |   public var description: String {
/host/spi-builder-workspace/Sources/Definition.swift:26:15: note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 24 |
 25 | ///A key used to store definitons in a container.
 26 | public struct DefinitionKey: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'DefinitionKey' conform to the 'Sendable' protocol
 27 |   public let type: Any.Type
 28 |   public let typeOfArguments: Any.Type
/host/spi-builder-workspace/Sources/Utils.swift:31:12: warning: var 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 29 | }
 30 |
 31 | public var logLevel: LogLevel = .Errors
    |            |- warning: var 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'logLevel' 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
 32 |
 33 | public var logger: (LogLevel, Any) -> Void = { print($1) }
/host/spi-builder-workspace/Sources/Utils.swift:33:12: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 31 | public var logLevel: LogLevel = .Errors
 32 |
 33 | public var logger: (LogLevel, Any) -> Void = { print($1) }
    |            |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'logger' 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
 34 |
 35 | func log(level logLevel: LogLevel, _ message: Any) {
[14/16] Compiling Dip Compatibility.swift
[15/16] Compiling Dip ComponentScope.swift
[16/16] Compiling Dip Utils.swift
/host/spi-builder-workspace/Sources/Utils.swift:31:12: warning: var 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 29 | }
 30 |
 31 | public var logLevel: LogLevel = .Errors
    |            |- warning: var 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'logLevel' 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
 32 |
 33 | public var logger: (LogLevel, Any) -> Void = { print($1) }
/host/spi-builder-workspace/Sources/Utils.swift:33:12: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 31 | public var logLevel: LogLevel = .Errors
 32 |
 33 | public var logger: (LogLevel, Any) -> Void = { print($1) }
    |            |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'logger' 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
 34 |
 35 | func log(level logLevel: LogLevel, _ message: Any) {
Build complete! (6.19s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Dip",
  "name" : "Dip",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Dip",
      "targets" : [
        "Dip"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DipTests",
      "module_type" : "SwiftTarget",
      "name" : "DipTests",
      "path" : "Tests",
      "sources" : [
        "DipTests/AutoInjectionTests.swift",
        "DipTests/AutoWiringTests.swift",
        "DipTests/ComponentScopeTests.swift",
        "DipTests/ContextTests.swift",
        "DipTests/DefinitionTests.swift",
        "DipTests/DipTests.swift",
        "DipTests/DipUITests.swift",
        "DipTests/RuntimeArgumentsTests.swift",
        "DipTests/ThreadSafetyTests.swift",
        "DipTests/TypeForwardingTests.swift",
        "DipTests/Utils.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Dip"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Dip",
      "module_type" : "SwiftTarget",
      "name" : "Dip",
      "path" : "Sources",
      "product_memberships" : [
        "Dip"
      ],
      "sources" : [
        "AutoInjection.swift",
        "AutoWiring.swift",
        "Compatibility.swift",
        "ComponentScope.swift",
        "Definition.swift",
        "Dip.swift",
        "DipError.swift",
        "Register.swift",
        "Resolve.swift",
        "RuntimeArguments.swift",
        "StoryboardInstantiatable.swift",
        "TypeForwarding.swift",
        "Utils.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.