Skip to main content

check_flake

Function check_flake 

Source
pub fn check_flake(
    flake_dir: &Path,
) -> Result<FlakeCheckResult, FlakeLockUpdateError>
Expand description

Validate a flake directory’s structure and lock file.

Checks:

  1. flake.nix exists
  2. flake.lock (if present) is valid JSON and parseable
  3. The flake can be evaluated by the native evaluator