mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Include file permissions in cache key (#3104)
This commit is contained in:
parent
fd638a2e54
commit
18800c6884
2 changed files with 17 additions and 27 deletions
|
@ -129,7 +129,9 @@ pub fn lint_path(
|
|||
);
|
||||
|
||||
// Purge the cache.
|
||||
cache::del(path, package.as_ref(), settings, autofix.into());
|
||||
if let Some(metadata) = metadata {
|
||||
cache::del(path, package.as_ref(), &metadata, settings, autofix.into());
|
||||
}
|
||||
} else {
|
||||
// Re-populate the cache.
|
||||
if let Some(metadata) = metadata {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue