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 msg2swift, reference v2.0.0 (1054c0), with Swift 6.1 for Linux on 28 Apr 2025 14:26:30 UTC.

Swift 6 data race errors: 1

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/DimaRU/Msg2swift.git
Reference: v2.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/DimaRU/Msg2swift
 * tag               v2.0.0     -> FETCH_HEAD
HEAD is now at 1054c0a Add .action file code generation.
Cloned https://github.com/DimaRU/Msg2swift.git
Revision (git rev-parse @):
1054c0aaf6e9dfd25cdb8a0c298de1daa56bfd26
SUCCESS checkout https://github.com/DimaRU/Msg2swift.git at v2.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/DimaRU/Msg2swift.git
https://github.com/DimaRU/Msg2swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    }
  ],
  "manifest_display_name" : "msg2swift",
  "name" : "msg2swift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "msg2swift",
      "targets" : [
        "msg2swift"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "msg2swiftTests",
      "module_type" : "SwiftTarget",
      "name" : "msg2swiftTests",
      "path" : "Sources/msg2swiftTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/BasicAction.action",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/BatteryState.msg",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/CameraInfo.msg",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/Empty.srv",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/SetBool.srv",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/Trigger.srv",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Msg2swiftTests.swift",
        "Msg2swiftTestsFull.swift"
      ],
      "target_dependencies" : [
        "msg2swift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "msg2swift",
      "module_type" : "SwiftTarget",
      "name" : "msg2swift",
      "path" : "Sources/msg2swift",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "msg2swift"
      ],
      "sources" : [
        "ConverFromSnakeCase.swift",
        "Msg2swift.swift",
        "ReservedWords.swift",
        "StringProtocol+Extensions.swift",
        "SwiftGenerator.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.8"
}
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/14950] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.83s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (1.29s)
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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/10] Write sources
[4/10] Write swift-version-24593BA9C3E375BF.txt
[6/12] Compiling ArgumentParserToolInfo ToolInfo.swift
[7/12] Emitting module ArgumentParserToolInfo
[8/13] Wrapping AST for ArgumentParserToolInfo for debugging
[10/51] Compiling ArgumentParser OptionGroup.swift
[11/51] Compiling ArgumentParser AsyncParsableCommand.swift
[12/51] Compiling ArgumentParser CommandConfiguration.swift
[13/51] Compiling ArgumentParser CommandGroup.swift
[14/51] Compiling ArgumentParser EnumerableFlag.swift
[15/56] Emitting module ArgumentParser
[16/56] Compiling ArgumentParser Name.swift
[17/56] Compiling ArgumentParser Parsed.swift
[18/56] Compiling ArgumentParser ParsedValues.swift
[19/56] Compiling ArgumentParser ParserError.swift
[20/56] Compiling ArgumentParser SplitArguments.swift
[21/56] Compiling ArgumentParser BashCompletionsGenerator.swift
[22/56] Compiling ArgumentParser CompletionsGenerator.swift
[23/56] Compiling ArgumentParser FishCompletionsGenerator.swift
[24/56] Compiling ArgumentParser ZshCompletionsGenerator.swift
[25/56] Compiling ArgumentParser Argument.swift
[26/56] Compiling ArgumentParser ArgumentHelp.swift
[27/56] Compiling ArgumentParser ArgumentVisibility.swift
[28/56] Compiling ArgumentParser CompletionKind.swift
[29/56] Compiling ArgumentParser Errors.swift
[30/56] Compiling ArgumentParser Flag.swift
[31/56] Compiling ArgumentParser NameSpecification.swift
[32/56] Compiling ArgumentParser Option.swift
[33/56] Compiling ArgumentParser ArgumentDefinition.swift
[34/56] Compiling ArgumentParser ArgumentSet.swift
[35/56] Compiling ArgumentParser CommandParser.swift
[36/56] Compiling ArgumentParser InputKey.swift
[37/56] Compiling ArgumentParser InputOrigin.swift
[38/56] Compiling ArgumentParser CollectionExtensions.swift
[39/56] Compiling ArgumentParser Platform.swift
[40/56] Compiling ArgumentParser SequenceExtensions.swift
[41/56] Compiling ArgumentParser StringExtensions.swift
[42/56] Compiling ArgumentParser Tree.swift
[43/56] Compiling ArgumentParser ExpressibleByArgument.swift
[44/56] Compiling ArgumentParser ParsableArguments.swift
[45/56] Compiling ArgumentParser ParsableArgumentsValidation.swift
[46/56] Compiling ArgumentParser ParsableCommand.swift
[47/56] Compiling ArgumentParser ArgumentDecoder.swift
[48/56] Compiling ArgumentParser DumpHelpGenerator.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/63] Compiling msg2swift StringProtocol+Extensions.swift
[56/63] Compiling msg2swift ConverFromSnakeCase.swift
[57/63] Emitting module msg2swift
/host/spi-builder-workspace/Sources/msg2swift/Msg2swift.swift:27:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 | @main
 26 | struct Msg2swift: ParsableCommand {
 27 |     static var configuration = CommandConfiguration(
    |                |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- 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
 28 |         commandName: "msg2swift",
 29 |         abstract: "Generate Swift codable models from ROS message and service files.",
[58/63] Compiling msg2swift Msg2swift.swift
/host/spi-builder-workspace/Sources/msg2swift/Msg2swift.swift:27:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 | @main
 26 | struct Msg2swift: ParsableCommand {
 27 |     static var configuration = CommandConfiguration(
    |                |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- 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
 28 |         commandName: "msg2swift",
 29 |         abstract: "Generate Swift codable models from ROS message and service files.",
[59/63] Compiling msg2swift ReservedWords.swift
[60/63] Compiling msg2swift SwiftGenerator.swift
[61/64] Wrapping AST for msg2swift for debugging
[62/64] Write Objects.LinkFileList
[63/64] Linking msg2swift
Build complete! (14.71s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    }
  ],
  "manifest_display_name" : "msg2swift",
  "name" : "msg2swift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "msg2swift",
      "targets" : [
        "msg2swift"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "msg2swiftTests",
      "module_type" : "SwiftTarget",
      "name" : "msg2swiftTests",
      "path" : "Sources/msg2swiftTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/BasicAction.action",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/BatteryState.msg",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/CameraInfo.msg",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/Empty.srv",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/SetBool.srv",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/msg2swiftTests/Resource/Trigger.srv",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Msg2swiftTests.swift",
        "Msg2swiftTestsFull.swift"
      ],
      "target_dependencies" : [
        "msg2swift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "msg2swift",
      "module_type" : "SwiftTarget",
      "name" : "msg2swift",
      "path" : "Sources/msg2swift",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "msg2swift"
      ],
      "sources" : [
        "ConverFromSnakeCase.swift",
        "Msg2swift.swift",
        "ReservedWords.swift",
        "StringProtocol+Extensions.swift",
        "SwiftGenerator.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.8"
}
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.