diff --git a/src/cache.rs b/src/cache.rs index 661b5b5530..9b45f329a9 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -68,7 +68,11 @@ fn cache_dir() -> &'static str { } fn cache_key(path: &Path) -> String { - format!("{}@{}", path.to_string_lossy(), VERSION) + format!( + "{}@{}", + path.canonicalize().unwrap().to_string_lossy(), + VERSION + ) } pub fn get(path: &Path, mode: &Mode) -> Option> {