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 FunctionTools, reference master (a854f4), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 17:21:10 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RougeWare/Swift-Function-Tools.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RougeWare/Swift-Function-Tools
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a854f4e Merge pull request #20 from RougeWare/feature/13-publicize-curry
Cloned https://github.com/RougeWare/Swift-Function-Tools.git
Revision (git rev-parse @):
a854f4ed89b7e404019b5a09d24e067acc15432d
SUCCESS checkout https://github.com/RougeWare/Swift-Function-Tools.git at master
========================================
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": "swift-function-tools",
      "name": "FunctionTools",
      "url": "https://github.com/RougeWare/Swift-Function-Tools.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Swift-Function-Tools",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/RougeWare/Swift-Function-Tools.git
[3/121] Fetching swift-function-tools
Fetched https://github.com/RougeWare/Swift-Function-Tools.git from cache (0.75s)
Creating working copy for https://github.com/RougeWare/Swift-Function-Tools.git
Working copy of https://github.com/RougeWare/Swift-Function-Tools.git resolved at master (a854f4e)
warning: '.resolve-product-dependencies': dependency 'swift-function-tools' 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/RougeWare/Swift-Function-Tools.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
Building for debugging...
[0/6] Write sources
[1/6] Write swift-version--7754E27361AE5C74.txt
[3/15] Compiling FunctionTools Echo.swift
[4/15] Compiling FunctionTools Curry.swift
[5/15] Compiling FunctionTools Function types.swift
[6/15] Compiling FunctionTools Null functions.swift
[7/15] Compiling FunctionTools Call.swift
[8/15] Compiling FunctionTools !.swift
[9/15] Compiling FunctionTools Blackholes.swift
/Users/admin/builder/spi-builder-workspace/Sources/FunctionTools/Blackholes.swift:12:13: warning: var 'blackholeAcceptor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// This guarantees that even the most scrutinous of optimizers will never optimize-away these blackholes
12 | private var blackholeAcceptor: Any? {
   |             |- warning: var 'blackholeAcceptor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'blackholeAcceptor' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'blackholeAcceptor' 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
13 |     didSet {
14 |         blackholeAcceptor = nil
[10/15] Emitting module FunctionTools
/Users/admin/builder/spi-builder-workspace/Sources/FunctionTools/Blackholes.swift:12:13: warning: var 'blackholeAcceptor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// This guarantees that even the most scrutinous of optimizers will never optimize-away these blackholes
12 | private var blackholeAcceptor: Any? {
   |             |- warning: var 'blackholeAcceptor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'blackholeAcceptor' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'blackholeAcceptor' 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
13 |     didSet {
14 |         blackholeAcceptor = nil
[11/15] Compiling FunctionTools Constant.swift
[11/15] Write Objects.LinkFileList
[13/15] Linking libFunctionTools_dynamic.dylib
[14/15] Linking libFunctionToolsDynamic.dylib
Build complete! (10.89s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FunctionTools",
  "name" : "FunctionTools",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FunctionTools",
      "targets" : [
        "FunctionTools"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "FunctionTools_dynamic",
      "targets" : [
        "FunctionTools"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    },
    {
      "name" : "FunctionToolsDynamic",
      "targets" : [
        "FunctionTools"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FunctionToolsTests",
      "module_type" : "SwiftTarget",
      "name" : "FunctionToolsTests",
      "path" : "Tests/FunctionToolsTests",
      "sources" : [
        "! Tests.swift",
        "XCTestManifests.swift",
        "curry Tests.swift"
      ],
      "target_dependencies" : [
        "FunctionTools"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FunctionTools",
      "module_type" : "SwiftTarget",
      "name" : "FunctionTools",
      "path" : "Sources/FunctionTools",
      "product_memberships" : [
        "FunctionTools",
        "FunctionTools_dynamic",
        "FunctionToolsDynamic"
      ],
      "sources" : [
        "!.swift",
        "Blackholes.swift",
        "Call.swift",
        "Constant.swift",
        "Curry.swift",
        "Echo.swift",
        "Function types.swift",
        "Null functions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.