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.1 for macOS (SPM) on 27 Apr 2025 06:25:02 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.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/CwlPreconditionTesting.git
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/455] Fetching cwlcatchexception
[293/1712] Fetching cwlcatchexception, cwlpreconditiontesting
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.76s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.76s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.1.0 (1.37s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.1.1 (0.60s)
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.63s)
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git from cache
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.44s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.2.2 (1.07s)
Fetching https://github.com/mattgallagher/CwlCatchException.git from cache
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.43s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (1.06s)
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
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)
warning: '.resolve-product-dependencies': dependency 'hela' is not used by any target
Found 1 product dependencies
  - CwlPreconditionTesting
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/AsyncSwiftKits/Hela.git
https://github.com/AsyncSwiftKits/Hela.git
{
  "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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.txt
[4/7] Compiling CwlMachBadInstructionHandler mach_excServer.c
[5/7] Compiling CwlCatchExceptionSupport CwlCatchException.m
[6/7] Compiling CwlMachBadInstructionHandler CwlMachBadInstructionHandler.m
[8/9] Compiling CwlCatchException CwlCatchException.swift
[9/9] Emitting module CwlCatchException
[10/13] Emitting module CwlPreconditionTesting
[11/13] Compiling CwlPreconditionTesting CwlBadInstructionException.swift
[12/13] Compiling CwlPreconditionTesting CwlCatchBadInstruction.swift
[13/13] Compiling CwlPreconditionTesting CwlDarwinDefinitions.swift
[14/18] Compiling Hela TypeRegistry.swift
[15/18] Compiling Hela TypeKey.swift
[16/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: add '@MainActor' to make static property 'registry' part of global actor 'MainActor'
   |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 |     public static var isTesting: Bool {
[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: add '@MainActor' to make static property 'registry' part of global actor 'MainActor'
   |                         `- 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 TestAssertions.swift
Build complete! (15.62s)
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.