This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for Linux.

Swift 6 data race errors: 2

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/danielctull/RomanNumerals.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at bea00ee Add Swift 5.3 to the list of versions to test against
Cloned https://github.com/danielctull/RomanNumerals.git
Revision (git rev-parse @):
bea00ee11e3d15926894512ec7915a1e01205f6d
SUCCESS checkout https://github.com/danielctull/RomanNumerals.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/danielctull/RomanNumerals.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/apple/swift-argument-parser
[1/11679] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.70s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.0.1 (0.48s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.0.1
Building for debugging...
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/38] Emitting module ArgumentParser
[6/41] Compiling ArgumentParser InputOrigin.swift
[7/41] Compiling ArgumentParser Name.swift
[8/41] Compiling ArgumentParser Parsed.swift
[9/41] Compiling ArgumentParser Argument.swift
[10/41] Compiling ArgumentParser ArgumentHelp.swift
[11/41] Compiling ArgumentParser Flag.swift
[12/41] Compiling ArgumentParser NameSpecification.swift
[13/41] Compiling RomanNumerals Symbol.swift
[14/41] 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: annotate 'zero' 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
120 |
121 |     public static func += (lhs: inout RomanNumeral, rhs: RomanNumeral) {
[15/41] 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: annotate 'zero' 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
120 |
121 |     public static func += (lhs: inout RomanNumeral, rhs: RomanNumeral) {
[16/42] Wrapping AST for RomanNumerals for debugging
[18/42] Compiling ArgumentParser UsageGenerator.swift
[19/42] Compiling ArgumentParser StringExtensions.swift
[20/42] Compiling ArgumentParser Tree.swift
[21/42] Compiling ArgumentParser ArgumentDefinition.swift
[22/42] Compiling ArgumentParser ArgumentSet.swift
[23/42] Compiling ArgumentParser ArgumentSetSequence.swift
[24/42] Compiling ArgumentParser CommandParser.swift
[25/42] Compiling ArgumentParser ParsedValues.swift
[26/42] Compiling ArgumentParser ParserError.swift
[27/42] Compiling ArgumentParser SplitArguments.swift
[28/42] Compiling ArgumentParser Option.swift
[29/42] Compiling ArgumentParser OptionGroup.swift
[30/42] Compiling ArgumentParser ValidationError.swift
[31/42] Compiling ArgumentParser CommandConfiguration.swift
[32/42] Compiling ArgumentParser HelpCommand.swift
[33/42] Compiling ArgumentParser HelpGenerator.swift
[34/42] Compiling ArgumentParser MessageInfo.swift
[35/42] Compiling ArgumentParser ExpressibleByArgument.swift
[36/42] Compiling ArgumentParser ParsableArguments.swift
[37/42] Compiling ArgumentParser ParsableCommand.swift
[38/42] Compiling ArgumentParser ArgumentDecoder.swift
[39/45] Wrapping AST for ArgumentParser for debugging
[41/45] 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: annotate 'configuration' 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
 8 |         abstract: "Roman numerals utility.",
 9 |         subcommands: [To.self, From.self])
[42/45] 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: annotate 'configuration' 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
 8 |         abstract: "Roman numerals utility.",
 9 |         subcommands: [To.self, From.self])
[43/46] Wrapping AST for RomanNumeralsTool for debugging
[44/46] Write Objects.LinkFileList
[45/46] Linking roman
Build complete! (13.31s)
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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.