diff --git a/src/cache.rs b/src/cache.rs index ba3d21f..cec66c4 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -97,6 +97,7 @@ fn get_default_version(modulepath: &str, modulename: &str) -> bool { }; let file = BufReader::new(file); + // if there are multiple entries in .version, the last one counts for (_, line) in file.lines().enumerate() { buffer = line.unwrap(); }