The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of PetriKit, reference 2.0.0 (49eefe), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 17:14:09 UTC.

Swift 6 data race errors: 1

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kyouko-taiga/petrikit.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kyouko-taiga/petrikit
 * tag               2.0.0      -> FETCH_HEAD
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 2.0.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": "petrikit",
      "name": "PetriKit",
      "url": "https://github.com/kyouko-taiga/petrikit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/petrikit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/kyouko-taiga/petrikit.git
[1/187] Fetching petrikit
Fetched https://github.com/kyouko-taiga/petrikit.git from cache (0.65s)
Creating working copy for https://github.com/kyouko-taiga/petrikit.git
Working copy of https://github.com/kyouko-taiga/petrikit.git resolved at 2.0.0 (49eefef)
warning: '.resolve-product-dependencies': dependency 'petrikit' 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/kyouko-taiga/petrikit.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/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 nonisolated 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 nonisolated 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 {
[4/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 |   }
[5/9] Compiling PetriKit PetriKit.swift
[6/9] Compiling PetriKit Marking.swift
[7/9] Compiling PetriKit Group.swift
[8/9] Compiling PetriKit PetriNet+Dot.swift
[9/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 nonisolated 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 nonisolated 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 {
Build complete! (6.90s)
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.