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 0.3.3 (d71927), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 01:41:12 UTC.

Swift 6 data race errors: 3

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/vknabel/archery.git
Reference: 0.3.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vknabel/archery
 * tag               0.3.3      -> FETCH_HEAD
HEAD is now at d719271 Merge pull request #12 from vknabel/release/0.3.3
Cloned https://github.com/vknabel/archery.git
Revision (git rev-parse @):
d71927174f14bebf04237e870b8fd4dd4dd4c1c2
SUCCESS checkout https://github.com/vknabel/archery.git at 0.3.3
Fetching https://github.com/jpsim/Yams.git
[1/9936] Fetching yams
Fetched https://github.com/jpsim/Yams.git from cache (1.88s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.0.1 (0.59s)
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.1.3",
          "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 (1.04s)
Fetching https://github.com/jpsim/Yams.git from cache
Fetched https://github.com/jpsim/Yams.git from cache (0.56s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.1.3 (0.57s)
Creating working copy for https://github.com/vknabel/archery.git
Working copy of https://github.com/vknabel/archery.git resolved at 0.3.3 (d719271)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.1.3
Found 1 product dependencies
  - Yams
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/vknabel/archery.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/15] Write sources
[3/15] Write archery-entitlement.plist
[3/15] Write sources
[5/15] Write swift-version--7754E27361AE5C74.txt
[6/15] Compiling reader.c
[7/15] Compiling api.c
[8/15] Compiling parser.c
[9/15] Compiling writer.c
[10/15] Compiling scanner.c
[11/15] Compiling emitter.c
[13/30] Compiling Yams String+Yams.swift
[14/31] Compiling Yams Resolver.swift
[15/31] Compiling Yams Tag.swift
[16/31] Compiling Yams Node.Scalar.swift
[17/31] Compiling Yams Node.Sequence.swift
[18/31] Compiling Yams Representer.swift
[19/31] Compiling Yams Mark.swift
[20/31] Compiling Yams Node.Mapping.swift
[21/31] Compiling Yams Node.swift
[22/31] Compiling Yams Parser.swift
[23/31] Compiling Yams Emitter.swift
[24/31] Compiling Yams Encoder.swift
[25/31] Emitting module Yams
[26/31] Compiling Yams Constructor.swift
[27/31] Compiling Yams Decoder.swift
[28/31] Compiling Yams YamlError.swift
[29/45] Compiling ArcheryKit LabeledScript.swift
[30/45] Compiling ArcheryKit LegacyScript.swift
[31/45] 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: annotate 'lock' 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
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: annotate 'scheduledProcesses' 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
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: annotate 'hasBeenPrepared' 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
54 |     private static func prepare() {
55 |         if hasBeenPrepared { return }
[32/46] Compiling ArcheryKit Version.generated.swift
[33/46] Compiling ArcheryKit Path.swift
[34/46] Compiling ArcheryKit Archerfile.swift
[35/46] Compiling ArcheryKit Archery.swift
[36/46] Compiling ArcheryKit Metadata.swift
[37/46] Compiling ArcheryKit OfferingMetadata.swift
[38/46] Compiling ArcheryKit Script.swift
[39/46] Compiling ArcheryKit RawDataFormat.swift
[40/46] Compiling ArcheryKit ScriptExecution.swift
[41/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: annotate 'lock' 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
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: annotate 'scheduledProcesses' 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
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: annotate 'hasBeenPrepared' 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
54 |     private static func prepare() {
55 |         if hasBeenPrepared { return }
[42/46] Compiling ArcheryKit ArcheryError.swift
[43/46] Compiling ArcheryKit ExecutionContext.swift
[44/55] Compiling ArcheryInterface InitCommand+Contents.swift
[45/55] Compiling ArcheryInterface VersionCommand.swift
[46/55] Compiling ArcheryInterface InitCommand.swift
[47/55] Compiling ArcheryInterface Command.swift
[48/55] Compiling ArcheryInterface ArcheryInterface.swift
[49/55] Emitting module ArcheryInterface
[50/55] Compiling ArcheryInterface ApiLevelCommand.swift
[51/55] Compiling ArcheryInterface HelpCommand.swift
[52/55] Compiling ArcheryInterface ExecutionCommand.swift
[53/57] Compiling Archery main.swift
[54/57] Emitting module Archery
[54/57] Write Objects.LinkFileList
[55/57] Linking archery
[56/57] Applying archery
Build complete! (15.32s)
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.