Skip to content

Commit

Permalink
fix dep management invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Oct 18, 2023
1 parent ef1d5e6 commit 0e65b3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/opup/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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(())
}
Expand Down
2 changes: 2 additions & 0 deletions bin/opup/src/up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0e65b3c

Please sign in to comment.