pub fn locked(root: &Path) -> Option<String>Expand description
The version the lock file records for this crate.
Only the entry whose name is this crate’s: a dependency that happens to be at the same
version is a different package and is never read or written here.
use majordomus_cli::release::version::locked;
let dir = tempfile::tempdir().unwrap();
// No lock file at all is `None`, never a guess.
assert_eq!(locked(dir.path()), None);