pub fn write(root: &Path, lock: &LockFile) -> Result<(), MarsError>Expand description
Write the lock file atomically to the given root directory.
Keys are sorted deterministically for clean git diffs (IndexMap preserves insertion order, so callers should ensure sorted order when building).