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 Docopt, reference master (fe5beb), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 04:42:36 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/elegantchaos/docopt.swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/docopt.swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at fe5bebd added swiftpm derived xc workspace
Cloned https://github.com/elegantchaos/docopt.swift.git
Revision (git rev-parse @):
fe5bebd9829d1cf56bf062bca70809a09b7144b6
SUCCESS checkout https://github.com/elegantchaos/docopt.swift.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": "docopt.swift",
      "name": "Docopt",
      "url": "https://github.com/elegantchaos/docopt.swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/docopt.swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/elegantchaos/docopt.swift.git
[1/787] Fetching docopt.swift
Fetched https://github.com/elegantchaos/docopt.swift.git from cache (0.75s)
Creating working copy for https://github.com/elegantchaos/docopt.swift.git
Working copy of https://github.com/elegantchaos/docopt.swift.git resolved at master (fe5bebd)
warning: '.resolve-product-dependencies': dependency 'docopt.swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/elegantchaos/docopt.swift.git
https://github.com/elegantchaos/docopt.swift.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Docopt",
  "name" : "Docopt",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Docopt",
      "targets" : [
        "Docopt"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DocoptTests",
      "module_type" : "SwiftTarget",
      "name" : "DocoptTests",
      "path" : "Tests/DocoptTests",
      "sources" : [
        "DocoptTestCase.swift",
        "DocoptTestCaseParser.swift",
        "DocoptTestCasesTests.swift",
        "DocoptTests.swift",
        "ValueMatching.swift",
        "ValueMatchingTests.swift"
      ],
      "target_dependencies" : [
        "Docopt"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Docopt",
      "module_type" : "SwiftTarget",
      "name" : "Docopt",
      "path" : "Sources/Docopt",
      "product_memberships" : [
        "Docopt"
      ],
      "sources" : [
        "Argument.swift",
        "BranchPattern.swift",
        "Command.swift",
        "Docopt.swift",
        "DocoptError.swift",
        "Either.swift",
        "LeafPattern.swift",
        "OneOrMore.swift",
        "Option.swift",
        "Optional.swift",
        "OptionsShortcut.swift",
        "Pattern.swift",
        "Required.swift",
        "String.swift",
        "Tokens.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/17] Compiling Docopt Required.swift
[4/18] Compiling Docopt String.swift
[5/18] Compiling Docopt LeafPattern.swift
[6/18] Compiling Docopt OneOrMore.swift
[7/18] Compiling Docopt Pattern.swift
[8/18] Compiling Docopt OptionsShortcut.swift
[9/18] Compiling Docopt DocoptError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Docopt/DocoptError.swift:22:16: warning: static property 'test' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |     var status: DocoptStatus
21 |
22 |     static var test: Bool = false
   |                |- warning: static property 'test' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'test' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'test' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |     static var errorMessage: String?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Docopt/DocoptError.swift:23:16: warning: static property 'errorMessage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 |     static var test: Bool = false
23 |     static var errorMessage: String?
   |                |- warning: static property 'errorMessage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'errorMessage' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'errorMessage' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     init (_ message: String, name: String, status: DocoptStatus = .unknownError) {
/Users/admin/builder/spi-builder-workspace/Sources/Docopt/DocoptError.swift:49:16: warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | internal class DocoptExit: DocoptError {
49 |     static var usage: String = ""
   |                |- warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'usage' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'usage' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |     init (_ message: String = "Exit in case user invoked program with incorrect arguments.") {
51 |         super.init(message, name: "DocoptExit", status: .incorrectArguments)
[10/18] Compiling Docopt Either.swift
/Users/admin/builder/spi-builder-workspace/Sources/Docopt/DocoptError.swift:22:16: warning: static property 'test' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |     var status: DocoptStatus
21 |
22 |     static var test: Bool = false
   |                |- warning: static property 'test' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'test' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'test' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |     static var errorMessage: String?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Docopt/DocoptError.swift:23:16: warning: static property 'errorMessage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 |     static var test: Bool = false
23 |     static var errorMessage: String?
   |                |- warning: static property 'errorMessage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'errorMessage' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'errorMessage' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     init (_ message: String, name: String, status: DocoptStatus = .unknownError) {
/Users/admin/builder/spi-builder-workspace/Sources/Docopt/DocoptError.swift:49:16: warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | internal class DocoptExit: DocoptError {
49 |     static var usage: String = ""
   |                |- warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'usage' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'usage' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |     init (_ message: String = "Exit in case user invoked program with incorrect arguments.") {
51 |         super.init(message, name: "DocoptExit", status: .incorrectArguments)
[11/18] Compiling Docopt Argument.swift
[12/18] Compiling Docopt BranchPattern.swift
[13/18] Emitting module Docopt
/Users/admin/builder/spi-builder-workspace/Sources/Docopt/DocoptError.swift:22:16: warning: static property 'test' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |     var status: DocoptStatus
21 |
22 |     static var test: Bool = false
   |                |- warning: static property 'test' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'test' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'test' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |     static var errorMessage: String?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Docopt/DocoptError.swift:23:16: warning: static property 'errorMessage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 |     static var test: Bool = false
23 |     static var errorMessage: String?
   |                |- warning: static property 'errorMessage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'errorMessage' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'errorMessage' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     init (_ message: String, name: String, status: DocoptStatus = .unknownError) {
/Users/admin/builder/spi-builder-workspace/Sources/Docopt/DocoptError.swift:49:16: warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | internal class DocoptExit: DocoptError {
49 |     static var usage: String = ""
   |                |- warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'usage' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'usage' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |     init (_ message: String = "Exit in case user invoked program with incorrect arguments.") {
51 |         super.init(message, name: "DocoptExit", status: .incorrectArguments)
[14/18] Compiling Docopt Command.swift
[15/18] Compiling Docopt Docopt.swift
[16/18] Compiling Docopt Option.swift
[17/18] Compiling Docopt Optional.swift
[18/18] Compiling Docopt Tokens.swift
Build complete! (5.97s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Docopt",
  "name" : "Docopt",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Docopt",
      "targets" : [
        "Docopt"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DocoptTests",
      "module_type" : "SwiftTarget",
      "name" : "DocoptTests",
      "path" : "Tests/DocoptTests",
      "sources" : [
        "DocoptTestCase.swift",
        "DocoptTestCaseParser.swift",
        "DocoptTestCasesTests.swift",
        "DocoptTests.swift",
        "ValueMatching.swift",
        "ValueMatchingTests.swift"
      ],
      "target_dependencies" : [
        "Docopt"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Docopt",
      "module_type" : "SwiftTarget",
      "name" : "Docopt",
      "path" : "Sources/Docopt",
      "product_memberships" : [
        "Docopt"
      ],
      "sources" : [
        "Argument.swift",
        "BranchPattern.swift",
        "Command.swift",
        "Docopt.swift",
        "DocoptError.swift",
        "Either.swift",
        "LeafPattern.swift",
        "OneOrMore.swift",
        "Option.swift",
        "Optional.swift",
        "OptionsShortcut.swift",
        "Pattern.swift",
        "Required.swift",
        "String.swift",
        "Tokens.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.