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 SwiftGraph, reference master (d1de55), with Swift 6.1 for Linux on 27 Apr 2025 18:18:00 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/davecom/SwiftGraph.git
Reference: master
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/davecom/SwiftGraph
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d1de55a Merge pull request #91 from Vithanco/master
Cloned https://github.com/davecom/SwiftGraph.git
Revision (git rev-parse @):
d1de55a6e8359dbad528ec06e4924209cce5dbda
SUCCESS checkout https://github.com/davecom/SwiftGraph.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/davecom/SwiftGraph.git
https://github.com/davecom/SwiftGraph.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftGraph",
  "name" : "SwiftGraph",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftGraph",
      "targets" : [
        "SwiftGraph"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftGraphTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftGraphTests",
      "path" : "Tests/SwiftGraphTests",
      "sources" : [
        "Constructors/ConstructorsTests.swift",
        "CycleTests.swift",
        "DijkstraGraphTests.swift",
        "EdgeListTests.swift",
        "MSTTests.swift",
        "SwiftGraphCodableTests.swift",
        "SwiftGraphReversedTests.swift",
        "SwiftGraphSearchTests.swift",
        "SwiftGraphSortTests.swift",
        "SwiftGraphTests.swift",
        "UnionTests.swift",
        "UniqueElementsGraph/UniqueElementsGraphContainerEdgeTests.swift",
        "UniqueElementsGraph/UniqueElementsGraphHashableInitTests.swift",
        "UniqueElementsGraph/UniqueElementsGraphHashableTests.swift",
        "UniqueElementsGraph/UniqueElementsGraphInitTests.swift",
        "UniqueElementsGraph/UniqueElementsGraphTests.swift",
        "UniqueElementsGraph/WeightedUniqueElementsGraphTests.swift",
        "UnweightedGraphTests.swift",
        "Utils/ArraysHaveSameElements.swift",
        "WeightedGraphTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftGraph"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftGraphPerformanceTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftGraphPerformanceTests",
      "path" : "Tests/SwiftGraphPerformanceTests",
      "sources" : [
        "ConstructorsPerformanceTests.swift",
        "SearchPerformanceTests.swift",
        "UnionPerformanceTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftGraph"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftGraph",
      "module_type" : "SwiftTarget",
      "name" : "SwiftGraph",
      "path" : "Sources/SwiftGraph",
      "product_memberships" : [
        "SwiftGraph"
      ],
      "sources" : [
        "Constructors.swift",
        "Cycle.swift",
        "Edge.swift",
        "Graph.swift",
        "MST.swift",
        "Queue.swift",
        "Reversed.swift",
        "Search.swift",
        "Sort.swift",
        "Stack.swift",
        "SwiftPriorityQueue.swift",
        "Union.swift",
        "UniqueElementsGraph.swift",
        "UnweightedEdge.swift",
        "UnweightedGraph.swift",
        "WeightedEdge.swift",
        "WeightedGraph.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/18] Emitting module SwiftGraph
/host/spi-builder-workspace/Sources/SwiftGraph/Search.swift:547:20: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
541 | /// Represents a node in the priority queue used
542 | /// for selecting the next
543 | struct DijkstraNode<D: Comparable>: Comparable, Equatable {
    |                     `- note: 'D' previously declared here
544 |     let vertex: Int
545 |     let distance: D
546 |
547 |     static func < <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
    |                    `- warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
548 |         return lhs.distance < rhs.distance
549 |     }
/host/spi-builder-workspace/Sources/SwiftGraph/Search.swift:551:21: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
541 | /// Represents a node in the priority queue used
542 | /// for selecting the next
543 | struct DijkstraNode<D: Comparable>: Comparable, Equatable {
    |                     `- note: 'D' previously declared here
544 |     let vertex: Int
545 |     let distance: D
    :
549 |     }
550 |
551 |     static func == <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
    |                     `- warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
552 |         return lhs.distance == rhs.distance
553 |     }
/host/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:132:33: warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 21 |
 22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
 23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
    |                                `- note: 'V' previously declared here
 24 |     public var vertices: [V] = [V]()
 25 |     public var edges: [[E]] = [[E]]() //adjacency lists
    :
130 |     }
131 |
132 |     private struct QueueElement<V> {
    |                                 `- warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
133 |         let v: V
134 |         let previousIndex: Int
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:55:28: warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
   |                            `- note: 'W' previously declared here
33 |     public var u: Int
34 |     public var v: Int
   :
53 |
54 |     //MARK: Operator Overloads
55 |     static public func == <W>(lhs: WeightedEdge<W>, rhs: WeightedEdge<W>) -> Bool {
   |                            `- warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
56 |         return lhs.u == rhs.u && lhs.v == rhs.v && lhs.weight == rhs.weight
57 |     }
[4/20] Compiling SwiftGraph Graph.swift
[5/20] Compiling SwiftGraph MST.swift
[6/20] Compiling SwiftGraph WeightedEdge.swift
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:55:28: warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
   |                            `- note: 'W' previously declared here
33 |     public var u: Int
34 |     public var v: Int
   :
53 |
54 |     //MARK: Operator Overloads
55 |     static public func == <W>(lhs: WeightedEdge<W>, rhs: WeightedEdge<W>) -> Bool {
   |                            `- warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
56 |         return lhs.u == rhs.u && lhs.v == rhs.v && lhs.weight == rhs.weight
57 |     }
[7/20] Compiling SwiftGraph WeightedGraph.swift
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:55:28: warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
   |                            `- note: 'W' previously declared here
33 |     public var u: Int
34 |     public var v: Int
   :
53 |
54 |     //MARK: Operator Overloads
55 |     static public func == <W>(lhs: WeightedEdge<W>, rhs: WeightedEdge<W>) -> Bool {
   |                            `- warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
56 |         return lhs.u == rhs.u && lhs.v == rhs.v && lhs.weight == rhs.weight
57 |     }
[8/20] Compiling SwiftGraph UnweightedEdge.swift
[9/20] Compiling SwiftGraph UnweightedGraph.swift
[10/20] Compiling SwiftGraph Stack.swift
[11/20] Compiling SwiftGraph SwiftPriorityQueue.swift
[12/20] Compiling SwiftGraph Search.swift
/host/spi-builder-workspace/Sources/SwiftGraph/Search.swift:547:20: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
541 | /// Represents a node in the priority queue used
542 | /// for selecting the next
543 | struct DijkstraNode<D: Comparable>: Comparable, Equatable {
    |                     `- note: 'D' previously declared here
544 |     let vertex: Int
545 |     let distance: D
546 |
547 |     static func < <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
    |                    `- warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
548 |         return lhs.distance < rhs.distance
549 |     }
/host/spi-builder-workspace/Sources/SwiftGraph/Search.swift:551:21: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
541 | /// Represents a node in the priority queue used
542 | /// for selecting the next
543 | struct DijkstraNode<D: Comparable>: Comparable, Equatable {
    |                     `- note: 'D' previously declared here
544 |     let vertex: Int
545 |     let distance: D
    :
549 |     }
550 |
551 |     static func == <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
    |                     `- warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
552 |         return lhs.distance == rhs.distance
553 |     }
[13/20] Compiling SwiftGraph Sort.swift
/host/spi-builder-workspace/Sources/SwiftGraph/Search.swift:547:20: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
541 | /// Represents a node in the priority queue used
542 | /// for selecting the next
543 | struct DijkstraNode<D: Comparable>: Comparable, Equatable {
    |                     `- note: 'D' previously declared here
544 |     let vertex: Int
545 |     let distance: D
546 |
547 |     static func < <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
    |                    `- warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
548 |         return lhs.distance < rhs.distance
549 |     }
/host/spi-builder-workspace/Sources/SwiftGraph/Search.swift:551:21: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
541 | /// Represents a node in the priority queue used
542 | /// for selecting the next
543 | struct DijkstraNode<D: Comparable>: Comparable, Equatable {
    |                     `- note: 'D' previously declared here
544 |     let vertex: Int
545 |     let distance: D
    :
549 |     }
550 |
551 |     static func == <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
    |                     `- warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
552 |         return lhs.distance == rhs.distance
553 |     }
[14/20] Compiling SwiftGraph Union.swift
/host/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:132:33: warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 21 |
 22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
 23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
    |                                `- note: 'V' previously declared here
 24 |     public var vertices: [V] = [V]()
 25 |     public var edges: [[E]] = [[E]]() //adjacency lists
    :
130 |     }
131 |
132 |     private struct QueueElement<V> {
    |                                 `- warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
133 |         let v: V
134 |         let previousIndex: Int
[15/20] Compiling SwiftGraph UniqueElementsGraph.swift
/host/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:132:33: warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 21 |
 22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
 23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
    |                                `- note: 'V' previously declared here
 24 |     public var vertices: [V] = [V]()
 25 |     public var edges: [[E]] = [[E]]() //adjacency lists
    :
130 |     }
131 |
132 |     private struct QueueElement<V> {
    |                                 `- warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
133 |         let v: V
134 |         let previousIndex: Int
[16/20] Compiling SwiftGraph Constructors.swift
[17/20] Compiling SwiftGraph Cycle.swift
[18/20] Compiling SwiftGraph Edge.swift
[19/20] Compiling SwiftGraph Queue.swift
[20/20] Compiling SwiftGraph Reversed.swift
Build complete! (4.06s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftGraph",
  "name" : "SwiftGraph",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftGraph",
      "targets" : [
        "SwiftGraph"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftGraphTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftGraphTests",
      "path" : "Tests/SwiftGraphTests",
      "sources" : [
        "Constructors/ConstructorsTests.swift",
        "CycleTests.swift",
        "DijkstraGraphTests.swift",
        "EdgeListTests.swift",
        "MSTTests.swift",
        "SwiftGraphCodableTests.swift",
        "SwiftGraphReversedTests.swift",
        "SwiftGraphSearchTests.swift",
        "SwiftGraphSortTests.swift",
        "SwiftGraphTests.swift",
        "UnionTests.swift",
        "UniqueElementsGraph/UniqueElementsGraphContainerEdgeTests.swift",
        "UniqueElementsGraph/UniqueElementsGraphHashableInitTests.swift",
        "UniqueElementsGraph/UniqueElementsGraphHashableTests.swift",
        "UniqueElementsGraph/UniqueElementsGraphInitTests.swift",
        "UniqueElementsGraph/UniqueElementsGraphTests.swift",
        "UniqueElementsGraph/WeightedUniqueElementsGraphTests.swift",
        "UnweightedGraphTests.swift",
        "Utils/ArraysHaveSameElements.swift",
        "WeightedGraphTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftGraph"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftGraphPerformanceTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftGraphPerformanceTests",
      "path" : "Tests/SwiftGraphPerformanceTests",
      "sources" : [
        "ConstructorsPerformanceTests.swift",
        "SearchPerformanceTests.swift",
        "UnionPerformanceTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftGraph"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftGraph",
      "module_type" : "SwiftTarget",
      "name" : "SwiftGraph",
      "path" : "Sources/SwiftGraph",
      "product_memberships" : [
        "SwiftGraph"
      ],
      "sources" : [
        "Constructors.swift",
        "Cycle.swift",
        "Edge.swift",
        "Graph.swift",
        "MST.swift",
        "Queue.swift",
        "Reversed.swift",
        "Search.swift",
        "Sort.swift",
        "Stack.swift",
        "SwiftPriorityQueue.swift",
        "Union.swift",
        "UniqueElementsGraph.swift",
        "UnweightedEdge.swift",
        "UnweightedGraph.swift",
        "WeightedEdge.swift",
        "WeightedGraph.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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.