fix: create directory before canonicalizing

This commit is contained in:
daimond113 2024-08-11 18:29:48 +02:00
parent c413d8aa22
commit 7a8376ebad
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -111,6 +111,7 @@ fn run() -> anyhow::Result<()> {
let token = get_token()?;
let home_cas_dir = data_dir.join("cas");
create_dir_all(&home_cas_dir).expect("failed to create cas directory");
let project_root = get_root(&cwd);
let cas_dir = if get_root(&home_cas_dir) == project_root {
home_cas_dir