Skip to main content

Module flake_lock

Module flake_lock 

Source
Expand description

Native flake lock management — update, check, write. Native flake lock management — update, check, and write flake.lock.

Provides update_input / update_all_inputs to resolve latest revisions for locked flake inputs (replacing nix flake update), and check_flake to validate a flake directory (replacing nix flake check).

Network-dependent operations (GitHub API, git ls-remote) are gated behind the SUI_TEST_ONLINE=1 environment variable in tests.

Structs§

FlakeCheckResult
Result of validating a flake directory.

Enums§

FlakeLockUpdateError
Errors that can occur during flake lock operations.

Functions§

check_flake
Validate a flake directory’s structure and lock file.
get_input_rev
Get the locked revision for a specific input.
list_inputs
List all root-level input names from a flake.lock.
update_all_inputs
Update all root-level inputs in a flake.lock file.
update_input
Update a single input in a flake.lock file to its latest revision.