Import the shared LIFECYCLE_SCHEMA_VERSION constant
Intent: Replace the implicit, hard-coded schema version with an authoritative constant so every guest script references a single source of truth for the result-contract version.
Affected files: crates/pikaci/src/executor.rs
@@ -11,9 +11,10 @@ use anyhow::{Context, anyhow, bail};
use pika_cloud::{
- CLOUD_GUEST_LOG_PATH, EVENTS_PATH, GUEST_REQUEST_PATH, IncusGuestRunRequest, RESULT_PATH,
- RuntimeResultStatus, RuntimeTerminalResult, STATUS_PATH, encode_runtime_terminal_result_pretty,
- load_runtime_terminal_result, runtime_terminal_result_for_exit_code,
+ CLOUD_GUEST_LOG_PATH, EVENTS_PATH, GUEST_REQUEST_PATH, IncusGuestRunRequest,
+ LIFECYCLE_SCHEMA_VERSION, RESULT_PATH, RuntimeResultStatus, RuntimeTerminalResult, STATUS_PATH,
+ encode_runtime_terminal_result_pretty, load_runtime_terminal_result,
+ runtime_terminal_result_for_exit_code,
The production use block in executor.rs now imports LIFECYCLE_SCHEMA_VERSION from the pika_cloud crate alongside the other cloud constants. This is the constant that will replace every literal 1 previously embedded in the guest script template.