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 SwiftKSUID, reference v0.1.0 (f203df), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 07:22:09 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/toffaletti/swiftksuid.git
Reference: v0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/toffaletti/swiftksuid
 * tag               v0.1.0     -> FETCH_HEAD
HEAD is now at f203dff use benchmark package
Cloned https://github.com/toffaletti/swiftksuid.git
Revision (git rev-parse @):
f203dff014024b2ed9e4da5b3f220eaf1124b5e0
SUCCESS checkout https://github.com/toffaletti/swiftksuid.git at v0.1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/toffaletti/swiftksuid.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
Building for debugging...
[0/10] Write sources
[4/10] Write BenchmarkBoilerplateGenerator-tool-entitlement.plist
[5/10] Compiling CSystem shims.c
[6/10] Write swift-version-117DEE11B69C53C9.txt
[8/33] Emitting module ArgumentParserToolInfo
[9/33] Compiling ArgumentParserToolInfo ToolInfo.swift
[10/33] Emitting module SystemPackage
[11/74] Compiling ArgumentParser InputKey.swift
[12/74] Compiling ArgumentParser CommandConfiguration.swift
[13/74] Compiling ArgumentParser InputOrigin.swift
[14/74] Compiling ArgumentParser Name.swift
[15/74] Compiling ArgumentParser Parsed.swift
[16/74] Compiling ArgumentParser ParsedValues.swift
[17/74] Compiling ArgumentParser NameSpecification.swift
[18/74] Compiling ArgumentParser Option.swift
[19/74] Compiling ArgumentParser OptionGroup.swift
[20/74] Compiling ArgumentParser AsyncParsableCommand.swift
[21/78] Compiling ArgumentParser BashCompletionsGenerator.swift
[22/78] Compiling ArgumentParser CompletionsGenerator.swift
[23/78] Compiling ArgumentParser FishCompletionsGenerator.swift
[24/78] Compiling ArgumentParser ZshCompletionsGenerator.swift
[25/78] Compiling ArgumentParser Argument.swift
[28/78] Compiling ArgumentParser ArgumentDefinition.swift
[29/78] Compiling ArgumentParser ArgumentSet.swift
[30/78] Compiling ArgumentParser CommandParser.swift
[37/78] Compiling ArgumentParser HelpGenerator.swift
[38/78] Compiling ArgumentParser MessageInfo.swift
[41/78] Compiling ArgumentParser UsageGenerator.swift
[42/78] Compiling ArgumentParser CollectionExtensions.swift
[43/78] Emitting module ArgumentParser
[44/78] Compiling ArgumentParser Platform.swift
[45/78] Compiling ArgumentParser SequenceExtensions.swift
[46/78] Compiling ArgumentParser StringExtensions.swift
[47/78] Compiling ArgumentParser Tree.swift
[51/78] Compiling ArgumentParser ArgumentHelp.swift
[52/78] Compiling ArgumentParser ArgumentVisibility.swift
[53/78] Compiling ArgumentParser CompletionKind.swift
[54/78] Compiling ArgumentParser Errors.swift
[55/78] Compiling ArgumentParser Flag.swift
[56/78] Compiling ArgumentParser ParserError.swift
[57/78] Compiling ArgumentParser SplitArguments.swift
[58/78] Compiling ArgumentParser DumpHelpGenerator.swift
[59/78] Compiling ArgumentParser HelpCommand.swift
[60/78] Compiling ArgumentParser ParsableArguments.swift
[61/78] Compiling ArgumentParser ParsableArgumentsValidation.swift
[62/78] Compiling ArgumentParser ParsableCommand.swift
[63/78] Compiling ArgumentParser ArgumentDecoder.swift
[73/78] Compiling ArgumentParser CommandGroup.swift
[74/78] Compiling ArgumentParser EnumerableFlag.swift
[75/78] Compiling ArgumentParser ExpressibleByArgument.swift
[76/80] Compiling BenchmarkBoilerplateGenerator BenchmarkBoilerplateGenerator.swift
[77/80] Emitting module BenchmarkBoilerplateGenerator
[77/80] Write Objects.LinkFileList
[78/80] Linking BenchmarkBoilerplateGenerator-tool
[79/80] Applying BenchmarkBoilerplateGenerator-tool
Build of product 'BenchmarkBoilerplateGenerator' complete! (17.84s)
[1/1] Compiling plugin BenchmarkCommandPlugin
[2/2] Compiling plugin BenchmarkPlugin
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/25] Write sources
[11/25] Write BenchmarkSwiftKSUID-entitlement.plist
[12/25] Write sources
[14/25] Compiling CSystem shims.c
[15/25] Compiling CDarwinOperatingSystemStats CDarwinOperatingSystemStats.c
[16/25] Compiling _NumericsShims _NumericsShims.c
[17/25] Write swift-version-117DEE11B69C53C9.txt
[18/25] Compiling _AtomicsShims.c
[19/25] Compiling SwiftRuntimeHooks shims.c
[20/25] Generating plugin support files
[21/25] Write sources
[23/80] Compiling RealModule Real.swift
[24/81] Compiling RealModule RealFunctions.swift
[25/81] Compiling Atomics AtomicStorage.swift
[26/81] Compiling Atomics AtomicValue.swift
[27/83] Compiling Atomics ManagedAtomic.swift
[28/83] Compiling Atomics ManagedAtomicLazyReference.swift
[29/83] Compiling Atomics UnsafeAtomic.swift
[30/83] Compiling Atomics UnsafeAtomicLazyReference.swift
[31/83] Compiling RealModule Float80+Real.swift
[32/83] Compiling RealModule Float+Real.swift
[33/83] Compiling RealModule Double+Real.swift
[34/83] Compiling RealModule ElementaryFunctions.swift
[35/83] Emitting module RealModule
[36/83] Compiling RealModule AlgebraicField.swift
[37/83] Compiling RealModule ApproximateEquality.swift
[38/83] Compiling RealModule AugmentedArithmetic.swift
[39/83] Compiling RealModule Float16+Real.swift
[40/88] Compiling ArgumentParserToolInfo ToolInfo.swift
[41/88] Emitting module ArgumentParserToolInfo
[42/88] Compiling Atomics AtomicMemoryOrderings.swift
[43/88] Compiling Atomics DoubleWord.swift
[44/88] Compiling Atomics IntegerOperations.swift
[45/88] Compiling Atomics Unmanaged extensions.swift
[46/127] Compiling ArgumentParser HelpCommand.swift
[47/127] Compiling ArgumentParser HelpGenerator.swift
[48/127] Compiling ArgumentParser SplitArguments.swift
[49/127] Compiling ArgumentParser DumpHelpGenerator.swift
[50/127] Compiling ArgumentParser AsyncParsableCommand.swift
[51/127] Compiling ArgumentParser CommandConfiguration.swift
[52/129] Compiling ArgumentParser Option.swift
[53/129] Compiling ArgumentParser OptionGroup.swift
[56/129] Compiling ArgumentParser CollectionExtensions.swift
[57/129] Compiling ArgumentParser NameSpecification.swift
[58/129] Compiling ArgumentParser MessageInfo.swift
[59/129] Compiling ArgumentParser UsageGenerator.swift
[60/129] Compiling ArgumentParser CommandGroup.swift
[61/129] Compiling ArgumentParser EnumerableFlag.swift
[62/129] Compiling ComplexModule Differentiable.swift
[63/129] Compiling ComplexModule Complex.swift
[64/129] Compiling ComplexModule ElementaryFunctions.swift
[65/129] Compiling ComplexModule Arithmetic.swift
[66/129] Emitting module SystemPackage
[67/129] Compiling ArgumentParser BashCompletionsGenerator.swift
[68/129] Compiling ArgumentParser CompletionsGenerator.swift
[69/129] Compiling ArgumentParser FishCompletionsGenerator.swift
[70/129] Compiling ArgumentParser ZshCompletionsGenerator.swift
[71/129] Compiling ArgumentParser Argument.swift
[72/129] Compiling ArgumentParser ParserError.swift
[75/129] Emitting module ComplexModule
[76/129] Compiling SystemPackage Util.swift
[77/129] Compiling SystemPackage UtilConsumers.swift
[78/131] Compiling Numerics Numerics.swift
[79/131] Emitting module Numerics
[80/133] Emitting module Atomics
[96/137] Emitting module ArgumentParser
[97/137] Compiling SwiftKSUID Base62.swift
[98/137] Emitting module SwiftKSUID
[99/137] Compiling SwiftKSUID SwiftKSUID.swift
[100/137] Compiling ArgumentParser Platform.swift
[101/137] Compiling ArgumentParser SequenceExtensions.swift
[102/137] Compiling ArgumentParser StringExtensions.swift
[103/137] Compiling ArgumentParser Tree.swift
[109/137] Compiling ArgumentParser ArgumentVisibility.swift
[110/137] Compiling ArgumentParser CompletionKind.swift
[111/137] Compiling ArgumentParser Errors.swift
[112/137] Compiling ArgumentParser Flag.swift
[113/137] Compiling ArgumentParser InputOrigin.swift
[114/137] Compiling ArgumentParser Name.swift
[115/137] Compiling ArgumentParser Parsed.swift
[116/137] Compiling ArgumentParser ParsedValues.swift
[117/137] Compiling ArgumentParser ParsableArguments.swift
[118/137] Compiling ArgumentParser ParsableArgumentsValidation.swift
[119/137] Compiling ArgumentParser ParsableCommand.swift
[120/137] Compiling ArgumentParser ArgumentDecoder.swift
[121/137] Compiling ArgumentParser ArgumentDefinition.swift
[122/137] Compiling ArgumentParser ArgumentSet.swift
[123/137] Compiling ArgumentParser CommandParser.swift
[124/137] Compiling ArgumentParser InputKey.swift
[129/137] Compiling Histogram Histogram.swift
[130/137] Emitting module Histogram
[135/165] Compiling Benchmark OperatingSystemStatsProducer+Linux.swift
[136/165] Compiling Benchmark Progress.swift
[137/165] Compiling Benchmark ProgressElements.swift
[138/167] Compiling Benchmark BenchmarkRunner.swift
[139/167] Compiling Benchmark BenchmarkThresholds+Defaults.swift
[140/167] Compiling Benchmark BenchmarkThresholds.swift
[141/167] Compiling Benchmark Benchmark.swift
[142/167] Compiling Benchmark BenchmarkClock.swift
[143/167] Compiling Benchmark BenchmarkExecutor+Extensions.swift
[144/167] Compiling Benchmark MallocStats.swift
[145/167] Compiling Benchmark MallocStatsProducer+jemalloc.swift
[146/167] Compiling Benchmark NIOLock.swift
[147/167] Compiling Benchmark lock.swift
[148/167] Compiling Benchmark OperatingSystemStats.swift
[149/167] Compiling Benchmark OperatingSystemStatsProducer+Darwin.swift
[150/167] Compiling Benchmark Utilities.swift
[151/167] Compiling Benchmark Statistics.swift
[152/167] Compiling Benchmark ARCStats.swift
[153/167] Compiling Benchmark ARCStatsProducer.swift
[154/167] Compiling Benchmark Benchmark+ConvenienceInitializers.swift
[155/167] Emitting module Benchmark
[156/167] Compiling Benchmark BenchmarkExecutor.swift
[157/167] Compiling Benchmark BenchmarkInternals.swift
[158/167] Compiling Benchmark BenchmarkMetric+Defaults.swift
[159/167] Compiling Benchmark BenchmarkMetric.swift
[160/167] Compiling Benchmark BenchmarkResult.swift
[161/167] Compiling Benchmark BenchmarkRunner+ReadWrite.swift
[162/167] Compiling Benchmark Blackhole.swift
[163/167] Compiling Benchmark Int+Extensions.swift
[164/167] Compiling Benchmark MallocStats+jemalloc-support.swift
[165/170] Compiling BenchmarkSwiftKSUID __BenchmarkBoilerplate.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Benchmarks/BenchmarkSwiftKSUID/BenchmarkSwiftKSUID.swift:4:5: warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftKSUID
 3 |
 4 | let benchmarks = {
   |     |- warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'benchmarks' 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
 5 | 	Benchmark("BenchmarkCreateKSUID") { benchmark in
 6 | 		for _ in benchmark.scaledIterations {
[166/170] Compiling BenchmarkSwiftKSUID BenchmarkSwiftKSUID.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Benchmarks/BenchmarkSwiftKSUID/BenchmarkSwiftKSUID.swift:4:5: warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftKSUID
 3 |
 4 | let benchmarks = {
   |     |- warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'benchmarks' 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
 5 | 	Benchmark("BenchmarkCreateKSUID") { benchmark in
 6 | 		for _ in benchmark.scaledIterations {
[167/170] Emitting module BenchmarkSwiftKSUID
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Benchmarks/BenchmarkSwiftKSUID/BenchmarkSwiftKSUID.swift:4:5: warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftKSUID
 3 |
 4 | let benchmarks = {
   |     |- warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'benchmarks' 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
 5 | 	Benchmark("BenchmarkCreateKSUID") { benchmark in
 6 | 		for _ in benchmark.scaledIterations {
[167/170] Write Objects.LinkFileList
[168/170] Linking BenchmarkSwiftKSUID
[169/170] Applying BenchmarkSwiftKSUID
Build complete! (75.91s)
Fetching https://github.com/apple/swift-testing.git
[1/12878] Fetching swift-testing
Fetched https://github.com/apple/swift-testing.git from cache (1.52s)
Fetching https://github.com/ordo-one/package-benchmark
Fetching https://github.com/apple/swift-syntax.git
[1/5119] Fetching package-benchmark
[5120/70182] Fetching package-benchmark, swift-syntax
Fetched https://github.com/ordo-one/package-benchmark from cache (3.25s)
Fetched https://github.com/apple/swift-syntax.git from cache (3.25s)
Computing version for https://github.com/ordo-one/package-benchmark
warning: 'package-benchmark': Building for SPI@macOS, disabling Jemalloc
Computed https://github.com/ordo-one/package-benchmark at 1.25.0 (3.35s)
Fetching https://github.com/ordo-one/TextTable
Fetching https://github.com/HdrHistogram/hdrhistogram-swift
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-system
[1/203] Fetching texttable
[194/1772] Fetching texttable, swift-atomics
[242/2121] Fetching texttable, swift-atomics, hdrhistogram-swift
[309/5759] Fetching texttable, swift-atomics, hdrhistogram-swift, swift-system
[2761/17928] Fetching texttable, swift-atomics, hdrhistogram-swift, swift-system, swift-argument-parser
Fetched https://github.com/apple/swift-atomics from cache (1.15s)
Fetched https://github.com/ordo-one/TextTable from cache (1.15s)
Fetched https://github.com/apple/swift-system from cache (1.15s)
[593/12518] Fetching hdrhistogram-swift, swift-argument-parser
Fetched https://github.com/HdrHistogram/hdrhistogram-swift from cache (3.99s)
Fetched https://github.com/apple/swift-argument-parser from cache (3.99s)
Computing version for https://github.com/ordo-one/TextTable
Computed https://github.com/ordo-one/TextTable at 0.0.2 (0.68s)
Computing version for https://github.com/HdrHistogram/hdrhistogram-swift
Computed https://github.com/HdrHistogram/hdrhistogram-swift at 0.1.2 (0.64s)
Fetching https://github.com/apple/swift-numerics
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.11s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.67s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.53s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.3.2 (0.50s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.69s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 600.0.0 (0.70s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 600.0.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.3.2
Creating working copy for https://github.com/apple/swift-testing.git
Working copy of https://github.com/apple/swift-testing.git resolved at 0.9.0 (c392dad)
Creating working copy for https://github.com/HdrHistogram/hdrhistogram-swift
Working copy of https://github.com/HdrHistogram/hdrhistogram-swift resolved at 0.1.2
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Creating working copy for https://github.com/ordo-one/TextTable
Working copy of https://github.com/ordo-one/TextTable resolved at 0.0.2
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/ordo-one/package-benchmark
Working copy of https://github.com/ordo-one/package-benchmark resolved at 1.25.0
warning: 'package-benchmark': Building for SPI@macOS, disabling Jemalloc
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-testing",
      "requirement" : {
        "revision" : [
          "0.9.0"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-testing.git"
    },
    {
      "identity" : "package-benchmark",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ordo-one/package-benchmark"
    }
  ],
  "manifest_display_name" : "SwiftKSUID",
  "name" : "SwiftKSUID",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftKSUID",
      "targets" : [
        "SwiftKSUID"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "BenchmarkSwiftKSUID",
      "targets" : [
        "BenchmarkSwiftKSUID"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftKSUIDTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftKSUIDTests",
      "path" : "Tests/SwiftKSUIDTests",
      "product_dependencies" : [
        "Testing"
      ],
      "sources" : [
        "Scaffolding.swift",
        "SwiftKSUIDTests.swift"
      ],
      "target_dependencies" : [
        "SwiftKSUID"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftKSUID",
      "module_type" : "SwiftTarget",
      "name" : "SwiftKSUID",
      "path" : "Sources/SwiftKSUID",
      "product_memberships" : [
        "SwiftKSUID",
        "BenchmarkSwiftKSUID"
      ],
      "sources" : [
        "Base62.swift",
        "SwiftKSUID.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BenchmarkSwiftKSUID",
      "module_type" : "SwiftTarget",
      "name" : "BenchmarkSwiftKSUID",
      "path" : "Benchmarks/BenchmarkSwiftKSUID",
      "product_dependencies" : [
        "Benchmark",
        "BenchmarkPlugin"
      ],
      "product_memberships" : [
        "BenchmarkSwiftKSUID"
      ],
      "sources" : [
        "BenchmarkSwiftKSUID.swift"
      ],
      "target_dependencies" : [
        "SwiftKSUID"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.10"
}
Done.