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 CommandLine, reference 2.0.0 (9b5611), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 00:35:36 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/davidskrundz/commandline.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/davidskrundz/commandline
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at 9b56116 Swift 5 update
Cloned https://github.com/davidskrundz/commandline.git
Revision (git rev-parse @):
9b56116871b5cbd9f81455ab639fa1705efb5ac8
SUCCESS checkout https://github.com/davidskrundz/commandline.git at 2.0.0
Fetching https://github.com/DavidSkrundz/Collections.git
[1/203] Fetching collections
Fetched https://github.com/DavidSkrundz/Collections.git from cache (0.66s)
Computing version for https://github.com/DavidSkrundz/Collections.git
Computed https://github.com/DavidSkrundz/Collections.git at 2.0.0 (0.55s)
Creating working copy for https://github.com/DavidSkrundz/Collections.git
Working copy of https://github.com/DavidSkrundz/Collections.git resolved at 2.0.0
========================================
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": "commandline",
      "name": "CommandLine",
      "url": "https://github.com/davidskrundz/commandline.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/commandline",
      "dependencies": [
        {
          "identity": "collections",
          "name": "Collections",
          "url": "https://github.com/DavidSkrundz/Collections.git",
          "version": "2.0.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Collections",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/davidskrundz/commandline.git
[4/178] Fetching commandline
Fetched https://github.com/davidskrundz/commandline.git from cache (0.66s)
Fetching https://github.com/DavidSkrundz/Collections.git from cache
Fetched https://github.com/DavidSkrundz/Collections.git from cache (0.47s)
Computing version for https://github.com/DavidSkrundz/Collections.git
Computed https://github.com/DavidSkrundz/Collections.git at 2.0.0 (0.02s)
Creating working copy for https://github.com/DavidSkrundz/Collections.git
Working copy of https://github.com/DavidSkrundz/Collections.git resolved at 2.0.0
Creating working copy for https://github.com/davidskrundz/commandline.git
Working copy of https://github.com/davidskrundz/commandline.git resolved at 2.0.0 (9b56116)
warning: '.resolve-product-dependencies': dependency 'commandline' is not used by any target
Found 1 product dependencies
  - Collections
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/davidskrundz/commandline.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/7] Write sources
[2/7] Write swift-version--7754E27361AE5C74.txt
[4/17] Compiling Generator Generator+Sequence.swift
[5/17] Compiling Generator Generator+Peek.swift
[6/17] Compiling Generator Generator.swift
[7/17] Compiling Generator Generator+String.swift
[8/17] Compiling Generator Character.swift
[9/17] Emitting module Generator
[10/17] Compiling Generator Generator+Move.swift
[11/17] Compiling Generator Collection+Generator.swift
[12/17] Compiling Generator Generator+Iterator.swift
[13/17] Compiling Generator Generator+Previous.swift
[14/25] Compiling CommandLine Output.swift
[15/25] Compiling CommandLine StandardInOut.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandLine/StandardInOut.swift:29:12: warning: let 'standardIn' is not concurrency-safe because non-'Sendable' type 'StandardIn' may have shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 |
21 | public struct StandardIn {
   |               `- note: consider making struct 'StandardIn' conform to the 'Sendable' protocol
22 | 	fileprivate init() {}
23 |
   :
27 | }
28 |
29 | public let standardIn: StandardIn = StandardIn()
   |            |- warning: let 'standardIn' is not concurrency-safe because non-'Sendable' type 'StandardIn' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'standardIn' 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
30 | public let standardOut: StandardOut = StandardOut()
31 |
/Users/admin/builder/spi-builder-workspace/Sources/CommandLine/StandardInOut.swift:30:12: warning: let 'standardOut' is not concurrency-safe because non-'Sendable' type 'StandardOut' may have shared mutable state; this is an error in the Swift 6 language mode
 6 | import Foundation
 7 |
 8 | public struct StandardOut: Output {
   |               `- note: consider making struct 'StandardOut' conform to the 'Sendable' protocol
 9 | 	fileprivate init() {}
10 |
   :
28 |
29 | public let standardIn: StandardIn = StandardIn()
30 | public let standardOut: StandardOut = StandardOut()
   |            |- warning: let 'standardOut' is not concurrency-safe because non-'Sendable' type 'StandardOut' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'standardOut' 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
31 |
[16/25] Compiling CommandLine ParseError.swift
[17/25] Compiling CommandLine ANSI.swift
[18/25] Compiling CommandLine ArgumentParser.swift
[19/25] Compiling CommandLine Option.swift
[20/25] Emitting module CommandLine
/Users/admin/builder/spi-builder-workspace/Sources/CommandLine/StandardInOut.swift:29:12: warning: let 'standardIn' is not concurrency-safe because non-'Sendable' type 'StandardIn' may have shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 |
21 | public struct StandardIn {
   |               `- note: consider making struct 'StandardIn' conform to the 'Sendable' protocol
22 | 	fileprivate init() {}
23 |
   :
27 | }
28 |
29 | public let standardIn: StandardIn = StandardIn()
   |            |- warning: let 'standardIn' is not concurrency-safe because non-'Sendable' type 'StandardIn' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'standardIn' 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
30 | public let standardOut: StandardOut = StandardOut()
31 |
/Users/admin/builder/spi-builder-workspace/Sources/CommandLine/StandardInOut.swift:30:12: warning: let 'standardOut' is not concurrency-safe because non-'Sendable' type 'StandardOut' may have shared mutable state; this is an error in the Swift 6 language mode
 6 | import Foundation
 7 |
 8 | public struct StandardOut: Output {
   |               `- note: consider making struct 'StandardOut' conform to the 'Sendable' protocol
 9 | 	fileprivate init() {}
10 |
   :
28 |
29 | public let standardIn: StandardIn = StandardIn()
30 | public let standardOut: StandardOut = StandardOut()
   |            |- warning: let 'standardOut' is not concurrency-safe because non-'Sendable' type 'StandardOut' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'standardOut' 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
31 |
[21/25] Compiling CommandLine AutoTask.swift
[21/25] Write Objects.LinkFileList
[23/25] Archiving libsCommandLine.a
[24/25] Linking libdCommandLine.dylib
Build complete! (12.04s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "collections",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "2.1.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/DavidSkrundz/Collections.git"
    }
  ],
  "manifest_display_name" : "CommandLine",
  "name" : "CommandLine",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CommandLine",
      "targets" : [
        "CommandLine"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "sCommandLine",
      "targets" : [
        "CommandLine"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "dCommandLine",
      "targets" : [
        "CommandLine"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CommandLineTests",
      "module_type" : "SwiftTarget",
      "name" : "CommandLineTests",
      "path" : "Tests/CommandLineTests",
      "sources" : [
        "ArgumentParserTests.swift",
        "AutoTaskTests.swift"
      ],
      "target_dependencies" : [
        "CommandLine"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CommandLine",
      "module_type" : "SwiftTarget",
      "name" : "CommandLine",
      "path" : "Sources/CommandLine",
      "product_dependencies" : [
        "Generator"
      ],
      "product_memberships" : [
        "CommandLine",
        "sCommandLine",
        "dCommandLine"
      ],
      "sources" : [
        "ANSI.swift",
        "ArgumentParser.swift",
        "AutoTask.swift",
        "Option.swift",
        "Output.swift",
        "ParseError.swift",
        "StandardInOut.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.