From 0e65b3c607d0226649b4a9091aa574dd73d843cf Mon Sep 17 00:00:00 2001 From: refcell Date: Wed, 18 Oct 2023 18:08:08 -0400 Subject: [PATCH] fix dep management invocations --- bin/opup/src/cli.rs | 6 ++++-- bin/opup/src/up.rs | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/opup/src/cli.rs b/bin/opup/src/cli.rs index 9dc10ea..3982ff6 100644 --- a/bin/opup/src/cli.rs +++ b/bin/opup/src/cli.rs @@ -40,8 +40,6 @@ pub fn run() -> Result<()> { crate::banners::banner()?; - crate::runner::run_until_ctrl_c(async { crate::deps::DependencyManager::sync().await })?; - // Dispatch on the specified subcommand, // running the `up` subcommand by default. match command { @@ -53,6 +51,10 @@ pub fn run() -> Result<()> { Command::Nuke => unimplemented!("nuke command not yet implemented"), Command::Clean => unimplemented!("clean command not yet implemented"), Command::Deps => { + tracing::info!(target: "opup", "Installing dependencies..."); + crate::runner::run_until_ctrl_c(async { + crate::deps::DependencyManager::sync().await + })?; tracing::info!(target: "opup", "Dependencies installed."); Ok(()) } diff --git a/bin/opup/src/up.rs b/bin/opup/src/up.rs index 5041d59..f327b9f 100644 --- a/bin/opup/src/up.rs +++ b/bin/opup/src/up.rs @@ -39,6 +39,8 @@ impl UpCommand { async fn execute(&self) -> Result<()> { tracing::info!("bootstrapping op stack"); + crate::deps::DependencyManager::sync().await?; + if self.devnet { tracing::info!("Building default devnet stack"); let config = Config::default().force_overwrites(self.force);