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 RomanNumerals, reference 1.0.0 (a58be1), with Swift 6.1 for Linux on 26 Apr 2025 12:21:33 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/danielctull/RomanNumerals.git
Reference: 1.0.0
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/danielctull/RomanNumerals
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at a58be11 Run tests on the Swift 5.2 release
Cloned https://github.com/danielctull/RomanNumerals.git
Revision (git rev-parse @):
a58be11f11083c5aeef718ebd536f55d8f983d0e
SUCCESS checkout https://github.com/danielctull/RomanNumerals.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/danielctull/RomanNumerals.git
https://github.com/danielctull/RomanNumerals.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    }
  ],
  "manifest_display_name" : "RomanNumerals",
  "name" : "RomanNumerals",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RomanNumerals",
      "targets" : [
        "RomanNumerals"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "roman",
      "targets" : [
        "RomanNumeralsTool"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RomanNumeralsTool",
      "module_type" : "SwiftTarget",
      "name" : "RomanNumeralsTool",
      "path" : "Sources/RomanNumeralsTool",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "roman"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "RomanNumerals"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "RomanNumeralsTests",
      "module_type" : "SwiftTarget",
      "name" : "RomanNumeralsTests",
      "path" : "Tests/RomanNumeralsTests",
      "sources" : [
        "RomanNumeralTests.swift"
      ],
      "target_dependencies" : [
        "RomanNumerals"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RomanNumerals",
      "module_type" : "SwiftTarget",
      "name" : "RomanNumerals",
      "path" : "Sources/RomanNumerals",
      "product_memberships" : [
        "RomanNumerals",
        "roman"
      ],
      "sources" : [
        "RomanNumeral.swift",
        "Symbol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
[1/14937] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.73s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (1.19s)
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/11] Write sources
[4/11] Write swift-version-24593BA9C3E375BF.txt
[6/16] Compiling RomanNumerals Symbol.swift
[7/16] Emitting module ArgumentParserToolInfo
[8/16] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/17] Wrapping AST for ArgumentParserToolInfo for debugging
[11/51] Emitting module RomanNumerals
/host/spi-builder-workspace/Sources/RomanNumerals/RomanNumeral.swift:119:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'RomanNumeral' may have shared mutable state; this is an error in the Swift 6 language mode
  1 |
  2 | public struct RomanNumeral: Equatable {
    |               `- note: consider making struct 'RomanNumeral' conform to the 'Sendable' protocol
  3 |     public let symbols: [Symbol]
  4 | }
    :
117 | extension RomanNumeral: AdditiveArithmetic {
118 |
119 |     public static let zero = RomanNumeral(symbols: [])
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'RomanNumeral' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 |
121 |     public static func += (lhs: inout RomanNumeral, rhs: RomanNumeral) {
[12/51] Compiling RomanNumerals RomanNumeral.swift
/host/spi-builder-workspace/Sources/RomanNumerals/RomanNumeral.swift:119:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'RomanNumeral' may have shared mutable state; this is an error in the Swift 6 language mode
  1 |
  2 | public struct RomanNumeral: Equatable {
    |               `- note: consider making struct 'RomanNumeral' conform to the 'Sendable' protocol
  3 |     public let symbols: [Symbol]
  4 | }
    :
117 | extension RomanNumeral: AdditiveArithmetic {
118 |
119 |     public static let zero = RomanNumeral(symbols: [])
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'RomanNumeral' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 |
121 |     public static func += (lhs: inout RomanNumeral, rhs: RomanNumeral) {
[13/52] Wrapping AST for RomanNumerals for debugging
[15/52] Emitting module ArgumentParser
[16/56] Compiling ArgumentParser Option.swift
[17/56] Compiling ArgumentParser OptionGroup.swift
[18/56] Compiling ArgumentParser CommandConfiguration.swift
[19/56] Compiling ArgumentParser EnumerableFlag.swift
[20/56] Compiling ArgumentParser ExpressibleByArgument.swift
[21/56] Compiling ArgumentParser CollectionExtensions.swift
[22/56] Compiling ArgumentParser SequenceExtensions.swift
[23/56] Compiling ArgumentParser StringExtensions.swift
[24/56] Compiling ArgumentParser Tree.swift
[25/56] Compiling ArgumentParser ArgumentHelp.swift
[26/56] Compiling ArgumentParser CompletionKind.swift
[27/56] Compiling ArgumentParser Errors.swift
[28/56] Compiling ArgumentParser Flag.swift
[29/56] Compiling ArgumentParser NameSpecification.swift
[30/56] Compiling ArgumentParser BashCompletionsGenerator.swift
[31/56] Compiling ArgumentParser CompletionsGenerator.swift
[32/56] Compiling ArgumentParser FishCompletionsGenerator.swift
[33/56] Compiling ArgumentParser ZshCompletionsGenerator.swift
[34/56] Compiling ArgumentParser Argument.swift
[35/56] Compiling ArgumentParser ParsedValues.swift
[36/56] Compiling ArgumentParser ParserError.swift
[37/56] Compiling ArgumentParser SplitArguments.swift
[38/56] Compiling ArgumentParser DumpHelpGenerator.swift
[39/56] Compiling ArgumentParser ParsableArguments.swift
[40/56] Compiling ArgumentParser ParsableArgumentsValidation.swift
[41/56] Compiling ArgumentParser ParsableCommand.swift
[42/56] Compiling ArgumentParser ArgumentDecoder.swift
[43/56] Compiling ArgumentParser ArgumentDefinition.swift
[44/56] Compiling ArgumentParser ArgumentSet.swift
[45/56] Compiling ArgumentParser CommandParser.swift
[46/56] Compiling ArgumentParser InputOrigin.swift
[47/56] Compiling ArgumentParser Name.swift
[48/56] Compiling ArgumentParser Parsed.swift
[49/56] Compiling ArgumentParser HelpCommand.swift
[50/56] Compiling ArgumentParser HelpGenerator.swift
[51/56] Compiling ArgumentParser MessageInfo.swift
[52/56] Compiling ArgumentParser UsageGenerator.swift
[53/57] Wrapping AST for ArgumentParser for debugging
[55/59] Emitting module RomanNumeralsTool
/host/spi-builder-workspace/Sources/RomanNumeralsTool/main.swift:7:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 5 | struct Roman: ParsableCommand {
 6 |
 7 |     static let configuration = CommandConfiguration(
   |                `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |         abstract: "Roman numerals utility.",
 9 |         subcommands: [To.self, From.self])
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/host/spi-builder-workspace/Sources/RomanNumeralsTool/main.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 1 |
 2 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 3 | import RomanNumerals
 4 |
 5 | struct Roman: ParsableCommand {
 6 |
 7 |     static let configuration = CommandConfiguration(
   |                |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |         abstract: "Roman numerals utility.",
 9 |         subcommands: [To.self, From.self])
[56/59] Compiling RomanNumeralsTool main.swift
/host/spi-builder-workspace/Sources/RomanNumeralsTool/main.swift:7:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 5 | struct Roman: ParsableCommand {
 6 |
 7 |     static let configuration = CommandConfiguration(
   |                `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |         abstract: "Roman numerals utility.",
 9 |         subcommands: [To.self, From.self])
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/host/spi-builder-workspace/Sources/RomanNumeralsTool/main.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 1 |
 2 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 3 | import RomanNumerals
 4 |
 5 | struct Roman: ParsableCommand {
 6 |
 7 |     static let configuration = CommandConfiguration(
   |                |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |         abstract: "Roman numerals utility.",
 9 |         subcommands: [To.self, From.self])
[57/60] Wrapping AST for RomanNumeralsTool for debugging
[58/60] Write Objects.LinkFileList
[59/60] Linking roman
Build complete! (9.53s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    }
  ],
  "manifest_display_name" : "RomanNumerals",
  "name" : "RomanNumerals",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RomanNumerals",
      "targets" : [
        "RomanNumerals"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "roman",
      "targets" : [
        "RomanNumeralsTool"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RomanNumeralsTool",
      "module_type" : "SwiftTarget",
      "name" : "RomanNumeralsTool",
      "path" : "Sources/RomanNumeralsTool",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "roman"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "RomanNumerals"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "RomanNumeralsTests",
      "module_type" : "SwiftTarget",
      "name" : "RomanNumeralsTests",
      "path" : "Tests/RomanNumeralsTests",
      "sources" : [
        "RomanNumeralTests.swift"
      ],
      "target_dependencies" : [
        "RomanNumerals"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RomanNumerals",
      "module_type" : "SwiftTarget",
      "name" : "RomanNumerals",
      "path" : "Sources/RomanNumerals",
      "product_memberships" : [
        "RomanNumerals",
        "roman"
      ],
      "sources" : [
        "RomanNumeral.swift",
        "Symbol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.