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 Benchmarking, reference v1.0.0 (6a224c), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 23:09:07 UTC.

Swift 6 data race errors: 1

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/attaswift/Benchmarking.git
Reference: v1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/attaswift/Benchmarking
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at 6a224c1 Update README.md
Cloned https://github.com/attaswift/Benchmarking.git
Revision (git rev-parse @):
6a224c19f21d5e28198f74f5c679c0c55335688c
SUCCESS checkout https://github.com/attaswift/Benchmarking.git at v1.0.0
Fetching https://github.com/attaswift/OptionParser
[1/82] Fetching optionparser
Fetched https://github.com/attaswift/OptionParser from cache (0.71s)
Computing version for https://github.com/attaswift/OptionParser
Computed https://github.com/attaswift/OptionParser at 1.0.0 (0.65s)
Creating working copy for https://github.com/attaswift/OptionParser
Working copy of https://github.com/attaswift/OptionParser resolved at 1.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": "benchmarking",
      "name": "Benchmarking",
      "url": "https://github.com/attaswift/Benchmarking.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Benchmarking",
      "dependencies": [
        {
          "identity": "optionparser",
          "name": "OptionParser",
          "url": "https://github.com/attaswift/OptionParser",
          "version": "1.0.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OptionParser",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/attaswift/Benchmarking.git
[1/65] Fetching benchmarking
Fetched https://github.com/attaswift/Benchmarking.git from cache (0.65s)
Fetching https://github.com/attaswift/OptionParser from cache
Fetched https://github.com/attaswift/OptionParser from cache (0.48s)
Computing version for https://github.com/attaswift/OptionParser
Computed https://github.com/attaswift/OptionParser at 1.0.0 (0.02s)
Creating working copy for https://github.com/attaswift/OptionParser
Working copy of https://github.com/attaswift/OptionParser resolved at 1.0.0
Creating working copy for https://github.com/attaswift/Benchmarking.git
Working copy of https://github.com/attaswift/Benchmarking.git resolved at v1.0.0 (6a224c1)
warning: '.resolve-product-dependencies': dependency 'benchmarking' is not used by any target
Found 1 product dependencies
  - OptionParser
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/attaswift/Benchmarking.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
Building for debugging...
[0/6] Write sources
[3/6] Write swift-version--7754E27361AE5C74.txt
[5/18] Compiling OptionParser Syntax.swift
[6/18] Compiling OptionParser ParseContext.swift
[7/18] Compiling OptionParser Option.swift
[8/18] Compiling OptionParser Help.swift
[9/18] Emitting module BenchmarkIPC
[10/18] Compiling BenchmarkIPC BenchmarkIPC.swift
[11/18] Compiling OptionParser OptionParser.swift
[12/18] Compiling OptionParser Parameter.swift
[13/18] Compiling OptionParser OptionValue.swift
[14/18] Emitting module OptionParser
[15/18] Compiling OptionParser Command.swift
[16/18] Compiling OptionParser Argument.swift
[16/18] Write Objects.LinkFileList
[17/18] Archiving libOptionParser.a
[19/27] Emitting module Benchmarking
/Users/admin/builder/spi-builder-workspace/Benchmarking/Complain.swift:12:13: warning: var 'standardErrorStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |     }
11 | }
12 | private var standardErrorStream = ErrorStream()
   |             |- warning: var 'standardErrorStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'standardErrorStream' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'standardErrorStream' 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
13 |
14 | public func complain(_ things: Any..., separator: String = " ", terminator: String = "\n") {
/Users/admin/builder/spi-builder-workspace/Benchmarking/Run.swift:9:1: warning: extension declares a conformance of imported type 'OutputFormat' to imported protocol 'OptionValue'; this will not behave correctly if the owners of 'BenchmarkIPC' introduce this conformance in the future
  7 | import BenchmarkIPC
  8 |
  9 | extension RunOptions.OutputFormat: OptionValue {}
    | |- warning: extension declares a conformance of imported type 'OutputFormat' to imported protocol 'OptionValue'; this will not behave correctly if the owners of 'BenchmarkIPC' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 10 |
 11 | struct AttabenchOptions {
/Users/admin/builder/spi-builder-workspace/Benchmarking/Shuffle.swift:31:40: warning: 'IndexDistance' is deprecated: all index distances are now of type Int
29 | }
30 |
31 | extension RandomAccessCollection where IndexDistance: FixedWidthInteger {
   |                                        `- warning: 'IndexDistance' is deprecated: all index distances are now of type Int
32 |     public func randomElement() -> Element {
33 |         precondition(count > 0)
/Users/admin/builder/spi-builder-workspace/Benchmarking/Shuffle.swift:40:65: warning: 'IndexDistance' is deprecated: all index distances are now of type Int
38 | }
39 |
40 | extension RandomAccessCollection where Self: MutableCollection, IndexDistance: FixedWidthInteger {
   |                                                                 `- warning: 'IndexDistance' is deprecated: all index distances are now of type Int
41 |     public mutating func shuffle() {
42 |         for i in indices {
[20/27] Compiling Benchmarking Complain.swift
/Users/admin/builder/spi-builder-workspace/Benchmarking/Complain.swift:12:13: warning: var 'standardErrorStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |     }
11 | }
12 | private var standardErrorStream = ErrorStream()
   |             |- warning: var 'standardErrorStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'standardErrorStream' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'standardErrorStream' 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
13 |
14 | public func complain(_ things: Any..., separator: String = " ", terminator: String = "\n") {
[21/27] Compiling Benchmarking InputGenerator.swift
[22/27] Compiling Benchmarking Benchmark.swift
[23/27] Compiling Benchmarking Shuffle.swift
/Users/admin/builder/spi-builder-workspace/Benchmarking/Shuffle.swift:31:40: warning: 'IndexDistance' is deprecated: all index distances are now of type Int
29 | }
30 |
31 | extension RandomAccessCollection where IndexDistance: FixedWidthInteger {
   |                                        `- warning: 'IndexDistance' is deprecated: all index distances are now of type Int
32 |     public func randomElement() -> Element {
33 |         precondition(count > 0)
/Users/admin/builder/spi-builder-workspace/Benchmarking/Shuffle.swift:40:65: warning: 'IndexDistance' is deprecated: all index distances are now of type Int
38 | }
39 |
40 | extension RandomAccessCollection where Self: MutableCollection, IndexDistance: FixedWidthInteger {
   |                                                                 `- warning: 'IndexDistance' is deprecated: all index distances are now of type Int
41 |     public mutating func shuffle() {
42 |         for i in indices {
/Users/admin/builder/spi-builder-workspace/Benchmarking/Shuffle.swift:34:27: warning: 'IndexDistance' is deprecated: all index distances are now of type Int
32 |     public func randomElement() -> Element {
33 |         precondition(count > 0)
34 |         let offset = Self.IndexDistance.random(below: count)
   |                           `- warning: 'IndexDistance' is deprecated: all index distances are now of type Int
35 |         let index = self.index(self.startIndex, offsetBy: offset)
36 |         return self[index]
/Users/admin/builder/spi-builder-workspace/Benchmarking/Shuffle.swift:43:26: warning: 'IndexDistance' is deprecated: all index distances are now of type Int
41 |     public mutating func shuffle() {
42 |         for i in indices {
43 |             let offset = IndexDistance.random(below: self.distance(from: i, to: self.endIndex))
   |                          `- warning: 'IndexDistance' is deprecated: all index distances are now of type Int
44 |             let j = self.index(i, offsetBy: offset)
45 |             if i != j {
[24/27] Compiling Benchmarking Output.swift
[25/27] Compiling Benchmarking Noop.swift
[26/27] Compiling Benchmarking Run.swift
/Users/admin/builder/spi-builder-workspace/Benchmarking/Run.swift:9:1: warning: extension declares a conformance of imported type 'OutputFormat' to imported protocol 'OptionValue'; this will not behave correctly if the owners of 'BenchmarkIPC' introduce this conformance in the future
  7 | import BenchmarkIPC
  8 |
  9 | extension RunOptions.OutputFormat: OptionValue {}
    | |- warning: extension declares a conformance of imported type 'OutputFormat' to imported protocol 'OptionValue'; this will not behave correctly if the owners of 'BenchmarkIPC' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 10 |
 11 | struct AttabenchOptions {
/Users/admin/builder/spi-builder-workspace/Benchmarking/Run.swift:70:13: warning: variable 'sizes' was never mutated; consider changing to 'let' constant
 68 |             tasks = taskTitles.map { self.tasks[$0]! }
 69 |         }
 70 |         var sizes = options.sizes
    |             `- warning: variable 'sizes' was never mutated; consider changing to 'let' constant
 71 |         guard !sizes.isEmpty else {
 72 |             throw OptionError("Need at least one size")
[27/27] Compiling Benchmarking Timer.swift
Build complete! (19.97s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "optionparser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/attaswift/OptionParser"
    }
  ],
  "manifest_display_name" : "Benchmarking",
  "name" : "Benchmarking",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Benchmarking",
      "targets" : [
        "Benchmarking",
        "BenchmarkIPC"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4"
  ],
  "targets" : [
    {
      "c99name" : "Benchmarking",
      "module_type" : "SwiftTarget",
      "name" : "Benchmarking",
      "path" : "Benchmarking",
      "product_dependencies" : [
        "OptionParser"
      ],
      "product_memberships" : [
        "Benchmarking"
      ],
      "sources" : [
        "Benchmark.swift",
        "Complain.swift",
        "InputGenerator.swift",
        "Noop.swift",
        "Output.swift",
        "Run.swift",
        "Shuffle.swift",
        "Timer.swift"
      ],
      "target_dependencies" : [
        "BenchmarkIPC"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BenchmarkIPC",
      "module_type" : "SwiftTarget",
      "name" : "BenchmarkIPC",
      "path" : "BenchmarkIPC",
      "product_memberships" : [
        "Benchmarking"
      ],
      "sources" : [
        "BenchmarkIPC.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.