Skip to content

Commit

Permalink
Resolve cache-dir relative to project root
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Oct 14, 2023
1 parent ddffadb commit cf74d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_workspace/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ impl Configuration {
.cache_dir
.map(|dir| {
let dir = shellexpand::full(&dir);
dir.map(|dir| PathBuf::from(dir.as_ref()))
dir.map(|dir| fs::normalize_path_to(dir.as_ref(), project_root))
})
.transpose()
.map_err(|e| anyhow!("Invalid `cache-dir` value: {e}"))?,
Expand Down

0 comments on commit cf74d92

Please sign in to comment.