summaryrefslogtreecommitdiffstats
path: root/src/commands/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/build.rs')
-rw-r--r--src/commands/build.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/build.rs b/src/commands/build.rs
index 3813f95..60c61e7 100644
--- a/src/commands/build.rs
+++ b/src/commands/build.rs
@@ -16,6 +16,7 @@ use tokio::sync::RwLock;
use crate::config::*;
use crate::filestore::ReleaseStore;
use crate::filestore::StagingStore;
+use crate::filestore::path::StoreRoot;
use crate::job::JobResource;
use crate::job::JobSet;
use crate::orchestrator::OrchestratorSetup;
@@ -125,7 +126,7 @@ pub async fn build(matches: &ArgMatches,
let p = config.releases_directory();
debug!("Loading release directory: {}", p.display());
- let r = ReleaseStore::load(&p, bar_release_loading.clone());
+ let r = ReleaseStore::load(StoreRoot::new(p.clone())?, bar_release_loading.clone());
if r.is_ok() {
bar_release_loading.finish_with_message("Loaded releases successfully");
} else {
@@ -150,7 +151,7 @@ pub async fn build(matches: &ArgMatches,
}
debug!("Loading staging directory: {}", p.display());
- let r = StagingStore::load(&p, bar_staging_loading.clone());
+ let r = StagingStore::load(StoreRoot::new(p.clone())?, bar_staging_loading.clone());
if r.is_ok() {
bar_staging_loading.finish_with_message("Loaded staging successfully");
} else {