Nucleic: Gitea Runner macOS VM Support
This commit is contained in:
@@ -85,9 +85,10 @@ struct VMCommand: AsyncParsableCommand {
|
||||
} catch {
|
||||
CLI.error("\(error)")
|
||||
await session.teardown()
|
||||
// Fully qualified: inside a ParsableCommand a bare `exit`
|
||||
// resolves to ParsableCommand.exit(withError:).
|
||||
await MainActor.run { Foundation.exit(1) }
|
||||
// Not `MainActor.run`: the main actor is parked inside
|
||||
// `app.run()` for the life of the process, so hopping onto
|
||||
// it to exit is its own deadlock. See `VZAppRuntime.run`.
|
||||
VZAppRuntime.flushAndExit(1)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user