Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix store path #3

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading