mirror of https://github.com/astral-sh/ruff
Use absolute paths for cache
This commit is contained in:
parent
1768c4b7d3
commit
f01707b2ae
|
|
@ -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<Vec<Message>> {
|
||||
|
|
|
|||
Loading…
Reference in New Issue