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 MemoryLeakTestKit, reference 0.0.1 (f02530), with Swift 6.1 for Linux on 25 Apr 2025 15:46:55 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/Kuniwak/MemoryLeakTestKit.git
Reference: 0.0.1
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/Kuniwak/MemoryLeakTestKit
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at f025301 Add AppCode settings
Cloned https://github.com/Kuniwak/MemoryLeakTestKit.git
Revision (git rev-parse @):
f025301c3417c977224f87c7f325cc52922fbe51
SUCCESS checkout https://github.com/Kuniwak/MemoryLeakTestKit.git at 0.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Kuniwak/MemoryLeakTestKit.git
https://github.com/Kuniwak/MemoryLeakTestKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MemoryLeakTestKit",
  "name" : "MemoryLeakTestKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MemoryLeakTestKit",
      "targets" : [
        "MemoryLeakTestKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MemoryLeakTestKitTests",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLeakTestKitTests",
      "path" : "Tests/MemoryLeakTestKitTests",
      "sources" : [
        "MemoryLeakDetectorTests.swift",
        "ReferenceIDTests.swift",
        "ReferencePathNormalizationTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "MemoryLeakTestKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MemoryLeakTestKit",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLeakTestKit",
      "path" : "Sources/MemoryLeakTestKit",
      "product_memberships" : [
        "MemoryLeakTestKit"
      ],
      "sources" : [
        "Arrays.swift",
        "CircularReferencePath.swift",
        "IdentifiableReferencePath.swift",
        "IdentifiableReferencePathComponent.swift",
        "LeakedObject.swift",
        "MemoryLeakDetector.swift",
        "MemoryLeakReport.swift",
        "NotNormalizedPathComponent.swift",
        "ObjectTraverser.swift",
        "PrefixedArray.generated.swift",
        "PrettyPrint.swift",
        "Reference.swift",
        "ReferenceID.swift",
        "ReferencePath.swift",
        "ReferencePathComponent.swift",
        "ReferencePathNormalization.swift",
        "Types.swift",
        "Weak.swift",
        "WeakOrNotReference.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/20] Emitting module MemoryLeakTestKit
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/IdentifiableReferencePathComponent.swift:7:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 5 |
 6 |
 7 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 8 |         return self.id.hashValue
 9 |     }
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/Reference.swift:53:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
51 |
52 | extension Reference: Hashable {
53 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
54 |         return self.id.hashValue
55 |     }
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferenceID.swift:44:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
42 |
43 | extension ReferenceID: Hashable {
44 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
45 |         switch self {
46 |         case .anyReferenceType(name: _, objectIdentifier: let objectIdentifier):
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferencePath.swift:31:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct ReferencePath: Hashable {
   |               `- note: consider making struct 'ReferencePath' conform to the 'Sendable' protocol
 2 |     public let components: [ReferencePathComponent]
 3 |
   :
29 |
30 |
31 |     public static let root = ReferencePath(components: [])
   |                       |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'root' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | }
33 |
[4/22] Compiling MemoryLeakTestKit MemoryLeakReport.swift
[5/22] Compiling MemoryLeakTestKit NotNormalizedPathComponent.swift
[6/22] Compiling MemoryLeakTestKit ObjectTraverser.swift
[7/22] Compiling MemoryLeakTestKit Weak.swift
[8/22] Compiling MemoryLeakTestKit WeakOrNotReference.swift
[9/22] Compiling MemoryLeakTestKit PrefixedArray.generated.swift
[10/22] Compiling MemoryLeakTestKit PrettyPrint.swift
[11/22] Compiling MemoryLeakTestKit Reference.swift
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/Reference.swift:53:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
51 |
52 | extension Reference: Hashable {
53 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
54 |         return self.id.hashValue
55 |     }
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferenceID.swift:44:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
42 |
43 | extension ReferenceID: Hashable {
44 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
45 |         switch self {
46 |         case .anyReferenceType(name: _, objectIdentifier: let objectIdentifier):
[12/22] Compiling MemoryLeakTestKit ReferenceID.swift
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/Reference.swift:53:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
51 |
52 | extension Reference: Hashable {
53 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
54 |         return self.id.hashValue
55 |     }
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferenceID.swift:44:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
42 |
43 | extension ReferenceID: Hashable {
44 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
45 |         switch self {
46 |         case .anyReferenceType(name: _, objectIdentifier: let objectIdentifier):
[13/22] Compiling MemoryLeakTestKit ReferencePath.swift
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferencePath.swift:31:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct ReferencePath: Hashable {
   |               `- note: consider making struct 'ReferencePath' conform to the 'Sendable' protocol
 2 |     public let components: [ReferencePathComponent]
 3 |
   :
29 |
30 |
31 |     public static let root = ReferencePath(components: [])
   |                       |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'root' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | }
33 |
[14/22] Compiling MemoryLeakTestKit ReferencePathComponent.swift
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferencePath.swift:31:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct ReferencePath: Hashable {
   |               `- note: consider making struct 'ReferencePath' conform to the 'Sendable' protocol
 2 |     public let components: [ReferencePathComponent]
 3 |
   :
29 |
30 |
31 |     public static let root = ReferencePath(components: [])
   |                       |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'root' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | }
33 |
[15/22] Compiling MemoryLeakTestKit ReferencePathNormalization.swift
[16/22] Compiling MemoryLeakTestKit Types.swift
[17/22] Compiling MemoryLeakTestKit Arrays.swift
[18/22] Compiling MemoryLeakTestKit CircularReferencePath.swift
[19/22] Compiling MemoryLeakTestKit IdentifiableReferencePath.swift
[20/22] Compiling MemoryLeakTestKit IdentifiableReferencePathComponent.swift
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/IdentifiableReferencePathComponent.swift:7:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 5 |
 6 |
 7 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 8 |         return self.id.hashValue
 9 |     }
[21/22] Compiling MemoryLeakTestKit LeakedObject.swift
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/IdentifiableReferencePathComponent.swift:7:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 5 |
 6 |
 7 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 8 |         return self.id.hashValue
 9 |     }
[22/22] Compiling MemoryLeakTestKit MemoryLeakDetector.swift
/host/spi-builder-workspace/Sources/MemoryLeakTestKit/IdentifiableReferencePathComponent.swift:7:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 5 |
 6 |
 7 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 8 |         return self.id.hashValue
 9 |     }
Build complete! (9.14s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MemoryLeakTestKit",
  "name" : "MemoryLeakTestKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MemoryLeakTestKit",
      "targets" : [
        "MemoryLeakTestKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MemoryLeakTestKitTests",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLeakTestKitTests",
      "path" : "Tests/MemoryLeakTestKitTests",
      "sources" : [
        "MemoryLeakDetectorTests.swift",
        "ReferenceIDTests.swift",
        "ReferencePathNormalizationTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "MemoryLeakTestKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MemoryLeakTestKit",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLeakTestKit",
      "path" : "Sources/MemoryLeakTestKit",
      "product_memberships" : [
        "MemoryLeakTestKit"
      ],
      "sources" : [
        "Arrays.swift",
        "CircularReferencePath.swift",
        "IdentifiableReferencePath.swift",
        "IdentifiableReferencePathComponent.swift",
        "LeakedObject.swift",
        "MemoryLeakDetector.swift",
        "MemoryLeakReport.swift",
        "NotNormalizedPathComponent.swift",
        "ObjectTraverser.swift",
        "PrefixedArray.generated.swift",
        "PrettyPrint.swift",
        "Reference.swift",
        "ReferenceID.swift",
        "ReferencePath.swift",
        "ReferencePathComponent.swift",
        "ReferencePathNormalization.swift",
        "Types.swift",
        "Weak.swift",
        "WeakOrNotReference.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
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.