Build Information
Successful build of SwiftGraph, reference 3.1.0 (76b518
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 12:28:30 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/davecom/SwiftGraph.git
Reference: 3.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/davecom/SwiftGraph
* tag 3.1.0 -> FETCH_HEAD
HEAD is now at 76b5180 Updated HTML docs for 3.1
Cloned https://github.com/davecom/SwiftGraph.git
Revision (git rev-parse @):
76b5180a5cc32eda7f5236a756f4c1e0936311c6
SUCCESS checkout https://github.com/davecom/SwiftGraph.git at 3.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftgraph",
"name": "SwiftGraph",
"url": "https://github.com/davecom/SwiftGraph.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftGraph",
"dependencies": [
]
}
]
}
Fetching https://github.com/davecom/SwiftGraph.git
[1/3132] Fetching swiftgraph
Fetched https://github.com/davecom/SwiftGraph.git from cache (1.27s)
Creating working copy for https://github.com/davecom/SwiftGraph.git
Working copy of https://github.com/davecom/SwiftGraph.git resolved at 3.1.0 (76b5180)
warning: '.resolve-product-dependencies': dependency 'swiftgraph' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/davecom/SwiftGraph.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/19] Compiling SwiftGraph MST.swift
[4/19] Compiling SwiftGraph Queue.swift
[5/19] Compiling SwiftGraph Edge.swift
[6/19] Compiling SwiftGraph Graph.swift
[7/19] Compiling SwiftGraph SwiftPriorityQueue.swift
[8/19] Compiling SwiftGraph Union.swift
[9/20] Compiling SwiftGraph Constructors.swift
[10/20] Compiling SwiftGraph Cycle.swift
[11/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 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 | }
/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 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:135: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
:
133 | }
134 |
135 | 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
136 | let v: V
137 | let previousIndex: Int
/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 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 | }
[12/20] Compiling SwiftGraph Sort.swift
[13/20] Compiling SwiftGraph Stack.swift
[14/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 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 | }
[15/20] Compiling SwiftGraph WeightedGraph.swift
[16/20] Compiling SwiftGraph UnweightedGraph.swift
[17/20] Compiling SwiftGraph UniqueElementsGraph.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:135: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
:
133 | }
134 |
135 | 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
136 | let v: V
137 | let previousIndex: Int
[18/20] Compiling SwiftGraph UnweightedEdge.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:135: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
:
133 | }
134 |
135 | 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
136 | let v: V
137 | let previousIndex: Int
[19/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 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 | }
/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 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 | }
[20/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 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 | }
/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 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 | }
Build complete! (11.64s)
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.