pub const LOCKFILE_VERSION: u32 = 1;Expand description
Current lockfile schema version. Bump when the on-disk layout
changes in a way an older knack couldn’t safely interpret.
Backward compatibility is one-way: a new knack reading an old
lockfile should keep working (with default values for new fields).
An old knack reading a new lockfile errors loudly rather than
guessing — that’s what Lockfile::ensure_supported_version
enforces.