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 5.10 for macOS (SPM) on 1 Apr 2025 10:07:45 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/davecom/SwiftGraph.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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:         macosSpm
Swift version:             5.10
Building package at path:  $PWD
https://github.com/davecom/SwiftGraph.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-33747A42983211AE.txt
[3/19] Compiling SwiftGraph UnweightedGraph.swift
[4/20] Compiling SwiftGraph SwiftPriorityQueue.swift
[5/20] Compiling SwiftGraph Union.swift
[6/20] Compiling SwiftGraph Sort.swift
[7/20] Compiling SwiftGraph Stack.swift
[8/20] Compiling SwiftGraph MST.swift
[9/20] Compiling SwiftGraph Queue.swift
[10/20] Compiling SwiftGraph Constructors.swift
[11/20] Compiling SwiftGraph Cycle.swift
[12/20] Compiling SwiftGraph Edge.swift
[13/20] Compiling SwiftGraph Graph.swift
[14/20] Emitting module SwiftGraph
/Users/admin/builder/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 Swift 6
    static func < <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
                   ^
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Search.swift:543:21: note: 'D' previously declared here
struct DijkstraNode<D: Comparable>: Comparable, Equatable {
                    ^
/Users/admin/builder/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 Swift 6
    static func == <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
                    ^
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Search.swift:543:21: note: 'D' previously declared here
struct DijkstraNode<D: Comparable>: Comparable, Equatable {
                    ^
/Users/admin/builder/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 Swift 6
    private struct QueueElement<V> {
                                ^
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:23:32: note: 'V' previously declared here
open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
                               ^
/Users/admin/builder/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 Swift 6
    static public func == <W>(lhs: WeightedEdge<W>, rhs: WeightedEdge<W>) -> Bool {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:32:28: note: 'W' previously declared here
public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
                           ^
[15/20] Compiling SwiftGraph UniqueElementsGraph.swift
/Users/admin/builder/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 Swift 6
    private struct QueueElement<V> {
                                ^
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:23:32: note: 'V' previously declared here
open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
                               ^
[16/20] Compiling SwiftGraph UnweightedEdge.swift
/Users/admin/builder/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 Swift 6
    private struct QueueElement<V> {
                                ^
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:23:32: note: 'V' previously declared here
open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
                               ^
[17/20] Compiling SwiftGraph WeightedEdge.swift
/Users/admin/builder/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 Swift 6
    static public func == <W>(lhs: WeightedEdge<W>, rhs: WeightedEdge<W>) -> Bool {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:32:28: note: 'W' previously declared here
public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
                           ^
[18/20] Compiling SwiftGraph Reversed.swift
/Users/admin/builder/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 Swift 6
    static func < <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
                   ^
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Search.swift:543:21: note: 'D' previously declared here
struct DijkstraNode<D: Comparable>: Comparable, Equatable {
                    ^
/Users/admin/builder/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 Swift 6
    static func == <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
                    ^
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Search.swift:543:21: note: 'D' previously declared here
struct DijkstraNode<D: Comparable>: Comparable, Equatable {
                    ^
[19/20] Compiling SwiftGraph Search.swift
/Users/admin/builder/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 Swift 6
    static func < <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
                   ^
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Search.swift:543:21: note: 'D' previously declared here
struct DijkstraNode<D: Comparable>: Comparable, Equatable {
                    ^
/Users/admin/builder/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 Swift 6
    static func == <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
                    ^
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Search.swift:543:21: note: 'D' previously declared here
struct DijkstraNode<D: Comparable>: Comparable, Equatable {
                    ^
[20/20] Compiling SwiftGraph WeightedGraph.swift
Build complete! (3.82s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftGraph",
  "name" : "SwiftGraph",
  "path" : "/Users/admin/builder/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"
}
Done.