Skip to main content

Module exit

Module exit 

Source
Expand description

Exit-code mapping (FR-011, FR-012): 0 clean, 1 policy violation, 2 execution error.

Enums§

ExecutionOutcome
Whether a check run’s execution hit a registry/parse failure independent of any --fail-on policy violation.

Constants§

EXIT_CLEAN
The process exited cleanly: no finding matched the --fail-on policy.
EXIT_EXECUTION_ERROR
A registry required by a non-offline run was unreachable, or another execution error occurred (a malformed deps.toml, an unreadable explicitly-given manifest path, …).
EXIT_POLICY_VIOLATION
At least one finding matched the --fail-on policy.

Functions§

exit_code
Computes the process exit code for a completed check run.
update_exit_code
Computes the process exit code for a completed update run (spec §5’s exit-code table, as amended by S3 — see below).