The Swift Package Index logo.Swift Package Index

Build Information

Successful build of OnyxShell, reference 0.1.1 (289fbc), with Swift 6.1 for Wasm on 30 May 2025 14:52:18 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wuyu2015/OnyxShellSwift.git
Reference: 0.1.1
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/wuyu2015/OnyxShellSwift
 * tag               0.1.1      -> FETCH_HEAD
HEAD is now at 289fbc9 Modify: README.md
Cloned https://github.com/wuyu2015/OnyxShellSwift.git
Revision (git rev-parse @):
289fbc9d0b7bc9c499a46254fd1bd4b08098d138
SUCCESS checkout https://github.com/wuyu2015/OnyxShellSwift.git at 0.1.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/wuyu2015/OnyxShellSwift.git
https://github.com/wuyu2015/OnyxShellSwift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OnyxShell",
  "name" : "OnyxShell",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "OnyxShell",
      "targets" : [
        "OnyxShell"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OnyxShellTests",
      "module_type" : "SwiftTarget",
      "name" : "OnyxShellTests",
      "path" : "Tests/OnyxShellTests",
      "sources" : [
        "ArgumentParserMirrorTest.swift",
        "ArgumentPaserTests.swift",
        "CommandResult.swift",
        "DemoTest.swift",
        "FlagTests.swift",
        "OptionTests.swift",
        "SubcommandTests.swift",
        "UtilsStrTests.swift",
        "ValueTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "OnyxShell"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OnyxShell",
      "module_type" : "SwiftTarget",
      "name" : "OnyxShell",
      "path" : "Sources/OnyxShell",
      "product_memberships" : [
        "OnyxShell"
      ],
      "sources" : [
        "Command/enum/NameType.swift",
        "Command/enum/ParsingStrategy.swift",
        "Command/enum/ValueExclusivity.swift",
        "Command/error/ArgumentParserError.swift",
        "Command/error/InternalError.swift",
        "Command/error/ParseValueError.swift",
        "Command/error/ValueError.swift",
        "Command/propertyWrapper/Argument.swift",
        "Command/propertyWrapper/Flag.swift",
        "Command/propertyWrapper/Option.swift",
        "Command/propertyWrapper/Value.swift",
        "Command/protocol/OnyxCommand+extension.swift",
        "Command/protocol/OnyxCommand+func.swift",
        "Command/protocol/OnyxCommand.swift",
        "Command/struct/ArgumentParser+Argument.swift",
        "Command/struct/ArgumentParser+Flag.swift",
        "Command/struct/ArgumentParser+Option.swift",
        "Command/struct/ArgumentParser+Value.swift",
        "Command/struct/ArgumentParser+mirror.swift",
        "Command/struct/ArgumentParser.swift",
        "Command/struct/CommandConfiguration.swift",
        "Onyx.swift",
        "Utils/Str.swift",
        "Utils/Utils.swift",
        "var.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/25] Emitting module OnyxShell
/host/spi-builder-workspace/Sources/OnyxShell/Command/error/ValueError.swift:5:14: warning: associated value 'duplicateExclusiveValues' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 3 | extension Onyx {
 4 |     public enum ValueError: LocalizedError {
 5 |         case duplicateExclusiveValues(Any)
   |              `- warning: associated value 'duplicateExclusiveValues' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 6 |         case wrongType(Any)
 7 |
/host/spi-builder-workspace/Sources/OnyxShell/Command/error/ValueError.swift:6:14: warning: associated value 'wrongType' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 4 |     public enum ValueError: LocalizedError {
 5 |         case duplicateExclusiveValues(Any)
 6 |         case wrongType(Any)
   |              `- warning: associated value 'wrongType' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 7 |
 8 |         public var errorDescription: String? {
/host/spi-builder-workspace/Sources/OnyxShell/Command/struct/CommandConfiguration.swift:4:27: warning: static property 'emptyConfiguration' is not concurrency-safe because non-'Sendable' type 'Onyx.CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | extension Onyx {
 2 |
 3 |     public struct CommandConfiguration {
   |                   `- note: consider making struct 'CommandConfiguration' conform to the 'Sendable' protocol
 4 |         public static let emptyConfiguration = Self()
   |                           |- warning: static property 'emptyConfiguration' is not concurrency-safe because non-'Sendable' type 'Onyx.CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'emptyConfiguration' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 |         public let name: String?
/host/spi-builder-workspace/Sources/OnyxShell/var.swift:2:23: warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Onyx {
2 |     public static var commands: [OnyxCommand] = []
  |                       |- warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'commands' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: add '@MainActor' to make static property 'commands' part of global actor 'MainActor'
  |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 | }
4 |
[4/28] Compiling OnyxShell OnyxCommand.swift
[5/28] Compiling OnyxShell ArgumentParser+Argument.swift
[6/28] Compiling OnyxShell ArgumentParser+Flag.swift
[7/28] Compiling OnyxShell ArgumentParser+Option.swift
[8/28] Compiling OnyxShell ArgumentParser+Value.swift
[9/28] Compiling OnyxShell ArgumentParser+mirror.swift
[10/28] Compiling OnyxShell Str.swift
/host/spi-builder-workspace/Sources/OnyxShell/var.swift:2:23: warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Onyx {
2 |     public static var commands: [OnyxCommand] = []
  |                       |- warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'commands' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: add '@MainActor' to make static property 'commands' part of global actor 'MainActor'
  |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 | }
4 |
[11/28] Compiling OnyxShell Utils.swift
/host/spi-builder-workspace/Sources/OnyxShell/var.swift:2:23: warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Onyx {
2 |     public static var commands: [OnyxCommand] = []
  |                       |- warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'commands' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: add '@MainActor' to make static property 'commands' part of global actor 'MainActor'
  |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 | }
4 |
[12/28] Compiling OnyxShell var.swift
/host/spi-builder-workspace/Sources/OnyxShell/var.swift:2:23: warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Onyx {
2 |     public static var commands: [OnyxCommand] = []
  |                       |- warning: static property 'commands' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'commands' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: add '@MainActor' to make static property 'commands' part of global actor 'MainActor'
  |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 | }
4 |
[13/28] Compiling OnyxShell ArgumentParser.swift
/host/spi-builder-workspace/Sources/OnyxShell/Command/struct/CommandConfiguration.swift:4:27: warning: static property 'emptyConfiguration' is not concurrency-safe because non-'Sendable' type 'Onyx.CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | extension Onyx {
 2 |
 3 |     public struct CommandConfiguration {
   |                   `- note: consider making struct 'CommandConfiguration' conform to the 'Sendable' protocol
 4 |         public static let emptyConfiguration = Self()
   |                           |- warning: static property 'emptyConfiguration' is not concurrency-safe because non-'Sendable' type 'Onyx.CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'emptyConfiguration' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 |         public let name: String?
[14/28] Compiling OnyxShell CommandConfiguration.swift
/host/spi-builder-workspace/Sources/OnyxShell/Command/struct/CommandConfiguration.swift:4:27: warning: static property 'emptyConfiguration' is not concurrency-safe because non-'Sendable' type 'Onyx.CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | extension Onyx {
 2 |
 3 |     public struct CommandConfiguration {
   |                   `- note: consider making struct 'CommandConfiguration' conform to the 'Sendable' protocol
 4 |         public static let emptyConfiguration = Self()
   |                           |- warning: static property 'emptyConfiguration' is not concurrency-safe because non-'Sendable' type 'Onyx.CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'emptyConfiguration' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 |         public let name: String?
[15/28] Compiling OnyxShell Onyx.swift
/host/spi-builder-workspace/Sources/OnyxShell/Command/struct/CommandConfiguration.swift:4:27: warning: static property 'emptyConfiguration' is not concurrency-safe because non-'Sendable' type 'Onyx.CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | extension Onyx {
 2 |
 3 |     public struct CommandConfiguration {
   |                   `- note: consider making struct 'CommandConfiguration' conform to the 'Sendable' protocol
 4 |         public static let emptyConfiguration = Self()
   |                           |- warning: static property 'emptyConfiguration' is not concurrency-safe because non-'Sendable' type 'Onyx.CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'emptyConfiguration' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 |         public let name: String?
[16/28] Compiling OnyxShell Argument.swift
[17/28] Compiling OnyxShell Flag.swift
[18/28] Compiling OnyxShell Option.swift
[19/28] Compiling OnyxShell InternalError.swift
/host/spi-builder-workspace/Sources/OnyxShell/Command/error/ValueError.swift:5:14: warning: associated value 'duplicateExclusiveValues' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 3 | extension Onyx {
 4 |     public enum ValueError: LocalizedError {
 5 |         case duplicateExclusiveValues(Any)
   |              `- warning: associated value 'duplicateExclusiveValues' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 6 |         case wrongType(Any)
 7 |
/host/spi-builder-workspace/Sources/OnyxShell/Command/error/ValueError.swift:6:14: warning: associated value 'wrongType' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 4 |     public enum ValueError: LocalizedError {
 5 |         case duplicateExclusiveValues(Any)
 6 |         case wrongType(Any)
   |              `- warning: associated value 'wrongType' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 7 |
 8 |         public var errorDescription: String? {
[20/28] Compiling OnyxShell ParseValueError.swift
/host/spi-builder-workspace/Sources/OnyxShell/Command/error/ValueError.swift:5:14: warning: associated value 'duplicateExclusiveValues' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 3 | extension Onyx {
 4 |     public enum ValueError: LocalizedError {
 5 |         case duplicateExclusiveValues(Any)
   |              `- warning: associated value 'duplicateExclusiveValues' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 6 |         case wrongType(Any)
 7 |
/host/spi-builder-workspace/Sources/OnyxShell/Command/error/ValueError.swift:6:14: warning: associated value 'wrongType' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 4 |     public enum ValueError: LocalizedError {
 5 |         case duplicateExclusiveValues(Any)
 6 |         case wrongType(Any)
   |              `- warning: associated value 'wrongType' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 7 |
 8 |         public var errorDescription: String? {
[21/28] Compiling OnyxShell ValueError.swift
/host/spi-builder-workspace/Sources/OnyxShell/Command/error/ValueError.swift:5:14: warning: associated value 'duplicateExclusiveValues' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 3 | extension Onyx {
 4 |     public enum ValueError: LocalizedError {
 5 |         case duplicateExclusiveValues(Any)
   |              `- warning: associated value 'duplicateExclusiveValues' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 6 |         case wrongType(Any)
 7 |
/host/spi-builder-workspace/Sources/OnyxShell/Command/error/ValueError.swift:6:14: warning: associated value 'wrongType' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 4 |     public enum ValueError: LocalizedError {
 5 |         case duplicateExclusiveValues(Any)
 6 |         case wrongType(Any)
   |              `- warning: associated value 'wrongType' of 'Sendable'-conforming enum 'ValueError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 7 |
 8 |         public var errorDescription: String? {
[22/28] Compiling OnyxShell NameType.swift
[23/28] Compiling OnyxShell ParsingStrategy.swift
[24/28] Compiling OnyxShell ValueExclusivity.swift
[25/28] Compiling OnyxShell ArgumentParserError.swift
[26/28] Compiling OnyxShell Value.swift
[27/28] Compiling OnyxShell OnyxCommand+extension.swift
[28/28] Compiling OnyxShell OnyxCommand+func.swift
Build complete! (8.57s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OnyxShell",
  "name" : "OnyxShell",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "OnyxShell",
      "targets" : [
        "OnyxShell"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OnyxShellTests",
      "module_type" : "SwiftTarget",
      "name" : "OnyxShellTests",
      "path" : "Tests/OnyxShellTests",
      "sources" : [
        "ArgumentParserMirrorTest.swift",
        "ArgumentPaserTests.swift",
        "CommandResult.swift",
        "DemoTest.swift",
        "FlagTests.swift",
        "OptionTests.swift",
        "SubcommandTests.swift",
        "UtilsStrTests.swift",
        "ValueTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "OnyxShell"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OnyxShell",
      "module_type" : "SwiftTarget",
      "name" : "OnyxShell",
      "path" : "Sources/OnyxShell",
      "product_memberships" : [
        "OnyxShell"
      ],
      "sources" : [
        "Command/enum/NameType.swift",
        "Command/enum/ParsingStrategy.swift",
        "Command/enum/ValueExclusivity.swift",
        "Command/error/ArgumentParserError.swift",
        "Command/error/InternalError.swift",
        "Command/error/ParseValueError.swift",
        "Command/error/ValueError.swift",
        "Command/propertyWrapper/Argument.swift",
        "Command/propertyWrapper/Flag.swift",
        "Command/propertyWrapper/Option.swift",
        "Command/propertyWrapper/Value.swift",
        "Command/protocol/OnyxCommand+extension.swift",
        "Command/protocol/OnyxCommand+func.swift",
        "Command/protocol/OnyxCommand.swift",
        "Command/struct/ArgumentParser+Argument.swift",
        "Command/struct/ArgumentParser+Flag.swift",
        "Command/struct/ArgumentParser+Option.swift",
        "Command/struct/ArgumentParser+Value.swift",
        "Command/struct/ArgumentParser+mirror.swift",
        "Command/struct/ArgumentParser.swift",
        "Command/struct/CommandConfiguration.swift",
        "Onyx.swift",
        "Utils/Str.swift",
        "Utils/Utils.swift",
        "var.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Done.