Build Information
Successful build of hex-grid, reference 0.4.11 (d02177
), with Swift 6.0 for Linux on 2 Nov 2024 23:42:30 UTC.
Swift 6 data race errors: 4
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
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 /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/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
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/fananek/hex-grid.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
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 (0.35s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.3 (1.19s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3153] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.38s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.68s)
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
[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-24593BA9C3E375BF.txt
[5/26] Emitting module HexGrid
/host/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 | }
/host/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 | }
/host/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),
/host/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 |
/host/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),
/host/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 Node.swift
/host/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 | }
/host/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 | }
[7/29] Compiling HexGrid Point.swift
/host/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 | }
/host/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 | }
[8/29] Compiling HexGrid PriorityQueue.swift
/host/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 | }
/host/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 | }
[9/29] Compiling HexGrid Cell.swift
[10/29] Compiling HexGrid Convertor.swift
[11/29] Compiling HexGrid InvalidArgumentError.swift
[12/29] Compiling HexGrid DirectionsEnumeration.swift
[13/29] Compiling HexGrid GridShapeEnumeration.swift
[14/29] Compiling HexGrid OffsetLayoutEnumeration.swift
[15/29] Compiling HexGrid AxialCoordinates.swift
[16/29] Compiling HexGrid CubeCoordinates.swift
[17/29] Compiling HexGrid CubeFractionalCoordinates.swift
[18/29] Compiling HexGrid OffsetCoordinates.swift
[19/29] Compiling HexGrid Heap.swift
[20/29] Compiling HexGrid HexSize.swift
[21/29] Compiling HexGrid Attribute.swift
[22/29] Compiling HexGrid AttributeDecodable.swift
[23/29] Compiling HexGrid AttributeEncodable.swift
[24/29] Compiling HexGrid OrientationEnumeration.swift
[25/29] Compiling HexGrid RotationEnumeration.swift
[26/29] Compiling HexGrid Generator.swift
[27/29] Compiling HexGrid HexGrid.swift
/host/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),
/host/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 |
/host/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),
/host/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 |
[28/29] Compiling HexGrid Math.swift
/host/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),
/host/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 |
/host/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),
/host/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 |
[29/29] Compiling HexGrid OrientationMatrix.swift
/host/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),
/host/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 |
/host/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),
/host/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 |
Build complete! (25.77s)
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" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.