Expand description
Database and filesystem state helpers for installation.
This module is responsible for the persistence side of the install flow. It validates whether a package can be installed, removes stale failed state, records the package as installing, and flips the status to either installed or failed once the engine phase completes.
Keeping these transitions isolated makes the outer install orchestration easier to reason about and gives rollback a single place to update package status.
Structsยง
- Command
Conflict - A command already owned by a different package.
- Install
Target Inspection - Read-only inspection of the current install target.
Enumsยง
- Install
State Error - Errors raised while preparing or updating install state.
- Install
Target State - The current state of an install target before any mutation occurs.
Functionsยง
- inspect_
command_ ๐conflicts - inspect_
install_ ๐target_ state - inspect_
install_ target_ with_ commands - Inspect the target install state without mutating the database or disk.
- installing_
package ๐ - mark_
failed - Mark a package as failed.
- mark_
installing - Insert a package record marked as installing.
- prepare_
install_ target - Validate the target install path and clear stale failed state if present.
- prepare_
install_ target_ with_ commands - Validate the target install path and clear stale failed state if present.
- update_
installing_ identity
Type Aliasesยง
- Result
- Convenience result type for install-state operations.