Build Information
Successful build of hex-grid with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fananek/hex-grid.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fananek/hex-grid
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 0fb45eb Merge pull request #20 from mgrider/feature-more-generators
Cloned https://github.com/fananek/hex-grid.git
Revision (git rev-parse @):
0fb45eb4671ffb537a4a3f5dd20385779b032a72
SUCCESS checkout https://github.com/fananek/hex-grid.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/fananek/hex-grid.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/27] Emitting module HexGrid
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Node.swift:19:21: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | internal class Node<T: Hashable> {
| `- note: 'T' previously declared here
2 | let coordinates: T
3 | let parent: Node?
:
17 |
18 | extension Node: Comparable {
19 | static func == <T>(lhs: Node<T>, rhs: Node<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
20 | return lhs === rhs
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Node.swift:23:20: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | internal class Node<T: Hashable> {
| `- note: 'T' previously declared here
2 | let coordinates: T
3 | let parent: Node?
:
21 | }
22 |
23 | static func < <T>(lhs: Node<T>, rhs: Node<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
24 | return (lhs.totalScore) < (rhs.totalScore)
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/Math.swift:66:28: warning: static property 'directions' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
64 | // neighbors
65 | /// Predefined neighbor coordinates
66 | fileprivate static let directions = try! [
| |- warning: static property 'directions' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'directions' 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
67 | CubeCoordinates(x: 1, y: 0, z: -1),
68 | CubeCoordinates(x: 1, y: -1, z: 0),
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Coordinates/CubeCoordinates.swift:4:15: note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
2 |
3 | /// Represents coordinates in Cube format using x, y and z axis
4 | public struct CubeCoordinates: Hashable, Codable {
| `- note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
5 | public let x, y, z: Int
6 |
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/Math.swift:122:28: warning: static property 'diagonalDirections' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
120 |
121 | /// Predefined diagonal coordinates
122 | fileprivate static let diagonalDirections: [CubeCoordinates] = try! [
| |- warning: static property 'diagonalDirections' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'diagonalDirections' 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
123 | CubeCoordinates(x: 2, y: -1, z: -1),
124 | CubeCoordinates(x: 1, y: 1, z: -2),
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Coordinates/CubeCoordinates.swift:4:15: note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
2 |
3 | /// Represents coordinates in Cube format using x, y and z axis
4 | public struct CubeCoordinates: Hashable, Codable {
| `- note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
5 | public let x, y, z: Int
6 |
[6/29] Compiling HexGrid OffsetCoordinates.swift
[7/29] Compiling HexGrid Heap.swift
[8/29] Compiling HexGrid HexSize.swift
[9/29] Compiling HexGrid Generator.swift
[10/29] Compiling HexGrid HexGrid.swift
[11/29] Compiling HexGrid Node.swift
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Node.swift:19:21: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | internal class Node<T: Hashable> {
| `- note: 'T' previously declared here
2 | let coordinates: T
3 | let parent: Node?
:
17 |
18 | extension Node: Comparable {
19 | static func == <T>(lhs: Node<T>, rhs: Node<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
20 | return lhs === rhs
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Node.swift:23:20: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | internal class Node<T: Hashable> {
| `- note: 'T' previously declared here
2 | let coordinates: T
3 | let parent: Node?
:
21 | }
22 |
23 | static func < <T>(lhs: Node<T>, rhs: Node<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
24 | return (lhs.totalScore) < (rhs.totalScore)
25 | }
[12/29] Compiling HexGrid Point.swift
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Node.swift:19:21: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | internal class Node<T: Hashable> {
| `- note: 'T' previously declared here
2 | let coordinates: T
3 | let parent: Node?
:
17 |
18 | extension Node: Comparable {
19 | static func == <T>(lhs: Node<T>, rhs: Node<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
20 | return lhs === rhs
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Node.swift:23:20: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | internal class Node<T: Hashable> {
| `- note: 'T' previously declared here
2 | let coordinates: T
3 | let parent: Node?
:
21 | }
22 |
23 | static func < <T>(lhs: Node<T>, rhs: Node<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
24 | return (lhs.totalScore) < (rhs.totalScore)
25 | }
[13/29] Compiling HexGrid OrientationEnumeration.swift
[14/29] Compiling HexGrid RotationEnumeration.swift
[15/29] Compiling HexGrid PriorityQueue.swift
[16/29] Compiling HexGrid DirectionsEnumeration.swift
[17/29] Compiling HexGrid Math.swift
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/Math.swift:66:28: warning: static property 'directions' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
64 | // neighbors
65 | /// Predefined neighbor coordinates
66 | fileprivate static let directions = try! [
| |- warning: static property 'directions' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'directions' 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
67 | CubeCoordinates(x: 1, y: 0, z: -1),
68 | CubeCoordinates(x: 1, y: -1, z: 0),
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Coordinates/CubeCoordinates.swift:4:15: note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
2 |
3 | /// Represents coordinates in Cube format using x, y and z axis
4 | public struct CubeCoordinates: Hashable, Codable {
| `- note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
5 | public let x, y, z: Int
6 |
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/Math.swift:122:28: warning: static property 'diagonalDirections' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
120 |
121 | /// Predefined diagonal coordinates
122 | fileprivate static let diagonalDirections: [CubeCoordinates] = try! [
| |- warning: static property 'diagonalDirections' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'diagonalDirections' 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
123 | CubeCoordinates(x: 2, y: -1, z: -1),
124 | CubeCoordinates(x: 1, y: 1, z: -2),
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Coordinates/CubeCoordinates.swift:4:15: note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
2 |
3 | /// Represents coordinates in Cube format using x, y and z axis
4 | public struct CubeCoordinates: Hashable, Codable {
| `- note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
5 | public let x, y, z: Int
6 |
[18/29] Compiling HexGrid OrientationMatrix.swift
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/Math.swift:66:28: warning: static property 'directions' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
64 | // neighbors
65 | /// Predefined neighbor coordinates
66 | fileprivate static let directions = try! [
| |- warning: static property 'directions' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'directions' 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
67 | CubeCoordinates(x: 1, y: 0, z: -1),
68 | CubeCoordinates(x: 1, y: -1, z: 0),
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Coordinates/CubeCoordinates.swift:4:15: note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
2 |
3 | /// Represents coordinates in Cube format using x, y and z axis
4 | public struct CubeCoordinates: Hashable, Codable {
| `- note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
5 | public let x, y, z: Int
6 |
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/Math.swift:122:28: warning: static property 'diagonalDirections' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
120 |
121 | /// Predefined diagonal coordinates
122 | fileprivate static let diagonalDirections: [CubeCoordinates] = try! [
| |- warning: static property 'diagonalDirections' is not concurrency-safe because non-'Sendable' type '[CubeCoordinates]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'diagonalDirections' 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
123 | CubeCoordinates(x: 2, y: -1, z: -1),
124 | CubeCoordinates(x: 1, y: 1, z: -2),
/Users/admin/builder/spi-builder-workspace/Sources/HexGrid/DataStructures/Coordinates/CubeCoordinates.swift:4:15: note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
2 |
3 | /// Represents coordinates in Cube format using x, y and z axis
4 | public struct CubeCoordinates: Hashable, Codable {
| `- note: consider making struct 'CubeCoordinates' conform to the 'Sendable' protocol
5 | public let x, y, z: Int
6 |
[19/29] Compiling HexGrid GridShapeEnumeration.swift
[20/29] Compiling HexGrid OffsetLayoutEnumeration.swift
[21/29] Compiling HexGrid AxialCoordinates.swift
[22/29] Compiling HexGrid CubeCoordinates.swift
[23/29] Compiling HexGrid CubeFractionalCoordinates.swift
[24/29] Compiling HexGrid Cell.swift
[25/29] Compiling HexGrid Convertor.swift
[26/29] Compiling HexGrid InvalidArgumentError.swift
[27/29] Compiling HexGrid Attribute.swift
[28/29] Compiling HexGrid AttributeDecodable.swift
[29/29] Compiling HexGrid AttributeEncodable.swift
Build complete! (39.42s)
Fetching https://github.com/apple/swift-docc-plugin.git
[1/1458] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin.git from cache (1.29s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.3.0 (0.63s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2857] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.27s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.70s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.3.0
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin.git"
}
],
"manifest_display_name" : "hex-grid",
"name" : "hex-grid",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HexGrid",
"targets" : [
"HexGrid"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HexGridTests",
"module_type" : "SwiftTarget",
"name" : "HexGridTests",
"path" : "Tests/HexGridTests",
"sources" : [
"AttributeCodableTests.swift",
"CellTests.swift",
"CodableTests.swift",
"ConvertorTests.swift",
"CoordinatesTests.swift",
"GridGeneratorTests.swift",
"HeapTests.swift",
"HexGridTests.swift",
"MathTests.swift",
"PriorityQueueTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"HexGrid"
],
"type" : "test"
},
{
"c99name" : "HexGrid",
"module_type" : "SwiftTarget",
"name" : "HexGrid",
"path" : "Sources/HexGrid",
"product_memberships" : [
"HexGrid"
],
"sources" : [
"Cell.swift",
"Convertor.swift",
"CustomErrors/InvalidArgumentError.swift",
"DataStructures/Attributes/Attribute.swift",
"DataStructures/Attributes/AttributeDecodable.swift",
"DataStructures/Attributes/AttributeEncodable.swift",
"DataStructures/Coordinates/AxialCoordinates.swift",
"DataStructures/Coordinates/CubeCoordinates.swift",
"DataStructures/Coordinates/CubeFractionalCoordinates.swift",
"DataStructures/Coordinates/OffsetCoordinates.swift",
"DataStructures/Heap.swift",
"DataStructures/HexSize.swift",
"DataStructures/Node.swift",
"DataStructures/Point.swift",
"DataStructures/PriorityQueue.swift",
"Enumerations/DirectionsEnumeration.swift",
"Enumerations/GridShapeEnumeration.swift",
"Enumerations/OffsetLayoutEnumeration.swift",
"Enumerations/OrientationEnumeration.swift",
"Enumerations/RotationEnumeration.swift",
"Generator.swift",
"HexGrid.swift",
"Math.swift",
"OrientationMatrix.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.