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 0.6.12 (fe5beb), with Swift 6.0 for Linux on 27 Nov 2024 04:25:48 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elegantchaos/docopt.swift.git
Reference: 0.6.12
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/elegantchaos/docopt.swift
 * tag               0.6.12     -> FETCH_HEAD
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 0.6.12
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/elegantchaos/docopt.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling Docopt OptionsShortcut.swift
[4/17] Compiling Docopt Pattern.swift
[5/17] Compiling Docopt Option.swift
[6/17] Compiling Docopt Optional.swift
[7/17] Compiling Docopt Required.swift
[8/17] Compiling Docopt String.swift
[9/18] Compiling Docopt Argument.swift
[10/18] Compiling Docopt BranchPattern.swift
[11/18] Emitting module Docopt
/host/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: annotate 'test' 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
23 |     static var errorMessage: String?
24 |
/host/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: annotate 'errorMessage' 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
24 |
25 |     init (_ message: String, name: String, status: DocoptStatus = .unknownError) {
/host/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: annotate 'usage' 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
50 |     init (_ message: String = "Exit in case user invoked program with incorrect arguments.") {
51 |         super.init(message, name: "DocoptExit", status: .incorrectArguments)
[12/18] Compiling Docopt DocoptError.swift
/host/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: annotate 'test' 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
23 |     static var errorMessage: String?
24 |
/host/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: annotate 'errorMessage' 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
24 |
25 |     init (_ message: String, name: String, status: DocoptStatus = .unknownError) {
/host/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: annotate 'usage' 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
50 |     init (_ message: String = "Exit in case user invoked program with incorrect arguments.") {
51 |         super.init(message, name: "DocoptExit", status: .incorrectArguments)
[13/18] Compiling Docopt Either.swift
/host/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: annotate 'test' 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
23 |     static var errorMessage: String?
24 |
/host/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: annotate 'errorMessage' 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
24 |
25 |     init (_ message: String, name: String, status: DocoptStatus = .unknownError) {
/host/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: annotate 'usage' 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
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
/host/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: annotate 'usage' 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
50 |     init (_ message: String = "Exit in case user invoked program with incorrect arguments.") {
51 |         super.init(message, name: "DocoptExit", status: .incorrectArguments)
[15/18] Compiling Docopt Docopt.swift
/host/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: annotate 'usage' 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
50 |     init (_ message: String = "Exit in case user invoked program with incorrect arguments.") {
51 |         super.init(message, name: "DocoptExit", status: .incorrectArguments)
[16/18] Compiling Docopt LeafPattern.swift
[17/18] Compiling Docopt OneOrMore.swift
[18/18] Compiling Docopt Tokens.swift
Build complete! (10.44s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Docopt",
  "name" : "Docopt",
  "path" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.