pub fn read(root: &Path) -> Result<Lock, String>Expand description
Read root’s lockfile. A missing file is an empty map at the current
version, not an error (a fresh repo has accepted nothing yet). A file
without a version key predates the field and reads as v1.