Build Information
Failed to build swift-commands, reference main (5b8560
), with Swift 6.1 for Wasm on 30 May 2025 00:47:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/QiuZhiFei/swift-commands.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/QiuZhiFei/swift-commands
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5b85603 Merge pull request #14 from QiuZhiFei/dev
Cloned https://github.com/QiuZhiFei/swift-commands.git
Revision (git rev-parse @):
5b856036361139505820ea0fc39f8da8f71ad1d4
SUCCESS checkout https://github.com/QiuZhiFei/swift-commands.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/QiuZhiFei/swift-commands.git
https://github.com/QiuZhiFei/swift-commands.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "swift-commands",
"name" : "swift-commands",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "Commands",
"targets" : [
"Commands"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Examples",
"targets" : [
"Examples"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "Examples",
"module_type" : "SwiftTarget",
"name" : "Examples",
"path" : "Examples",
"product_memberships" : [
"Examples"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Commands"
],
"type" : "executable"
},
{
"c99name" : "CommandsTests",
"module_type" : "SwiftTarget",
"name" : "CommandsTests",
"path" : "Tests/CommandsTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/CommandsTests/Resources/python/main.py",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"RequestParseTests.swift",
"XCTestManifests.swift",
"swift_commandsTests.swift"
],
"target_dependencies" : [
"Commands"
],
"type" : "test"
},
{
"c99name" : "Commands",
"module_type" : "SwiftTarget",
"name" : "Commands",
"path" : "Sources/Commands",
"product_memberships" : [
"Commands",
"Examples"
],
"sources" : [
"Commands.swift",
"CommandsAlias.swift",
"CommandsArguments.swift",
"CommandsDashcTransformer.swift",
"CommandsENV.swift",
"CommandsRequest.swift",
"CommandsResponse.swift",
"CommandsResult.swift",
"CommandsTask.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/16] Compiling Commands CommandsResult.swift
[5/17] Compiling Commands CommandsTask.swift
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:106:55: error: cannot find type 'Process' in scope
104 |
105 | public extension Commands.Task {
106 | static func prepare(_ request: Commands.Request) -> Process {
| `- error: cannot find type 'Process' in scope
107 | let process = Process()
108 | if #available(macOS 10.13, *) {
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:126:30: error: cannot find type 'Process' in scope
124 | }
125 |
126 | static func run(_ process: Process) throws {
| `- error: cannot find type 'Process' in scope
127 | if #available(macOS 10.13, *) {
128 | try process.run()
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:62:13: error: cannot find 'DispatchQueue' in scope
60 | if data.count > 0,
61 | let result = String(data: data, encoding: .utf8)?.trimmingCharacters(in: .whitespacesAndNewlines) {
62 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
63 | output(result)
64 | }
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:58:41: error: value of type 'FileHandle' has no member 'readabilityHandler'
56 | let outputPipe = Pipe()
57 | process.standardOutput = outputPipe
58 | outputPipe.fileHandleForReading.readabilityHandler = { (handler) in
| `- error: value of type 'FileHandle' has no member 'readabilityHandler'
59 | let data = handler.availableData
60 | if data.count > 0,
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:58:65: error: cannot infer type of closure parameter 'handler' without a type annotation
56 | let outputPipe = Pipe()
57 | process.standardOutput = outputPipe
58 | outputPipe.fileHandleForReading.readabilityHandler = { (handler) in
| `- error: cannot infer type of closure parameter 'handler' without a type annotation
59 | let data = handler.availableData
60 | if data.count > 0,
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:75:13: error: cannot find 'DispatchQueue' in scope
73 | if data.count > 0,
74 | let result = String(data: data, encoding: .utf8)?.trimmingCharacters(in: .whitespacesAndNewlines) {
75 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
76 | errorOutput(result)
77 | }
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:71:40: error: value of type 'FileHandle' has no member 'readabilityHandler'
69 | let errorPipe = Pipe()
70 | process.standardError = errorPipe
71 | errorPipe.fileHandleForReading.readabilityHandler = { (handler) in
| `- error: value of type 'FileHandle' has no member 'readabilityHandler'
72 | let data = handler.availableData
73 | if data.count > 0,
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:71:64: error: cannot infer type of closure parameter 'handler' without a type annotation
69 | let errorPipe = Pipe()
70 | process.standardError = errorPipe
71 | errorPipe.fileHandleForReading.readabilityHandler = { (handler) in
| `- error: cannot infer type of closure parameter 'handler' without a type annotation
72 | let data = handler.availableData
73 | if data.count > 0,
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:90:7: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
88 | errorPipe.fileHandleForReading.readabilityHandler = nil
89 | }
90 | } catch let error {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
91 | print(error.localizedDescription)
92 | }
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:107:19: error: cannot find 'Process' in scope
105 | public extension Commands.Task {
106 | static func prepare(_ request: Commands.Request) -> Process {
107 | let process = Process()
| `- error: cannot find 'Process' in scope
108 | if #available(macOS 10.13, *) {
109 | process.executableURL = URL(fileURLWithPath: request.executableURL)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/17] Compiling Commands CommandsDashcTransformer.swift
/host/spi-builder-workspace/Sources/Commands/CommandsDashcTransformer.swift:20:22: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | extension Commands.DashcTransformer {
20 | private static var handlers: [CommandsDashcTransformerHandler.Type] = [
| |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | Bash.self,
22 | Ruby.self,
[7/17] Compiling Commands CommandsArguments.swift
[8/17] Compiling Commands CommandsENV.swift
/host/spi-builder-workspace/Sources/Commands/CommandsENV.swift:21:21: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | extension Commands.ENV {
21 | public static var global = Commands.ENV()
| |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
[9/17] Emitting module Commands
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:56:14: warning: static property 'Bash' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
54 |
55 | public extension Commands {
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
| |- warning: static property 'Bash' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Bash' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:57:14: warning: static property 'Ruby' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
55 | public extension Commands {
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
| |- warning: static property 'Ruby' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Ruby' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | static let Python = Commands.Alias("python", dashc: "-c")
59 | static let Node = Commands.Alias("node", dashc: "-e")
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:58:14: warning: static property 'Python' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
| |- warning: static property 'Python' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Python' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let Node = Commands.Alias("node", dashc: "-e")
60 | }
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:59:14: warning: static property 'Node' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
59 | static let Node = Commands.Alias("node", dashc: "-e")
| |- warning: static property 'Node' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Node' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | }
61 |
/host/spi-builder-workspace/Sources/Commands/CommandsDashcTransformer.swift:20:22: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | extension Commands.DashcTransformer {
20 | private static var handlers: [CommandsDashcTransformerHandler.Type] = [
| |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | Bash.self,
22 | Ruby.self,
/host/spi-builder-workspace/Sources/Commands/CommandsENV.swift:21:21: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | extension Commands.ENV {
21 | public static var global = Commands.ENV()
| |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:106:55: error: cannot find type 'Process' in scope
104 |
105 | public extension Commands.Task {
106 | static func prepare(_ request: Commands.Request) -> Process {
| `- error: cannot find type 'Process' in scope
107 | let process = Process()
108 | if #available(macOS 10.13, *) {
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:126:30: error: cannot find type 'Process' in scope
124 | }
125 |
126 | static func run(_ process: Process) throws {
| `- error: cannot find type 'Process' in scope
127 | if #available(macOS 10.13, *) {
128 | try process.run()
[10/17] Compiling Commands CommandsRequest.swift
[11/17] Compiling Commands CommandsResponse.swift
[12/17] Compiling Commands Commands.swift
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:56:14: warning: static property 'Bash' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
54 |
55 | public extension Commands {
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
| |- warning: static property 'Bash' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Bash' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:57:14: warning: static property 'Ruby' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
55 | public extension Commands {
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
| |- warning: static property 'Ruby' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Ruby' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | static let Python = Commands.Alias("python", dashc: "-c")
59 | static let Node = Commands.Alias("node", dashc: "-e")
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:58:14: warning: static property 'Python' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
| |- warning: static property 'Python' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Python' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let Node = Commands.Alias("node", dashc: "-e")
60 | }
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:59:14: warning: static property 'Node' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
59 | static let Node = Commands.Alias("node", dashc: "-e")
| |- warning: static property 'Node' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Node' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | }
61 |
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:126:30: error: cannot find type 'Process' in scope
124 | }
125 |
126 | static func run(_ process: Process) throws {
| `- error: cannot find type 'Process' in scope
127 | if #available(macOS 10.13, *) {
128 | try process.run()
[13/17] Compiling Commands CommandsAlias.swift
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:56:14: warning: static property 'Bash' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
54 |
55 | public extension Commands {
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
| |- warning: static property 'Bash' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Bash' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:57:14: warning: static property 'Ruby' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
55 | public extension Commands {
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
| |- warning: static property 'Ruby' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Ruby' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | static let Python = Commands.Alias("python", dashc: "-c")
59 | static let Node = Commands.Alias("node", dashc: "-e")
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:58:14: warning: static property 'Python' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
| |- warning: static property 'Python' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Python' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let Node = Commands.Alias("node", dashc: "-e")
60 | }
/host/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:59:14: warning: static property 'Node' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
59 | static let Node = Commands.Alias("node", dashc: "-e")
| |- warning: static property 'Node' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Node' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | }
61 |
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:126:30: error: cannot find type 'Process' in scope
124 | }
125 |
126 | static func run(_ process: Process) throws {
| `- error: cannot find type 'Process' in scope
127 | if #available(macOS 10.13, *) {
128 | try process.run()
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 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
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/14] Emitting module Commands
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:106:55: error: cannot find type 'Process' in scope
104 |
105 | public extension Commands.Task {
106 | static func prepare(_ request: Commands.Request) -> Process {
| `- error: cannot find type 'Process' in scope
107 | let process = Process()
108 | if #available(macOS 10.13, *) {
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:126:30: error: cannot find type 'Process' in scope
124 | }
125 |
126 | static func run(_ process: Process) throws {
| `- error: cannot find type 'Process' in scope
127 | if #available(macOS 10.13, *) {
128 | try process.run()
[3/14] Compiling Commands Commands.swift
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:126:30: error: cannot find type 'Process' in scope
124 | }
125 |
126 | static func run(_ process: Process) throws {
| `- error: cannot find type 'Process' in scope
127 | if #available(macOS 10.13, *) {
128 | try process.run()
[4/14] Compiling Commands CommandsAlias.swift
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:126:30: error: cannot find type 'Process' in scope
124 | }
125 |
126 | static func run(_ process: Process) throws {
| `- error: cannot find type 'Process' in scope
127 | if #available(macOS 10.13, *) {
128 | try process.run()
[5/14] Compiling Commands CommandsArguments.swift
[6/15] Compiling Commands CommandsResponse.swift
[7/15] Compiling Commands CommandsResult.swift
[8/15] Compiling Commands CommandsTask.swift
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:106:55: error: cannot find type 'Process' in scope
104 |
105 | public extension Commands.Task {
106 | static func prepare(_ request: Commands.Request) -> Process {
| `- error: cannot find type 'Process' in scope
107 | let process = Process()
108 | if #available(macOS 10.13, *) {
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:126:30: error: cannot find type 'Process' in scope
124 | }
125 |
126 | static func run(_ process: Process) throws {
| `- error: cannot find type 'Process' in scope
127 | if #available(macOS 10.13, *) {
128 | try process.run()
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:62:13: error: cannot find 'DispatchQueue' in scope
60 | if data.count > 0,
61 | let result = String(data: data, encoding: .utf8)?.trimmingCharacters(in: .whitespacesAndNewlines) {
62 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
63 | output(result)
64 | }
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:58:41: error: value of type 'FileHandle' has no member 'readabilityHandler'
56 | let outputPipe = Pipe()
57 | process.standardOutput = outputPipe
58 | outputPipe.fileHandleForReading.readabilityHandler = { (handler) in
| `- error: value of type 'FileHandle' has no member 'readabilityHandler'
59 | let data = handler.availableData
60 | if data.count > 0,
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:58:65: error: cannot infer type of closure parameter 'handler' without a type annotation
56 | let outputPipe = Pipe()
57 | process.standardOutput = outputPipe
58 | outputPipe.fileHandleForReading.readabilityHandler = { (handler) in
| `- error: cannot infer type of closure parameter 'handler' without a type annotation
59 | let data = handler.availableData
60 | if data.count > 0,
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:75:13: error: cannot find 'DispatchQueue' in scope
73 | if data.count > 0,
74 | let result = String(data: data, encoding: .utf8)?.trimmingCharacters(in: .whitespacesAndNewlines) {
75 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
76 | errorOutput(result)
77 | }
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:71:40: error: value of type 'FileHandle' has no member 'readabilityHandler'
69 | let errorPipe = Pipe()
70 | process.standardError = errorPipe
71 | errorPipe.fileHandleForReading.readabilityHandler = { (handler) in
| `- error: value of type 'FileHandle' has no member 'readabilityHandler'
72 | let data = handler.availableData
73 | if data.count > 0,
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:71:64: error: cannot infer type of closure parameter 'handler' without a type annotation
69 | let errorPipe = Pipe()
70 | process.standardError = errorPipe
71 | errorPipe.fileHandleForReading.readabilityHandler = { (handler) in
| `- error: cannot infer type of closure parameter 'handler' without a type annotation
72 | let data = handler.availableData
73 | if data.count > 0,
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:90:7: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
88 | errorPipe.fileHandleForReading.readabilityHandler = nil
89 | }
90 | } catch let error {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
91 | print(error.localizedDescription)
92 | }
/host/spi-builder-workspace/Sources/Commands/CommandsTask.swift:107:19: error: cannot find 'Process' in scope
105 | public extension Commands.Task {
106 | static func prepare(_ request: Commands.Request) -> Process {
107 | let process = Process()
| `- error: cannot find 'Process' in scope
108 | if #available(macOS 10.13, *) {
109 | process.executableURL = URL(fileURLWithPath: request.executableURL)
[9/15] Compiling Commands CommandsDashcTransformer.swift
[10/15] Compiling Commands CommandsRequest.swift
[11/15] Compiling Commands CommandsENV.swift
BUILD FAILURE 6.1 wasm