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 main (bea00e), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 02:47:48 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/danielctull/RomanNumerals.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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
Fetching https://github.com/apple/swift-argument-parser
[1/12395] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.53s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.0.1 (0.57s)
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
========================================
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": "romannumerals",
      "name": "RomanNumerals",
      "url": "https://github.com/danielctull/RomanNumerals.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RomanNumerals",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser",
          "version": "0.5.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/danielctull/RomanNumerals.git
[1/231] Fetching romannumerals
Fetched https://github.com/danielctull/RomanNumerals.git from cache (0.68s)
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.57s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.57s)
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
Creating working copy for https://github.com/danielctull/RomanNumerals.git
Working copy of https://github.com/danielctull/RomanNumerals.git resolved at main (bea00ee)
Found 1 product dependencies
  - swift-argument-parser
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/danielctull/RomanNumerals.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/8] Write sources
[3/8] Write roman-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/38] Compiling RomanNumerals RomanNumeral.swift
/Users/admin/builder/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) {
[7/38] Compiling RomanNumerals Symbol.swift
[8/38] Emitting module RomanNumerals
/Users/admin/builder/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) {
[9/38] Compiling ArgumentParser Argument.swift
[10/38] Compiling ArgumentParser ArgumentHelp.swift
[11/38] Compiling ArgumentParser Flag.swift
[12/38] Compiling ArgumentParser NameSpecification.swift
[13/38] Compiling ArgumentParser Option.swift
[14/38] Compiling ArgumentParser OptionGroup.swift
[15/40] Emitting module ArgumentParser
[16/40] Compiling ArgumentParser ValidationError.swift
[17/40] Compiling ArgumentParser CommandConfiguration.swift
[18/40] Compiling ArgumentParser ExpressibleByArgument.swift
[19/40] Compiling ArgumentParser ArgumentDefinition.swift
[20/40] Compiling ArgumentParser ArgumentSet.swift
[21/40] Compiling ArgumentParser ArgumentSetSequence.swift
[22/40] Compiling ArgumentParser StringExtensions.swift
[23/40] Compiling ArgumentParser Tree.swift
[24/40] Compiling ArgumentParser SplitArguments.swift
[25/40] Compiling ArgumentParser HelpCommand.swift
[26/40] Compiling ArgumentParser HelpGenerator.swift
[27/40] Compiling ArgumentParser ParsableArguments.swift
[28/40] Compiling ArgumentParser ParsableCommand.swift
[29/40] Compiling ArgumentParser ArgumentDecoder.swift
[30/40] Compiling ArgumentParser CommandParser.swift
[31/40] Compiling ArgumentParser InputOrigin.swift
[32/40] Compiling ArgumentParser Name.swift
[33/40] Compiling ArgumentParser Parsed.swift
[34/40] Compiling ArgumentParser ParsedValues.swift
[35/40] Compiling ArgumentParser ParserError.swift
[36/40] Compiling ArgumentParser MessageInfo.swift
[37/40] Compiling ArgumentParser UsageGenerator.swift
[38/42] Compiling RomanNumeralsTool main.swift
/Users/admin/builder/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])
/Users/admin/builder/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 |   ///
/Users/admin/builder/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])
[39/42] Emitting module RomanNumeralsTool
/Users/admin/builder/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])
/Users/admin/builder/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 |   ///
/Users/admin/builder/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])
[39/42] Write Objects.LinkFileList
[40/42] Linking roman
[41/42] Applying roman
Build complete! (6.29s)
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" : "/Users/admin/builder/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.