Skip to content

Commit

Permalink
fix store path
Browse files Browse the repository at this point in the history
Signed-off-by: Phani Sajja <[email protected]>
  • Loading branch information
sajjaphani committed May 7, 2024
1 parent ebd5d08 commit 1c4d717
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/auto_build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{
collections::{BTreeMap, BTreeSet, HashMap, HashSet},
fmt::Display,
fs::{self, File},
fs::File,
path::{Path, PathBuf},
sync::{mpsc::channel, Arc, RwLock},
time::Instant,
Expand All @@ -19,6 +19,7 @@ use diesel::{

use ignore::WalkBuilder;
use lazy_static::lazy_static;
use path_absolutize::Absolutize;
use petgraph::{algo, stable_graph::NodeIndex};
use serde::{Deserialize, Serialize};
use thiserror::Error;
Expand Down Expand Up @@ -364,7 +365,8 @@ impl AutoBuildContext {
let store_path = if store_path.is_absolute() {
store_path.clone()
} else {
fs::canonicalize(auto_build_ctx_path.as_ref().join(store_path))?
auto_build_ctx_path.as_ref().join(store_path)
.absolutize()?.to_path_buf()
};
let store = Store::new(&store_path).with_context(|| {
format!(
Expand Down

0 comments on commit 1c4d717

Please sign in to comment.