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 Hardware, reference main (d9c86f), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 21:23:20 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/elegantchaos/Hardware.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/Hardware
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d9c86fd Updated header
Cloned https://github.com/elegantchaos/Hardware.git
Revision (git rev-parse @):
d9c86fdc42f14e5014e588d532df013f331ca9d7
SUCCESS checkout https://github.com/elegantchaos/Hardware.git at main
Fetching https://github.com/nicklockwood/SwiftFormat
Fetching https://github.com/elegantchaos/SemanticVersion
Fetching https://github.com/elegantchaos/XCTestExtensions.git
Fetching https://github.com/elegantchaos/Runner
Fetching https://github.com/elegantchaos/SwiftFormatterPlugin.git
Fetching https://github.com/elegantchaos/Matchable.git
Fetching https://github.com/elegantchaos/ActionBuilderCore
[1/87] Fetching swiftformatterplugin
[88/200] Fetching swiftformatterplugin, matchable
[201/352] Fetching swiftformatterplugin, matchable, semanticversion
[346/1028] Fetching swiftformatterplugin, matchable, semanticversion, runner
Fetched https://github.com/elegantchaos/SemanticVersion from cache (0.74s)
Fetching https://github.com/elegantchaos/ActionBuilderPlugin.git
[337/1447] Fetching swiftformatterplugin, matchable, runner, xctestextensions
[400/1909] Fetching swiftformatterplugin, matchable, runner, xctestextensions, actionbuildercore
Fetched https://github.com/elegantchaos/Runner from cache (0.92s)
Fetched https://github.com/elegantchaos/ActionBuilderCore from cache (0.92s)
Fetched https://github.com/elegantchaos/SwiftFormatterPlugin.git from cache (0.92s)
Fetched https://github.com/elegantchaos/Matchable.git from cache (0.92s)
Fetched https://github.com/elegantchaos/XCTestExtensions.git from cache (0.92s)
[1/144] Fetching actionbuilderplugin
Fetched https://github.com/elegantchaos/ActionBuilderPlugin.git from cache (0.70s)
Computing version for https://github.com/elegantchaos/SwiftFormatterPlugin.git
[1/45778] Fetching swiftformat
Computed https://github.com/elegantchaos/SwiftFormatterPlugin.git at 1.0.3 (0.58s)
Fetched https://github.com/nicklockwood/SwiftFormat from cache (15.35s)
Computing version for https://github.com/elegantchaos/ActionBuilderPlugin.git
Computed https://github.com/elegantchaos/ActionBuilderPlugin.git at 1.0.6 (0.58s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.49.13 (2.47s)
Computing version for https://github.com/elegantchaos/ActionBuilderCore
Computed https://github.com/elegantchaos/ActionBuilderCore at 1.0.8 (0.58s)
Computing version for https://github.com/elegantchaos/SemanticVersion
Computed https://github.com/elegantchaos/SemanticVersion at 1.1.0 (0.57s)
Computing version for https://github.com/elegantchaos/Runner
Computed https://github.com/elegantchaos/Runner at 1.3.2 (0.58s)
Computing version for https://github.com/elegantchaos/XCTestExtensions.git
Computed https://github.com/elegantchaos/XCTestExtensions.git at 1.4.9 (0.57s)
Computing version for https://github.com/elegantchaos/Matchable.git
Computed https://github.com/elegantchaos/Matchable.git at 1.0.7 (0.58s)
Creating working copy for https://github.com/elegantchaos/SemanticVersion
Working copy of https://github.com/elegantchaos/SemanticVersion resolved at 1.1.0
Creating working copy for https://github.com/elegantchaos/Matchable.git
Working copy of https://github.com/elegantchaos/Matchable.git resolved at 1.0.7
Creating working copy for https://github.com/elegantchaos/SwiftFormatterPlugin.git
Working copy of https://github.com/elegantchaos/SwiftFormatterPlugin.git resolved at 1.0.3
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.49.13
Creating working copy for https://github.com/elegantchaos/Runner
Working copy of https://github.com/elegantchaos/Runner resolved at 1.3.2
Creating working copy for https://github.com/elegantchaos/ActionBuilderPlugin.git
Working copy of https://github.com/elegantchaos/ActionBuilderPlugin.git resolved at 1.0.6
Creating working copy for https://github.com/elegantchaos/XCTestExtensions.git
Working copy of https://github.com/elegantchaos/XCTestExtensions.git resolved at 1.4.9
Creating working copy for https://github.com/elegantchaos/ActionBuilderCore
Working copy of https://github.com/elegantchaos/ActionBuilderCore resolved at 1.0.8
========================================
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": "hardware",
      "name": "Hardware",
      "url": "https://github.com/elegantchaos/Hardware.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Hardware",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/elegantchaos/Hardware.git
[1/183] Fetching hardware
Fetched https://github.com/elegantchaos/Hardware.git from cache (0.66s)
Creating working copy for https://github.com/elegantchaos/Hardware.git
Working copy of https://github.com/elegantchaos/Hardware.git resolved at main (d9c86fd)
warning: '.resolve-product-dependencies': dependency 'hardware' 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/elegantchaos/Hardware.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
[1/1] Compiling plugin ActionBuilderPlugin
[2/2] Compiling plugin SwiftFormatterPlugin
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/14] Compiling Hardware IOObject.swift
[6/14] Compiling Hardware IOIterator.swift
[7/14] Compiling Hardware System.swift
[8/14] Compiling Hardware EthernetInterface.swift
[9/14] Compiling Hardware Platform.swift
[10/14] Compiling Hardware IORegistryEntry.swift
[11/14] Compiling Hardware MacAddress.swift
[12/14] Compiling Hardware IOService.swift
[13/14] Emitting module Hardware
/Users/admin/builder/spi-builder-workspace/Sources/Hardware/Device.swift:15:23: warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// (also incorporates some values from ProcessInfo.processInfo which don't vary per-process)
14 | public struct Device {
15 |     public static var main: Device = .init()
   |                       |- warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'main' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'main' 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
16 |
17 |     #if canImport(IOKit)
[14/14] Compiling Hardware Device.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hardware/Device.swift:15:23: warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// (also incorporates some values from ProcessInfo.processInfo which don't vary per-process)
14 | public struct Device {
15 |     public static var main: Device = .init()
   |                       |- warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'main' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'main' 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
16 |
17 |     #if canImport(IOKit)
Build complete! (16.68s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "actionbuilderplugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.6",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/ActionBuilderPlugin.git"
    },
    {
      "identity" : "swiftformatterplugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/SwiftFormatterPlugin.git"
    }
  ],
  "manifest_display_name" : "Hardware",
  "name" : "Hardware",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Hardware",
      "targets" : [
        "Hardware"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HardwareTests",
      "module_type" : "SwiftTarget",
      "name" : "HardwareTests",
      "path" : "Tests/HardwareTests",
      "sources" : [
        "DeviceTests.swift"
      ],
      "target_dependencies" : [
        "Hardware"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Hardware",
      "module_type" : "SwiftTarget",
      "name" : "Hardware",
      "path" : "Sources/Hardware",
      "product_memberships" : [
        "Hardware"
      ],
      "sources" : [
        "Device.swift",
        "EthernetInterface.swift",
        "IOIterator.swift",
        "IOObject.swift",
        "IORegistryEntry.swift",
        "IOService.swift",
        "MacAddress.swift",
        "Platform.swift",
        "System.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.