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 ActionDSL, reference main (d52ebb), with Swift 6.0 for macOS (SPM) on 14 Sep 2024 20:37:28 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/StellarTools/ActionDSL.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/StellarTools/ActionDSL
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d52ebb6 Merge pull request #1 from StellarTools/move-ActionDSL
Cloned https://github.com/StellarTools/ActionDSL.git
Revision (git rev-parse @):
d52ebb65949f31ec95213d2bff6342a8b39e370e
SUCCESS checkout https://github.com/StellarTools/ActionDSL.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/StellarTools/ActionDSL.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/5] Write sources
[4/5] Write swift-version-117DEE11B69C53C9.txt
[6/7] Emitting module ArgumentParserToolInfo
[7/7] Compiling ArgumentParserToolInfo ToolInfo.swift
[8/46] Compiling ArgumentParser InputOrigin.swift
[9/46] Compiling ArgumentParser Name.swift
[10/46] Compiling ArgumentParser Parsed.swift
[11/46] Compiling ArgumentParser ParsedValues.swift
[12/46] Compiling ArgumentParser NameSpecification.swift
[13/46] Compiling ArgumentParser Option.swift
[14/46] Compiling ArgumentParser OptionGroup.swift
[15/46] Compiling ArgumentParser AsyncParsableCommand.swift
[16/50] Compiling ArgumentParser CommandConfiguration.swift
[17/50] Compiling ArgumentParser CommandGroup.swift
[18/50] Compiling ArgumentParser EnumerableFlag.swift
[19/50] Compiling ArgumentParser ExpressibleByArgument.swift
[20/50] Compiling ArgumentParser ArgumentHelp.swift
[21/50] Compiling ArgumentParser ArgumentVisibility.swift
[22/50] Compiling ArgumentParser CompletionKind.swift
[23/50] Compiling ArgumentParser Errors.swift
[24/50] Compiling ArgumentParser Flag.swift
[25/50] Compiling ArgumentParser BashCompletionsGenerator.swift
[26/50] Compiling ArgumentParser CompletionsGenerator.swift
[27/50] Compiling ArgumentParser FishCompletionsGenerator.swift
[28/50] Compiling ArgumentParser ZshCompletionsGenerator.swift
[29/50] Compiling ArgumentParser Argument.swift
[30/50] Compiling ArgumentParser ParsableArguments.swift
[31/50] Compiling ArgumentParser ParsableArgumentsValidation.swift
[32/50] Compiling ArgumentParser ParsableCommand.swift
[33/50] Compiling ArgumentParser ArgumentDecoder.swift
[34/50] Emitting module ArgumentParser
[35/50] Compiling ArgumentParser ArgumentDefinition.swift
[36/50] Compiling ArgumentParser ArgumentSet.swift
[37/50] Compiling ArgumentParser CommandParser.swift
[38/50] Compiling ArgumentParser InputKey.swift
[39/50] Compiling ArgumentParser Platform.swift
[40/50] Compiling ArgumentParser SequenceExtensions.swift
[41/50] Compiling ArgumentParser StringExtensions.swift
[42/50] Compiling ArgumentParser Tree.swift
[43/50] Compiling ArgumentParser ParserError.swift
[44/50] Compiling ArgumentParser SplitArguments.swift
[45/50] Compiling ArgumentParser DumpHelpGenerator.swift
[46/50] Compiling ArgumentParser HelpCommand.swift
[47/50] Compiling ArgumentParser HelpGenerator.swift
[48/50] Compiling ArgumentParser MessageInfo.swift
[49/50] Compiling ArgumentParser UsageGenerator.swift
[50/50] Compiling ArgumentParser CollectionExtensions.swift
[51/59] Compiling ActionDSL ActionProtocol.swift
[52/59] Compiling ActionDSL ActionParamProtocol.swift
[53/59] Compiling ActionDSL ActionCLIBaseCommand.swift
[54/59] Emitting module ActionDSL
/Users/admin/builder/spi-builder-workspace/Sources/ActionDSL/Core/EnvironmentManager.swift:9:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |     private var storage = [String: String]()
 8 |
 9 |     static var shared = EnvironmentManager()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' 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
10 |
11 |     func addVariable(_ envValue: String, for key: String) {
[55/59] Compiling ActionDSL CodingKeys.swift
[56/59] Compiling ActionDSL ActionCLIProtocol.swift
[57/59] Compiling ActionDSL ActionConfigurationProtocol.swift
[58/59] Compiling ActionDSL EnvironmentManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/ActionDSL/Core/EnvironmentManager.swift:9:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |     private var storage = [String: String]()
 8 |
 9 |     static var shared = EnvironmentManager()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' 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
10 |
11 |     func addVariable(_ envValue: String, for key: String) {
[59/59] Compiling ActionDSL ActionParam.swift
/Users/admin/builder/spi-builder-workspace/Sources/ActionDSL/Core/EnvironmentManager.swift:9:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |     private var storage = [String: String]()
 8 |
 9 |     static var shared = EnvironmentManager()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' 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
10 |
11 |     func addVariable(_ envValue: String, for key: String) {
Build complete! (15.37s)
Fetching https://github.com/apple/swift-argument-parser.git
[1/12158] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.58s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.0 (0.52s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    }
  ],
  "manifest_display_name" : "ActionDSL",
  "name" : "ActionDSL",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ActionDSL",
      "targets" : [
        "ActionDSL"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ActionDSLTests",
      "module_type" : "SwiftTarget",
      "name" : "ActionDSLTests",
      "path" : "Tests/ActionDSLTests",
      "sources" : [
        "ActionDSLTests.swift"
      ],
      "target_dependencies" : [
        "ActionDSL"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ActionDSL",
      "module_type" : "SwiftTarget",
      "name" : "ActionDSL",
      "path" : "Sources/ActionDSL",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "ActionDSL"
      ],
      "sources" : [
        "Core/ActionCLIBaseCommand.swift",
        "Core/CodingKeys.swift",
        "Core/EnvironmentManager.swift",
        "PropertyWrappers/ActionParam.swift",
        "Protocols/ActionCLIProtocol.swift",
        "Protocols/ActionConfigurationProtocol.swift",
        "Protocols/ActionParamProtocol.swift",
        "Protocols/ActionProtocol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.