Include file permissions in cache key (#3104)

This commit is contained in:
Charlie Marsh 2023-02-21 18:20:06 -05:00 committed by GitHub
parent fd638a2e54
commit 18800c6884
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 27 deletions

View file

@ -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 {