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 swift-command, reference main (3fbf95), with Swift 6.0 for Linux on 23 Mar 2025 07:09:03 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pelagornis/swift-command.git
Reference: main
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/pelagornis/swift-command
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3fbf956 Update README.md
Cloned https://github.com/pelagornis/swift-command.git
Revision (git rev-parse @):
3fbf956d01e95b45b3c8ea469329f6d7c8ab877e
SUCCESS checkout https://github.com/pelagornis/swift-command.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/pelagornis/swift-command.git
https://github.com/pelagornis/swift-command.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log"
    }
  ],
  "manifest_display_name" : "swift-command",
  "name" : "swift-command",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Command",
      "targets" : [
        "Command"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CommandTests",
      "module_type" : "SwiftTarget",
      "name" : "CommandTests",
      "path" : "Tests/CommandTests",
      "sources" : [
        "CommandTests.swift"
      ],
      "target_dependencies" : [
        "Command"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Command",
      "module_type" : "SwiftTarget",
      "name" : "Command",
      "path" : "Sources/Command",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "Command"
      ],
      "sources" : [
        "Alias.swift",
        "Arguments.swift",
        "Command.swift",
        "CommandValues.swift",
        "CommandValues/Bash.swift",
        "CommandValues/Make.swift",
        "CommandValues/Zsh.swift",
        "Environment.swift",
        "Internal/DataExt.swift",
        "Internal/StringExt.swift",
        "Internal/URLExt.swift",
        "Request.swift",
        "Response.swift",
        "Result.swift",
        "Support/Fastlane.swift",
        "Support/Git.swift",
        "Support/SwiftPackage.swift",
        "Support/Tuist.swift",
        "Task.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-log
[1/2050] Fetching swift-docc-plugin
[42/5837] Fetching swift-docc-plugin, swift-log
Fetched https://github.com/apple/swift-log from cache (0.36s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.38s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.3 (0.82s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.65s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3343] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.31s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.85s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/10] Emitting module Logging
[7/10] Compiling Logging MetadataProvider.swift
[8/10] Compiling Logging Locks.swift
[9/10] Compiling Logging Logging.swift
[10/10] Compiling Logging LogHandler.swift
[12/29] Emitting module Command
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[13/31] Compiling Command Result.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[14/31] Compiling Command Fastlane.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[15/31] Compiling Command Git.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[16/31] Compiling Command SwiftPackage.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[17/31] Compiling Command Request.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[18/31] Compiling Command Response.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[19/31] Compiling Command StringExt.swift
[20/31] Compiling Command URLExt.swift
[21/31] Compiling Command CommandValues.swift
[22/31] Compiling Command Bash.swift
[23/31] Compiling Command Make.swift
[24/31] Compiling Command Alias.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[25/31] Compiling Command Arguments.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[26/31] Compiling Command Command.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[27/31] Compiling Command Zsh.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[28/31] Compiling Command Environment.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[29/31] Compiling Command DataExt.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[30/31] Compiling Command Tuist.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
[31/31] Compiling Command Task.swift
/host/spi-builder-workspace/Sources/Command/Environment.swift:11:23: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// The global environment for all commands.
11 |     public static var global = Environment()
   |                       |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'global' 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
12 |
13 |     //MARK: - Initializer
Build complete! (32.88s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log"
    }
  ],
  "manifest_display_name" : "swift-command",
  "name" : "swift-command",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Command",
      "targets" : [
        "Command"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CommandTests",
      "module_type" : "SwiftTarget",
      "name" : "CommandTests",
      "path" : "Tests/CommandTests",
      "sources" : [
        "CommandTests.swift"
      ],
      "target_dependencies" : [
        "Command"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Command",
      "module_type" : "SwiftTarget",
      "name" : "Command",
      "path" : "Sources/Command",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "Command"
      ],
      "sources" : [
        "Alias.swift",
        "Arguments.swift",
        "Command.swift",
        "CommandValues.swift",
        "CommandValues/Bash.swift",
        "CommandValues/Make.swift",
        "CommandValues/Zsh.swift",
        "Environment.swift",
        "Internal/DataExt.swift",
        "Internal/StringExt.swift",
        "Internal/URLExt.swift",
        "Request.swift",
        "Response.swift",
        "Result.swift",
        "Support/Fastlane.swift",
        "Support/Git.swift",
        "Support/SwiftPackage.swift",
        "Support/Tuist.swift",
        "Task.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.