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 Yaap, reference 1.0.0 (90011c), with Swift 6.0 for Linux on 27 Nov 2024 04:24:42 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" 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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hartbit/Yaap.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/hartbit/Yaap
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 90011c3 Clean README
Cloned https://github.com/hartbit/Yaap.git
Revision (git rev-parse @):
90011c31147671d9ebabfcfc3241df6a7fdbcb99
SUCCESS checkout https://github.com/hartbit/Yaap.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/hartbit/Yaap.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" 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 -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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/17] Compiling Yaap SubCommand.swift
[5/18] Compiling Yaap Version.swift
/host/spi-builder-workspace/Sources/Yaap/Command.swift:158:14: warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 | }
157 |
158 | internal var exitProcess: (Int32) -> Void = { code in
    |              |- warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'exitProcess' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'exitProcess' 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
159 |     exit(code)
160 | }
[6/18] Compiling Yaap Extensions.swift
[7/18] Compiling Yaap FileOutputStream.swift
[8/18] Compiling Yaap Argument.swift
[9/18] Compiling Yaap ArgumentType.swift
[10/18] Emitting module Yaap
/host/spi-builder-workspace/Sources/Yaap/Command.swift:158:14: warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 | }
157 |
158 | internal var exitProcess: (Int32) -> Void = { code in
    |              |- warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'exitProcess' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'exitProcess' 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
159 |     exit(code)
160 | }
[11/18] Compiling Yaap Command.swift
/host/spi-builder-workspace/Sources/Yaap/Command.swift:158:14: warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 | }
157 |
158 | internal var exitProcess: (Int32) -> Void = { code in
    |              |- warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'exitProcess' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'exitProcess' 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
159 |     exit(code)
160 | }
[12/18] Compiling Yaap CommandProperty.swift
/host/spi-builder-workspace/Sources/Yaap/Command.swift:158:14: warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 | }
157 |
158 | internal var exitProcess: (Int32) -> Void = { code in
    |              |- warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'exitProcess' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'exitProcess' 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
159 |     exit(code)
160 | }
[13/18] Compiling Yaap Help.swift
/host/spi-builder-workspace/Sources/Yaap/Command.swift:158:14: warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 | }
157 |
158 | internal var exitProcess: (Int32) -> Void = { code in
    |              |- warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'exitProcess' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'exitProcess' 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
159 |     exit(code)
160 | }
[14/18] Compiling Yaap Option.swift
[15/19] Wrapping AST for Yaap for debugging
[17/21] Emitting module YaapExample
[18/21] Compiling YaapExample main.swift
[19/22] Wrapping AST for YaapExample for debugging
[20/22] Write Objects.LinkFileList
[21/22] Linking YaapExample
Build complete! (16.68s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Yaap",
  "name" : "Yaap",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Yaap",
      "targets" : [
        "Yaap"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "YaapExample",
      "targets" : [
        "YaapExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "YaapTests",
      "module_type" : "SwiftTarget",
      "name" : "YaapTests",
      "path" : "Tests/YaapTests",
      "sources" : [
        "ArgumentTests.swift",
        "ArgumentTypeTests.swift",
        "CommandTests.swift",
        "ExtensionsTests.swift",
        "HelpTests.swift",
        "Helpers.swift",
        "OptionTests.swift",
        "SubCommandTests.swift",
        "VersionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Yaap"
      ],
      "type" : "test"
    },
    {
      "c99name" : "YaapExample",
      "module_type" : "SwiftTarget",
      "name" : "YaapExample",
      "path" : "Sources/YaapExample",
      "product_memberships" : [
        "YaapExample"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Yaap"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Yaap",
      "module_type" : "SwiftTarget",
      "name" : "Yaap",
      "path" : "Sources/Yaap",
      "product_memberships" : [
        "Yaap",
        "YaapExample"
      ],
      "sources" : [
        "Argument.swift",
        "ArgumentType.swift",
        "Command.swift",
        "CommandProperty.swift",
        "Extensions.swift",
        "FileOutputStream.swift",
        "Help.swift",
        "Option.swift",
        "SubCommand.swift",
        "Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.