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 Archery, reference master (423523), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 05:29:37 UTC.

Swift 6 data race errors: 3

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/vknabel/archery.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vknabel/archery
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4235239 Merge pull request #14 from vknabel/dependabot/bundler/activesupport-7.0.4.3
Cloned https://github.com/vknabel/archery.git
Revision (git rev-parse @):
423523973f6a14c4c33632262be094a66d4a7b52
SUCCESS checkout https://github.com/vknabel/archery.git at master
Fetching https://github.com/jpsim/Yams.git from cache
Fetched https://github.com/jpsim/Yams.git from cache (0.54s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.0.1 (1.12s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.0.1
========================================
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": "archery",
      "name": "Archery",
      "url": "https://github.com/vknabel/archery.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/archery",
      "dependencies": [
        {
          "identity": "yams",
          "name": "Yams",
          "url": "https://github.com/jpsim/Yams.git",
          "version": "5.3.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Yams",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/vknabel/archery.git
[1/736] Fetching archery
Fetched https://github.com/vknabel/archery.git from cache (0.90s)
Fetching https://github.com/jpsim/Yams.git from cache
Fetched https://github.com/jpsim/Yams.git from cache (0.54s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.3.1 (1.14s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.3.1
Creating working copy for https://github.com/vknabel/archery.git
Working copy of https://github.com/vknabel/archery.git resolved at master (4235239)
Found 1 product dependencies
  - Yams
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vknabel/archery.git
https://github.com/vknabel/archery.git
{
  "dependencies" : [
    {
      "identity" : "yams",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.1",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jpsim/Yams.git"
    }
  ],
  "manifest_display_name" : "Archery",
  "name" : "Archery",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "archery",
      "targets" : [
        "Archery"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "ArcheryKit",
      "targets" : [
        "ArcheryKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "ArcheryInterface",
      "targets" : [
        "ArcheryInterface"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ArcheryKitTests",
      "module_type" : "SwiftTarget",
      "name" : "ArcheryKitTests",
      "path" : "Tests/ArcheryKitTests",
      "sources" : [
        "ArcherfileParsingTests.swift",
        "ArcheryKitTests.swift",
        "ArcheryTests.swift",
        "MetadataTests.swift",
        "ScriptParsingTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ArcheryKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ArcheryKit",
      "module_type" : "SwiftTarget",
      "name" : "ArcheryKit",
      "path" : "Sources/ArcheryKit",
      "product_dependencies" : [
        "Yams"
      ],
      "product_memberships" : [
        "archery",
        "ArcheryKit",
        "ArcheryInterface"
      ],
      "sources" : [
        "Archerfile.swift",
        "Archery.swift",
        "ArcheryError.swift",
        "ExecutionContext.swift",
        "LabeledScript.swift",
        "LegacyScript.swift",
        "Metadata.swift",
        "OfferingMetadata.swift",
        "Path.swift",
        "ProcessScheduler.swift",
        "RawDataFormat.swift",
        "Script.swift",
        "ScriptExecution.swift",
        "Version.generated.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ArcheryInterfaceTests",
      "module_type" : "SwiftTarget",
      "name" : "ArcheryInterfaceTests",
      "path" : "Tests/ArcheryInterfaceTests",
      "sources" : [
        "ArcheryInterfaceTests.swift",
        "InitCommandTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ArcheryInterface"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ArcheryInterface",
      "module_type" : "SwiftTarget",
      "name" : "ArcheryInterface",
      "path" : "Sources/ArcheryInterface",
      "product_memberships" : [
        "archery",
        "ArcheryInterface"
      ],
      "sources" : [
        "ArcheryInterface.swift",
        "Command.swift",
        "Commands/ApiLevelCommand.swift",
        "Commands/ExecutionCommand.swift",
        "Commands/HelpCommand.swift",
        "Commands/InitCommand.swift",
        "Commands/VersionCommand.swift",
        "InitCommand+Contents.swift"
      ],
      "target_dependencies" : [
        "ArcheryKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Archery",
      "module_type" : "SwiftTarget",
      "name" : "Archery",
      "path" : "Sources/Archery",
      "product_memberships" : [
        "archery"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "ArcheryInterface"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.4"
}
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/15] Write archery-entitlement.plist
[1/15] Write sources
[5/15] Write swift-version-2F0A5646E1D333AE.txt
[6/15] Compiling api.c
[7/15] Compiling parser.c
[8/15] Compiling scanner.c
[9/15] Compiling reader.c
[10/15] Compiling writer.c
[11/15] Compiling emitter.c
[13/30] Compiling Yams Tag.swift
[14/31] Compiling Yams YamlError.swift
[15/31] Compiling Yams String+Yams.swift
[16/31] Compiling Yams Resolver.swift
[17/31] Compiling Yams Node.swift
[18/31] Compiling Yams Parser.swift
[19/31] Compiling Yams Mark.swift
[20/31] Compiling Yams Node.Mapping.swift
[21/31] Compiling Yams Constructor.swift
[22/31] Compiling Yams Decoder.swift
[23/31] Compiling Yams Emitter.swift
[24/31] Compiling Yams Encoder.swift
[25/31] Emitting module Yams
[26/31] Compiling Yams Representer.swift
[27/31] Compiling Yams Node.Scalar.swift
[28/31] Compiling Yams Node.Sequence.swift
[29/45] Compiling ArcheryKit Metadata.swift
[30/45] Compiling ArcheryKit OfferingMetadata.swift
[31/46] Compiling ArcheryKit Script.swift
[32/46] Emitting module ArcheryKit
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:13:24: warning: static property 'lock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | class ProcessScheduler {
13 |     private static var lock = NSLock()
   |                        |- warning: static property 'lock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'lock' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'lock' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     static var scheduledProcesses: [ObjectIdentifier: Process] = [:]
15 |
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:14:16: warning: static property 'scheduledProcesses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | class ProcessScheduler {
13 |     private static var lock = NSLock()
14 |     static var scheduledProcesses: [ObjectIdentifier: Process] = [:]
   |                |- warning: static property 'scheduledProcesses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'scheduledProcesses' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'scheduledProcesses' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     static func run(_ process: Process) throws {
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:53:24: warning: static property 'hasBeenPrepared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | extension ProcessScheduler {
53 |     private static var hasBeenPrepared = false
   |                        |- warning: static property 'hasBeenPrepared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'hasBeenPrepared' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'hasBeenPrepared' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |     private static func prepare() {
55 |         if hasBeenPrepared { return }
[33/46] Compiling ArcheryKit Archerfile.swift
[34/46] Compiling ArcheryKit Archery.swift
[35/46] Compiling ArcheryKit RawDataFormat.swift
[36/46] Compiling ArcheryKit LabeledScript.swift
[37/46] Compiling ArcheryKit LegacyScript.swift
[38/46] Compiling ArcheryKit ProcessScheduler.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:13:24: warning: static property 'lock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | class ProcessScheduler {
13 |     private static var lock = NSLock()
   |                        |- warning: static property 'lock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'lock' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'lock' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     static var scheduledProcesses: [ObjectIdentifier: Process] = [:]
15 |
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:14:16: warning: static property 'scheduledProcesses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | class ProcessScheduler {
13 |     private static var lock = NSLock()
14 |     static var scheduledProcesses: [ObjectIdentifier: Process] = [:]
   |                |- warning: static property 'scheduledProcesses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'scheduledProcesses' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'scheduledProcesses' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     static func run(_ process: Process) throws {
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:53:24: warning: static property 'hasBeenPrepared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | extension ProcessScheduler {
53 |     private static var hasBeenPrepared = false
   |                        |- warning: static property 'hasBeenPrepared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'hasBeenPrepared' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'hasBeenPrepared' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |     private static func prepare() {
55 |         if hasBeenPrepared { return }
[39/46] Compiling ArcheryKit Path.swift
[40/46] Compiling ArcheryKit ArcheryError.swift
[41/46] Compiling ArcheryKit ExecutionContext.swift
[42/46] Compiling ArcheryKit ScriptExecution.swift
[43/46] Compiling ArcheryKit Version.generated.swift
[44/55] Compiling ArcheryInterface InitCommand+Contents.swift
[45/55] Compiling ArcheryInterface VersionCommand.swift
[46/55] Compiling ArcheryInterface InitCommand.swift
[47/55] Compiling ArcheryInterface ExecutionCommand.swift
[48/55] Compiling ArcheryInterface Command.swift
[49/55] Compiling ArcheryInterface ArcheryInterface.swift
[50/55] Compiling ArcheryInterface ApiLevelCommand.swift
[51/55] Emitting module ArcheryInterface
[52/55] Compiling ArcheryInterface HelpCommand.swift
[53/57] Emitting module Archery
[54/57] Compiling Archery main.swift
[54/57] Write Objects.LinkFileList
[55/57] Linking archery
[56/57] Applying archery
Build complete! (9.41s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "yams",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.1",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jpsim/Yams.git"
    }
  ],
  "manifest_display_name" : "Archery",
  "name" : "Archery",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "archery",
      "targets" : [
        "Archery"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "ArcheryKit",
      "targets" : [
        "ArcheryKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "ArcheryInterface",
      "targets" : [
        "ArcheryInterface"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ArcheryKitTests",
      "module_type" : "SwiftTarget",
      "name" : "ArcheryKitTests",
      "path" : "Tests/ArcheryKitTests",
      "sources" : [
        "ArcherfileParsingTests.swift",
        "ArcheryKitTests.swift",
        "ArcheryTests.swift",
        "MetadataTests.swift",
        "ScriptParsingTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ArcheryKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ArcheryKit",
      "module_type" : "SwiftTarget",
      "name" : "ArcheryKit",
      "path" : "Sources/ArcheryKit",
      "product_dependencies" : [
        "Yams"
      ],
      "product_memberships" : [
        "archery",
        "ArcheryKit",
        "ArcheryInterface"
      ],
      "sources" : [
        "Archerfile.swift",
        "Archery.swift",
        "ArcheryError.swift",
        "ExecutionContext.swift",
        "LabeledScript.swift",
        "LegacyScript.swift",
        "Metadata.swift",
        "OfferingMetadata.swift",
        "Path.swift",
        "ProcessScheduler.swift",
        "RawDataFormat.swift",
        "Script.swift",
        "ScriptExecution.swift",
        "Version.generated.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ArcheryInterfaceTests",
      "module_type" : "SwiftTarget",
      "name" : "ArcheryInterfaceTests",
      "path" : "Tests/ArcheryInterfaceTests",
      "sources" : [
        "ArcheryInterfaceTests.swift",
        "InitCommandTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ArcheryInterface"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ArcheryInterface",
      "module_type" : "SwiftTarget",
      "name" : "ArcheryInterface",
      "path" : "Sources/ArcheryInterface",
      "product_memberships" : [
        "archery",
        "ArcheryInterface"
      ],
      "sources" : [
        "ArcheryInterface.swift",
        "Command.swift",
        "Commands/ApiLevelCommand.swift",
        "Commands/ExecutionCommand.swift",
        "Commands/HelpCommand.swift",
        "Commands/InitCommand.swift",
        "Commands/VersionCommand.swift",
        "InitCommand+Contents.swift"
      ],
      "target_dependencies" : [
        "ArcheryKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Archery",
      "module_type" : "SwiftTarget",
      "name" : "Archery",
      "path" : "Sources/Archery",
      "product_memberships" : [
        "archery"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "ArcheryInterface"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.4"
}
Done.