Skip to main content

discover_lockfiles

Function discover_lockfiles 

Source
pub fn discover_lockfiles(repo: &Repo) -> (Vec<PathBuf>, Vec<String>)
Expand description

Resolve the lockfile(s) for a repo: a single Cargo.lock at the root, or — when glob = true — every Cargo.lock within glob_max_depth of the root.

Returns the discovered paths plus any directory-walk errors. A swallowed walk error (e.g. an unreadable subdir) could hide a Cargo.lock, so the caller treats a non-empty error list as a gap (fail closed) rather than reporting the repo clean.