Build Information
Successful build of PetriKit with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
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/kyouko-taiga/petrikit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kyouko-taiga/petrikit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 49eefef Update the version in the readme
Cloned https://github.com/kyouko-taiga/petrikit.git
Revision (git rev-parse @):
49eefef58d070f17b0c5aeb9fd785a35b7ae97f2
SUCCESS checkout https://github.com/kyouko-taiga/petrikit.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/kyouko-taiga/petrikit.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/9] Compiling PetriKit Marking.swift
[4/9] Emitting module PetriKit
/Users/admin/builder/spi-builder-workspace/Sources/PetriKit/PTNet.swift:25:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'PTPlace' to 'Hashable' by implementing 'hash(into:)' instead
23 | extension PTPlace: Hashable {
24 |
25 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'PTPlace' to 'Hashable' by implementing 'hash(into:)' instead
26 | return self.name.hashValue
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/PetriKit/Random.swift:69:21: warning: static property 'seed' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 | // can run the same code under OSX and Linux.
68 |
69 | public static var seed: UInt = 5323
| |- warning: static property 'seed' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'seed' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'seed' 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
70 |
71 | private static func rand() -> Int {
[5/9] Compiling PetriKit PetriKit.swift
[6/9] Compiling PetriKit Group.swift
[7/9] Compiling PetriKit Random.swift
/Users/admin/builder/spi-builder-workspace/Sources/PetriKit/Random.swift:69:21: warning: static property 'seed' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 | // can run the same code under OSX and Linux.
68 |
69 | public static var seed: UInt = 5323
| |- warning: static property 'seed' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'seed' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'seed' 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
70 |
71 | private static func rand() -> Int {
[8/9] Compiling PetriKit PTNet.swift
/Users/admin/builder/spi-builder-workspace/Sources/PetriKit/PTNet.swift:25:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'PTPlace' to 'Hashable' by implementing 'hash(into:)' instead
23 | extension PTPlace: Hashable {
24 |
25 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'PTPlace' to 'Hashable' by implementing 'hash(into:)' instead
26 | return self.name.hashValue
27 | }
[9/9] Compiling PetriKit PetriNet+Dot.swift
Build complete! (16.85s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "PetriKit",
"name" : "PetriKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "PetriKit",
"targets" : [
"PetriKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PetriKitTests",
"module_type" : "SwiftTarget",
"name" : "PetriKitTests",
"path" : "Tests/PetriKitTests",
"sources" : [
"MarkingTests.swift",
"PTNetTests.swift",
"RandomTests.swift"
],
"target_dependencies" : [
"PetriKit"
],
"type" : "test"
},
{
"c99name" : "PetriKit",
"module_type" : "SwiftTarget",
"name" : "PetriKit",
"path" : "Sources/PetriKit",
"product_memberships" : [
"PetriKit"
],
"sources" : [
"Group.swift",
"Marking.swift",
"PTNet.swift",
"PetriKit.swift",
"PetriNet+Dot.swift",
"Random.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Done.