Build Information
Failed to build SwiftSystemd, reference 1.0.0 (d343aa
), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 03:00:46 UTC.
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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MihaelIsaev/SwiftSystemd.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/MihaelIsaev/SwiftSystemd
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at d343aa2 🧹 Cleanup
Cloned https://github.com/MihaelIsaev/SwiftSystemd.git
Revision (git rev-parse @):
d343aa249d7ea6c3cb56e822204143caa07dfa33
SUCCESS checkout https://github.com/MihaelIsaev/SwiftSystemd.git at 1.0.0
Fetching https://github.com/MihaelIsaev/SwiftBash
Fetching https://github.com/vapor/console-kit
[1/15] Fetching swiftbash
[16/5485] Fetching swiftbash, console-kit
Fetched https://github.com/MihaelIsaev/SwiftBash from cache (1.16s)
Fetched https://github.com/vapor/console-kit from cache (1.16s)
Computing version for https://github.com/MihaelIsaev/SwiftBash
Computed https://github.com/MihaelIsaev/SwiftBash at 1.0.0 (2.84s)
Computing version for https://github.com/vapor/console-kit
Computed https://github.com/vapor/console-kit at 4.15.1 (0.46s)
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio.git
[1/3723] Fetching swift-log
[3724/75791] Fetching swift-log, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (3.99s)
Fetched https://github.com/apple/swift-nio.git from cache (3.99s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.52s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.77.0 (0.62s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/1569] Fetching swift-atomics
[111/5488] Fetching swift-atomics, swift-system
[1374/21091] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.83s)
Fetched https://github.com/apple/swift-system.git from cache (1.83s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.83s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.45s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.47s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.68s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.77.0
Creating working copy for https://github.com/vapor/console-kit
Working copy of https://github.com/vapor/console-kit resolved at 4.15.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
Creating working copy for https://github.com/MihaelIsaev/SwiftBash
Working copy of https://github.com/MihaelIsaev/SwiftBash resolved at 1.0.0
========================================
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": "swiftsystemd",
"name": "SwiftSystemd",
"url": "https://github.com/MihaelIsaev/SwiftSystemd.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftSystemd",
"dependencies": [
{
"identity": "console-kit",
"name": "console-kit",
"url": "https://github.com/vapor/console-kit",
"version": "4.15.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/console-kit",
"dependencies": [
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
},
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio.git",
"version": "2.77.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"dependencies": [
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics.git",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
}
]
},
{
"identity": "swiftbash",
"name": "SwiftBash",
"url": "https://github.com/MihaelIsaev/SwiftBash",
"version": "1.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftBash",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/MihaelIsaev/SwiftSystemd.git
[1/52] Fetching swiftsystemd
Fetched https://github.com/MihaelIsaev/SwiftSystemd.git from cache (0.66s)
Fetching https://github.com/vapor/console-kit from cache
Fetching https://github.com/MihaelIsaev/SwiftBash from cache
Fetched https://github.com/vapor/console-kit from cache (0.48s)
Fetched https://github.com/MihaelIsaev/SwiftBash from cache (0.48s)
Computing version for https://github.com/MihaelIsaev/SwiftBash
Computed https://github.com/MihaelIsaev/SwiftBash at 1.0.0 (0.02s)
Computing version for https://github.com/vapor/console-kit
Computed https://github.com/vapor/console-kit at 4.15.1 (0.03s)
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/apple/swift-nio.git from cache
Fetched https://github.com/apple/swift-nio.git from cache (0.79s)
Fetched https://github.com/apple/swift-log.git from cache (0.79s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.02s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.77.0 (0.02s)
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-atomics.git from cache (0.56s)
Fetched https://github.com/apple/swift-collections.git from cache (0.56s)
Fetched https://github.com/apple/swift-system.git from cache (0.56s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.02s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.03s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.02s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
Creating working copy for https://github.com/vapor/console-kit
Working copy of https://github.com/vapor/console-kit resolved at 4.15.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
Creating working copy for https://github.com/MihaelIsaev/SwiftBash
Working copy of https://github.com/MihaelIsaev/SwiftBash resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.77.0
Creating working copy for https://github.com/MihaelIsaev/SwiftSystemd.git
Working copy of https://github.com/MihaelIsaev/SwiftSystemd.git resolved at 1.0.0 (d343aa2)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Found 2 product dependencies
- console-kit
- SwiftBash
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/MihaelIsaev/SwiftSystemd.git
{
"dependencies" : [
{
"identity" : "console-kit",
"requirement" : {
"range" : [
{
"lower_bound" : "4.15.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/vapor/console-kit"
},
{
"identity" : "swiftbash",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/MihaelIsaev/SwiftBash"
}
],
"manifest_display_name" : "SwiftSystemd",
"name" : "SwiftSystemd",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "systemd",
"targets" : [
"systemd"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "systemdTests",
"module_type" : "SwiftTarget",
"name" : "systemdTests",
"path" : "Tests/systemdTests",
"sources" : [
"XCTestManifests.swift",
"systemdTests.swift"
],
"target_dependencies" : [
"systemd"
],
"type" : "test"
},
{
"c99name" : "systemd",
"module_type" : "SwiftTarget",
"name" : "systemd",
"path" : "Sources/systemd",
"product_dependencies" : [
"ConsoleKit",
"Bash"
],
"product_memberships" : [
"systemd"
],
"sources" : [
"Commands/DisableCommand.swift",
"Commands/EditCommand.swift",
"Commands/EnableCommand.swift",
"Commands/InstallCommand.swift",
"Commands/KillCommand.swift",
"Commands/LogsCommand.swift",
"Commands/ReloadDaemonCommand.swift",
"Commands/RestartCommand.swift",
"Commands/StartCommand.swift",
"Commands/StatusCommand.swift",
"Commands/StopCommand.swift",
"Commands/UninstallCommand.swift",
"Commands/VersionCommand.swift",
"Extensions/Console+Abort.swift",
"Extensions/String+Fragment.swift",
"Helpers/Journalctl.swift",
"Helpers/Swift.swift",
"Helpers/Systemctl.swift",
"Helpers/Users.swift",
"main.swift"
],
"type" : "executable"
}
],
"tools_version" : "5.8"
}
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/14] Write sources
[6/14] Write systemd-entitlement.plist
[7/14] Write sources
[8/14] Write swift-version--7754E27361AE5C74.txt
[9/21] Compiling c-nioatomics.c
[10/21] Compiling c-atomics.c
[12/27] Emitting module Logging
[13/27] Compiling Logging LogHandler.swift
[14/27] Compiling Logging Locks.swift
[15/27] Compiling Logging MetadataProvider.swift
[16/27] Compiling Logging Logging.swift
[17/27] Compiling NIOConcurrencyHelpers lock.swift
[18/27] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[19/27] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[20/27] Emitting module NIOConcurrencyHelpers
[21/27] Compiling NIOConcurrencyHelpers atomics.swift
[22/27] Compiling NIOConcurrencyHelpers NIOLock.swift
[23/54] Compiling ConsoleKitTerminal ConsoleClear.swift
[24/54] Compiling ConsoleKitTerminal Console+Ask.swift
[25/54] Compiling ConsoleKitTerminal Console+Choose.swift
[26/56] Compiling ConsoleKitTerminal Console+Confirm.swift
[27/56] Compiling ConsoleKitTerminal Console+Input.swift
[28/56] Compiling ConsoleKitTerminal Console+Center.swift
[29/56] Compiling ConsoleKitTerminal ConsoleStyle.swift
[30/56] Compiling ConsoleKitTerminal ConsoleText.swift
[31/56] Compiling ConsoleKitTerminal ConsoleTextFragment.swift
[32/56] Compiling ConsoleKitTerminal ActivityIndicatorState.swift
[33/56] Compiling ConsoleKitTerminal CustomActivity.swift
[34/56] Compiling ConsoleKitTerminal LoadingBar.swift
[35/56] Compiling ConsoleKitTerminal readpassphrase_linux.swift
[36/56] Compiling ConsoleKitTerminal AnySendableHashable.swift
[37/56] Emitting module ConsoleKitTerminal
[38/56] Compiling Bash Bash.swift
[39/56] Emitting module Bash
[40/56] Compiling ConsoleKitTerminal ConsoleLogger.swift
[41/56] Compiling ConsoleKitTerminal LoggerFragment.swift
[42/56] Compiling ConsoleKitTerminal ProgressBar.swift
[43/56] Compiling ConsoleKitTerminal Console+Clear.swift
[44/56] Compiling ConsoleKitTerminal Console+Ephemeral.swift
[45/56] Compiling ConsoleKitTerminal Console+Output.swift
[46/56] Compiling ConsoleKitTerminal Console+Wait.swift
[47/56] Compiling ConsoleKitTerminal ConsoleColor.swift
[48/56] Compiling ConsoleKitTerminal ActivityBar.swift
[49/56] Compiling ConsoleKitTerminal ActivityIndicator.swift
[50/56] Compiling ConsoleKitTerminal ActivityIndicatorRenderer.swift
[51/56] Compiling ConsoleKitTerminal ANSI.swift
[52/56] Compiling ConsoleKitTerminal Console.swift
[53/56] Compiling ConsoleKitTerminal Terminal.swift
[54/78] Emitting module ConsoleKitCommands
[55/80] Compiling ConsoleKitCommands AnyAsyncCommand.swift
[56/80] Compiling ConsoleKitCommands AsyncCommand.swift
[57/80] Compiling ConsoleKitCommands AsyncCommandGroup.swift
[58/80] Compiling ConsoleKitCommands Argument.swift
[59/80] Compiling ConsoleKitCommands CommandSignature.swift
[60/80] Compiling ConsoleKitCommands Commands.swift
[61/80] Compiling ConsoleKitCommands Console+Run.swift
[62/80] Compiling ConsoleKitCommands String+LevenshteinDistance.swift
[63/80] Compiling ConsoleKitCommands Utilities.swift
[64/80] Compiling ConsoleKitCommands Command.swift
[65/80] Compiling ConsoleKitCommands CommandContext.swift
[66/80] Compiling ConsoleKitCommands CommandError.swift
[67/80] Compiling ConsoleKitCommands GenerateAutocompleteCommand.swift
[68/80] Compiling ConsoleKitCommands MergedAsyncCommandGroup.swift
[69/80] Compiling ConsoleKitCommands Flag.swift
[70/80] Compiling ConsoleKitCommands Option.swift
[71/80] Compiling ConsoleKitCommands CommandGroup.swift
[72/80] Compiling ConsoleKitCommands CommandInput.swift
[73/80] Compiling ConsoleKitCommands ConsoleError.swift
[74/80] Compiling ConsoleKitCommands Completion.swift
[75/80] Compiling ConsoleKitCommands AsyncCommands.swift
[76/80] Compiling ConsoleKitCommands GenerateAsyncAutocompleteCommand.swift
[77/80] Compiling ConsoleKitCommands AnyCommand.swift
[78/82] Emitting module ConsoleKit
[79/82] Compiling ConsoleKit Exports.swift
[80/101] Compiling systemd ReloadDaemonCommand.swift
[81/101] Compiling systemd RestartCommand.swift
[82/101] Compiling systemd DisableCommand.swift
[83/101] Compiling systemd EditCommand.swift
[84/103] Compiling systemd String+Fragment.swift
[85/103] Compiling systemd Journalctl.swift
[86/103] Emitting module systemd
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Commands/VersionCommand.swift:11:16: warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | final class VersionCommand: Command {
11 | static var currentVersion = "1.0.0"
| |- warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'currentVersion' 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
12 |
13 | struct Signature: CommandSignature {
[87/103] Compiling systemd VersionCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Commands/VersionCommand.swift:11:16: warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | final class VersionCommand: Command {
11 | static var currentVersion = "1.0.0"
| |- warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'currentVersion' 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
12 |
13 | struct Signature: CommandSignature {
[88/103] Compiling systemd Console+Abort.swift
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Commands/VersionCommand.swift:11:16: warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | final class VersionCommand: Command {
11 | static var currentVersion = "1.0.0"
| |- warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'currentVersion' 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
12 |
13 | struct Signature: CommandSignature {
[89/103] Compiling systemd StartCommand.swift
[90/103] Compiling systemd StatusCommand.swift
[91/103] Compiling systemd Swift.swift
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:75:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
73 | group.leave()
74 | } else {
75 | resultData.append(data)
| `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Helpers/Systemctl.swift:199:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
197 | group.leave()
198 | } else {
199 | resultData.append(data)
| `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
200 | }
201 | }
[92/103] Compiling systemd Systemctl.swift
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:75:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
73 | group.leave()
74 | } else {
75 | resultData.append(data)
| `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Helpers/Systemctl.swift:199:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
197 | group.leave()
198 | } else {
199 | resultData.append(data)
| `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
200 | }
201 | }
[93/103] Compiling systemd StopCommand.swift
[94/103] Compiling systemd UninstallCommand.swift
[95/103] Compiling systemd KillCommand.swift
[96/103] Compiling systemd LogsCommand.swift
[97/103] Compiling systemd EnableCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:87:24: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
79 | }
80 |
81 | private func create(targets: [Swift.SwiftPackage.Target]?, systemctl: Systemctl, signature: Signature) {
| `- note: add '@MainActor' to make instance method 'create(targets:systemctl:signature:)' part of global actor 'MainActor'
82 | let target: String
83 | if let t = signature.target {
:
85 | } else {
86 | guard let targets = targets, targets.count > 0 else {
87 | return context.console.aborting()
| `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
88 | }
89 | if targets.count == 1 {
/Users/admin/builder/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
7 | let console: Console = Terminal()
8 | var input = CommandInput(arguments: CommandLine.arguments)
9 | var context = CommandContext(console: console, input: input)
| `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:92:26: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
79 | }
80 |
81 | private func create(targets: [Swift.SwiftPackage.Target]?, systemctl: Systemctl, signature: Signature) {
| `- note: add '@MainActor' to make instance method 'create(targets:systemctl:signature:)' part of global actor 'MainActor'
82 | let target: String
83 | if let t = signature.target {
:
90 | target = targets[0].name
91 | } else {
92 | target = context.console.choose(
| `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
93 | "Please choose the target of your app",
94 | from: targets.map { $0.name }
/Users/admin/builder/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
7 | let console: Console = Terminal()
8 | var input = CommandInput(arguments: CommandLine.arguments)
9 | var context = CommandContext(console: console, input: input)
| `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:98:45: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
96 | }
97 | }
98 | let buildType = signature.config ?? context.console.choose(
| `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
99 | "Please choose the target configuration",
100 | from: ["release", "debug"]
/Users/admin/builder/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
7 | let console: Console = Terminal()
8 | var input = CommandInput(arguments: CommandLine.arguments)
9 | var context = CommandContext(console: console, input: input)
| `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:102:38: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
100 | from: ["release", "debug"]
101 | ) { .init(stringLiteral: $0) }
102 | let user = signature.user ?? context.console.choose(
| `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
103 | "Please choose the user under which the service will run",
104 | from: Users.list(console: console)
/Users/admin/builder/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
7 | let console: Console = Terminal()
8 | var input = CommandInput(arguments: CommandLine.arguments)
9 | var context = CommandContext(console: console, input: input)
| `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
[98/103] Compiling systemd InstallCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:87:24: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
79 | }
80 |
81 | private func create(targets: [Swift.SwiftPackage.Target]?, systemctl: Systemctl, signature: Signature) {
| `- note: add '@MainActor' to make instance method 'create(targets:systemctl:signature:)' part of global actor 'MainActor'
82 | let target: String
83 | if let t = signature.target {
:
85 | } else {
86 | guard let targets = targets, targets.count > 0 else {
87 | return context.console.aborting()
| `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
88 | }
89 | if targets.count == 1 {
/Users/admin/builder/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
7 | let console: Console = Terminal()
8 | var input = CommandInput(arguments: CommandLine.arguments)
9 | var context = CommandContext(console: console, input: input)
| `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:92:26: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
79 | }
80 |
81 | private func create(targets: [Swift.SwiftPackage.Target]?, systemctl: Systemctl, signature: Signature) {
| `- note: add '@MainActor' to make instance method 'create(targets:systemctl:signature:)' part of global actor 'MainActor'
82 | let target: String
83 | if let t = signature.target {
:
90 | target = targets[0].name
91 | } else {
92 | target = context.console.choose(
| `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
93 | "Please choose the target of your app",
94 | from: targets.map { $0.name }
/Users/admin/builder/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
7 | let console: Console = Terminal()
8 | var input = CommandInput(arguments: CommandLine.arguments)
9 | var context = CommandContext(console: console, input: input)
| `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:98:45: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
96 | }
97 | }
98 | let buildType = signature.config ?? context.console.choose(
| `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
99 | "Please choose the target configuration",
100 | from: ["release", "debug"]
/Users/admin/builder/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
7 | let console: Console = Terminal()
8 | var input = CommandInput(arguments: CommandLine.arguments)
9 | var context = CommandContext(console: console, input: input)
| `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/Users/admin/builder/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:102:38: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
100 | from: ["release", "debug"]
101 | ) { .init(stringLiteral: $0) }
102 | let user = signature.user ?? context.console.choose(
| `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
103 | "Please choose the user under which the service will run",
104 | from: Users.list(console: console)
/Users/admin/builder/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
7 | let console: Console = Terminal()
8 | var input = CommandInput(arguments: CommandLine.arguments)
9 | var context = CommandContext(console: console, input: input)
| `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
[99/103] Compiling systemd Users.swift
[100/103] Compiling systemd main.swift
BUILD FAILURE 6.0 macosSpm