Build Information
Successful build of hex-grid, reference 0.4.11 (d02177
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 23:48:38 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/fananek/hex-grid.git
Reference: 0.4.11
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fananek/hex-grid
* tag 0.4.11 -> FETCH_HEAD
HEAD is now at d021778 update GH actions
Cloned https://github.com/fananek/hex-grid.git
Revision (git rev-parse @):
d021778edfc8775197b6922569cd274a984661df
SUCCESS checkout https://github.com/fananek/hex-grid.git at 0.4.11
Fetching https://github.com/apple/swift-docc-plugin.git
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin.git from cache (1.27s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.3 (0.73s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3153] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.31s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.74s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/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.4.3
========================================
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": "hex-grid",
"name": "hex-grid",
"url": "https://github.com/fananek/hex-grid.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/hex-grid",
"dependencies": [
]
}
]
}
Fetching https://github.com/fananek/hex-grid.git
[1/2656] Fetching hex-grid
Fetched https://github.com/fananek/hex-grid.git from cache (1.09s)
Creating working copy for https://github.com/fananek/hex-grid.git
Working copy of https://github.com/fananek/hex-grid.git resolved at 0.4.11 (d021778)
warning: '.resolve-product-dependencies': dependency 'hex-grid' 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/fananek/hex-grid.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
[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--7754E27361AE5C74.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 GridShapeEnumeration.swift
[10/29] Compiling HexGrid OffsetLayoutEnumeration.swift
[11/29] Compiling HexGrid Cell.swift
[12/29] Compiling HexGrid Convertor.swift
[13/29] Compiling HexGrid InvalidArgumentError.swift
[14/29] Compiling HexGrid AxialCoordinates.swift
[15/29] Compiling HexGrid CubeCoordinates.swift
[16/29] Compiling HexGrid CubeFractionalCoordinates.swift
[17/29] Compiling HexGrid Generator.swift
[18/29] Compiling HexGrid HexGrid.swift
[19/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 | }
[20/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 | }
[21/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 |
[22/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 |
[23/29] Compiling HexGrid OrientationEnumeration.swift
[24/29] Compiling HexGrid RotationEnumeration.swift
[25/29] Compiling HexGrid PriorityQueue.swift
[26/29] Compiling HexGrid DirectionsEnumeration.swift
[27/29] Compiling HexGrid Attribute.swift
[28/29] Compiling HexGrid AttributeDecodable.swift
[29/29] Compiling HexGrid AttributeEncodable.swift
Build complete! (26.85s)
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.