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 CommandShell, reference main (63f783), with Swift 6.0 for Linux on 28 Nov 2024 22:26:41 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/CommandShell.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/elegantchaos/CommandShell
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 63f783a Added better version output, and --about command.
Cloned https://github.com/elegantchaos/CommandShell.git
Revision (git rev-parse @):
63f783a6546fed0723b2eb8b8fa12e27277b0ea2
SUCCESS checkout https://github.com/elegantchaos/CommandShell.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/elegantchaos/CommandShell.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
Fetching https://github.com/elegantchaos/SemanticVersion.git
Fetching https://github.com/elegantchaos/XCTestExtensions.git
Fetching https://github.com/elegantchaos/Logger.git
Fetching https://github.com/apple/swift-argument-parser
[1/571] Fetching xctestextensions
[7/723] Fetching xctestextensions, semanticversion
[724/2774] Fetching xctestextensions, semanticversion, logger
[2775/15169] Fetching xctestextensions, semanticversion, logger, swift-argument-parser
Fetched https://github.com/elegantchaos/XCTestExtensions.git from cache (0.79s)
Fetched https://github.com/elegantchaos/SemanticVersion.git from cache (0.79s)
Fetched https://github.com/elegantchaos/Logger.git from cache (0.79s)
[868/12395] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.09s)
Computing version for https://github.com/elegantchaos/SemanticVersion.git
Computed https://github.com/elegantchaos/SemanticVersion.git at 1.1.2 (0.49s)
Computing version for https://github.com/elegantchaos/Logger.git
Computed https://github.com/elegantchaos/Logger.git at 1.8.2 (0.48s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.50s)
Computing version for https://github.com/elegantchaos/XCTestExtensions.git
Computed https://github.com/elegantchaos/XCTestExtensions.git at 1.5.1 (0.52s)
Fetching https://github.com/elegantchaos/Matchable.git
[1/113] Fetching matchable
Fetched https://github.com/elegantchaos/Matchable.git from cache (0.19s)
Computing version for https://github.com/elegantchaos/Matchable.git
Computed https://github.com/elegantchaos/Matchable.git at 1.0.7 (0.48s)
Creating working copy for https://github.com/elegantchaos/XCTestExtensions.git
Working copy of https://github.com/elegantchaos/XCTestExtensions.git resolved at 1.5.1
Creating working copy for https://github.com/elegantchaos/SemanticVersion.git
Working copy of https://github.com/elegantchaos/SemanticVersion.git resolved at 1.1.2
Creating working copy for https://github.com/elegantchaos/Logger.git
Working copy of https://github.com/elegantchaos/Logger.git resolved at 1.8.2
Creating working copy for https://github.com/elegantchaos/Matchable.git
Working copy of https://github.com/elegantchaos/Matchable.git resolved at 1.0.7
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
Building for debugging...
[0/15] Write sources
[6/15] Write swift-version-24593BA9C3E375BF.txt
[8/29] Emitting module ArgumentParserToolInfo
[9/29] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/30] Compiling Logger PrintHandler.swift
[12/31] Compiling Logger NSLogHandler.swift
[13/31] Compiling Logger OSLogHandler.swift
[14/31] Compiling SemanticVersion SemanticVersion.swift
[14/32] Wrapping AST for ArgumentParserToolInfo for debugging
[16/65] Emitting module ArgumentParser
[17/69] Compiling ArgumentParser CollectionExtensions.swift
[18/69] Compiling ArgumentParser SequenceExtensions.swift
[19/69] Compiling ArgumentParser StringExtensions.swift
[20/69] Compiling ArgumentParser Tree.swift
[21/69] Compiling ArgumentParser ArgumentHelp.swift
[22/69] Compiling ArgumentParser CompletionKind.swift
[23/69] Compiling ArgumentParser Errors.swift
[24/69] Compiling ArgumentParser Flag.swift
[25/69] Compiling ArgumentParser NameSpecification.swift
[26/69] Compiling ArgumentParser BashCompletionsGenerator.swift
[27/69] Compiling ArgumentParser CompletionsGenerator.swift
[28/69] Compiling ArgumentParser FishCompletionsGenerator.swift
[29/69] Compiling ArgumentParser ZshCompletionsGenerator.swift
[30/69] Compiling ArgumentParser Argument.swift
[31/69] Compiling SemanticVersion SemanticVersion+Comparabl.swift
[32/69] Emitting module SemanticVersion
[36/70] Compiling Logger Manager.swift
[37/70] Emitting module Logger
[38/70] Compiling Logger ManagerSettings.swift
[39/70] Compiling Logger Handler.swift
[40/70] Compiling Logger UserDefaultsManagerSettings.swift
[40/71] Wrapping AST for SemanticVersion for debugging
[42/71] Wrapping AST for Logger for debugging
[44/71] Compiling ArgumentParser HelpCommand.swift
[45/71] Compiling ArgumentParser HelpGenerator.swift
[46/71] Compiling ArgumentParser MessageInfo.swift
[47/71] Compiling ArgumentParser UsageGenerator.swift
[48/71] Compiling ArgumentParser ParsableArguments.swift
[49/71] Compiling ArgumentParser ParsableArgumentsValidation.swift
[50/71] Compiling ArgumentParser ParsableCommand.swift
[51/71] Compiling ArgumentParser ArgumentDecoder.swift
[52/71] Compiling ArgumentParser ArgumentDefinition.swift
[53/71] Compiling ArgumentParser Option.swift
[54/71] Compiling ArgumentParser OptionGroup.swift
[55/71] Compiling ArgumentParser CommandConfiguration.swift
[56/71] Compiling ArgumentParser EnumerableFlag.swift
[57/71] Compiling ArgumentParser ExpressibleByArgument.swift
[58/71] Compiling ArgumentParser ArgumentSet.swift
[59/71] Compiling ArgumentParser CommandParser.swift
[60/71] Compiling ArgumentParser InputOrigin.swift
[61/71] Compiling ArgumentParser Name.swift
[62/71] Compiling ArgumentParser Parsed.swift
[63/71] Compiling ArgumentParser ParsedValues.swift
[64/71] Compiling ArgumentParser ParserError.swift
[65/71] Compiling ArgumentParser SplitArguments.swift
[66/71] Compiling ArgumentParser DumpHelpGenerator.swift
[67/72] Wrapping AST for ArgumentParser for debugging
[69/76] Emitting module CommandShell
/host/spi-builder-workspace/Sources/CommandShell/CommandShell.swift:13:13: warning: var 'commandShellExplicitInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | /// If set, this is the Info.plist dictionary that will be supplied
12 | /// to the shell. If not set, the shell will attempt to load it as a resource.
13 | private var commandShellExplicitInfo: [String:Any]?
   |             |- warning: var 'commandShellExplicitInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'commandShellExplicitInfo' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'commandShellExplicitInfo' 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 |
