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 Hela, reference 0.0.4 (b8d2f4), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 02:38:46 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/AsyncSwiftKits/Hela.git
Reference: 0.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AsyncSwiftKits/Hela
 * tag               0.0.4      -> FETCH_HEAD
HEAD is now at b8d2f42 adds a preconditionFailure function which supports testing using a type registry
Cloned https://github.com/AsyncSwiftKits/Hela.git
Revision (git rev-parse @):
b8d2f42b4b61348d0c9f54ee424ef87b4a7faff7
SUCCESS checkout https://github.com/AsyncSwiftKits/Hela.git at 0.0.4
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
[1/455] Fetching cwlcatchexception
[79/1712] Fetching cwlcatchexception, cwlpreconditiontesting
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.88s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.88s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.1.0 (0.56s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.1.1 (0.54s)
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.1.1
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.1.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": "hela",
      "name": "Hela",
      "url": "https://github.com/AsyncSwiftKits/Hela.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Hela",
      "dependencies": [
        {
          "identity": "cwlpreconditiontesting",
          "name": "CwlPreconditionTesting",
          "url": "https://github.com/mattgallagher/CwlPreconditionTesting.git",
          "version": "2.2.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CwlPreconditionTesting",
          "dependencies": [
            {
              "identity": "cwlcatchexception",
              "name": "CwlCatchException",
              "url": "https://github.com/mattgallagher/CwlCatchException.git",
              "version": "2.2.1",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CwlCatchException",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/AsyncSwiftKits/Hela.git
[1/75] Fetching hela
Fetched https://github.com/AsyncSwiftKits/Hela.git from cache (0.66s)
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git from cache
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.47s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.2.2 (0.55s)
Fetching https://github.com/mattgallagher/CwlCatchException.git from cache
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.44s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (0.55s)
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.2.2
Creating working copy for https://github.com/AsyncSwiftKits/Hela.git
Working copy of https://github.com/AsyncSwiftKits/Hela.git resolved at 0.0.4 (b8d2f42)
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
warning: '.resolve-product-dependencies': dependency 'hela' is not used by any target
Found 1 product dependencies
  - CwlPreconditionTesting
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/AsyncSwiftKits/Hela.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/7] Write sources
[3/7] Write swift-version--7754E27361AE5C74.txt
[4/7] Compiling CwlMachBadInstructionHandler mach_excServer.c
[5/7] Compiling CwlCatchExceptionSupport CwlCatchException.m
[6/9] Compiling CwlMachBadInstructionHandler CwlMachBadInstructionHandler.m
[8/9] Emitting module CwlCatchException
[9/9] Compiling CwlCatchException CwlCatchException.swift
[10/13] Compiling CwlPreconditionTesting CwlBadInstructionException.swift
[11/13] Emitting module CwlPreconditionTesting
[12/13] Compiling CwlPreconditionTesting CwlDarwinDefinitions.swift
[13/13] Compiling CwlPreconditionTesting CwlCatchBadInstruction.swift
[14/18] Compiling Hela TestAssertions.swift
[15/18] Emitting module Hela
/Users/admin/builder/spi-builder-workspace/Sources/Hela/Precondition.swift:4:25: warning: static property 'registry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | public struct Hela {
 4 |     internal static var registry: TypeRegistry?
   |                         |- warning: static property 'registry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: convert 'registry' to a 'let' constant to make 'Sendable' shared state immutable
   |                         |- note: annotate 'registry' 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
 5 |
 6 |     public static var isTesting: Bool {
[16/18] Compiling Hela TypeKey.swift
[17/18] Compiling Hela Precondition.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hela/Precondition.swift:4:25: warning: static property 'registry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | public struct Hela {
 4 |     internal static var registry: TypeRegistry?
   |                         |- warning: static property 'registry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: convert 'registry' to a 'let' constant to make 'Sendable' shared state immutable
   |                         |- note: annotate 'registry' 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
 5 |
 6 |     public static var isTesting: Bool {
[18/18] Compiling Hela TypeRegistry.swift
Build complete! (15.61s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "cwlpreconditiontesting",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mattgallagher/CwlPreconditionTesting.git"
    }
  ],
  "manifest_display_name" : "Hela",
  "name" : "Hela",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "Hela",
      "targets" : [
        "Hela"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HelaTests",
      "module_type" : "SwiftTarget",
      "name" : "HelaTests",
      "path" : "Tests/HelaTests",
      "sources" : [
        "HelaTests.swift",
        "Runner.swift"
      ],
      "target_dependencies" : [
        "Hela"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Hela",
      "module_type" : "SwiftTarget",
      "name" : "Hela",
      "path" : "Sources/Hela",
      "product_dependencies" : [
        "CwlPreconditionTesting"
      ],
      "product_memberships" : [
        "Hela"
      ],
      "sources" : [
        "Precondition.swift",
        "TestAssertions.swift",
        "TypeKey.swift",
        "TypeRegistry.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.