15 | public struct CommandShell<Engine: CommandEngine>: ParsableCommand {
[70/76] Compiling CommandShell CommandEngine.swift
[71/76] Compiling CommandShell CommandShell.swift
/host/spi-builder-workspace/Sources/CommandShell/CommandShell.swift:13:13: warning: var 'commandShellExplicitInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | /// If set, this is the Info.plist dictionary that will be supplied
12 | /// to the shell. If not set, the shell will attempt to load it as a resource.
13 | private var commandShellExplicitInfo: [String:Any]?
   |             |- warning: var 'commandShellExplicitInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'commandShellExplicitInfo' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'commandShellExplicitInfo' 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 |
15 | public struct CommandShell<Engine: CommandEngine>: ParsableCommand {
[72/76] Compiling CommandShell CommandShellOptions.swift
[73/77] Wrapping AST for CommandShell for debugging
[75/79] Emitting module CommandShellExample
[76/79] Compiling CommandShellExample main.swift
[77/80] Wrapping AST for CommandShellExample for debugging
[78/80] Write Objects.LinkFileList
[79/80] Linking CommandShellExample
Build complete! (28.69s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "logger",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.5",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/Logger.git"
    },
    {
      "identity" : "semanticversion",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/SemanticVersion.git"
    },
    {
      "identity" : "xctestextensions",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/XCTestExtensions.git"
    }
  ],
  "manifest_display_name" : "CommandShell",
  "name" : "CommandShell",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "CommandShell",
      "targets" : [
        "CommandShell"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CommandShellExample",
      "targets" : [
        "CommandShellExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CommandShellTests",
      "module_type" : "SwiftTarget",
      "name" : "CommandShellTests",
      "path" : "Tests/CommandShellTests",
      "product_dependencies" : [
        "XCTestExtensions"
      ],
      "sources" : [
        "CommandShellTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CommandShell",
        "CommandShellExample"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CommandShellExample",
      "module_type" : "SwiftTarget",
      "name" : "CommandShellExample",
      "path" : "Sources/CommandShellExample",
      "product_dependencies" : [
        "SemanticVersion"
      ],
      "product_memberships" : [
        "CommandShellExample"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "CommandShell"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "CommandShell",
      "module_type" : "SwiftTarget",
      "name" : "CommandShell",
      "path" : "Sources/CommandShell",
      "product_dependencies" : [
        "Logger",
        "SemanticVersion",
        "ArgumentParser"
      ],
      "product_memberships" : [
        "CommandShell",
        "CommandShellExample"
      ],
      "sources" : [
        "CommandEngine.swift",
        "CommandShell.swift",
        "CommandShellOptions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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.