diff --git a/hive-c0re/src/meta.rs b/hive-c0re/src/meta.rs index e434d24..023ded4 100644 --- a/hive-c0re/src/meta.rs +++ b/hive-c0re/src/meta.rs @@ -92,7 +92,7 @@ pub async fn sync_agents( pub async fn prepare_deploy(name: &str) -> Result<()> { let dir = meta_dir(); let input = format!("agent-{name}"); - nix(&dir, &["flake", "lock", "--update-input", &input]).await + nix(&dir, &["flake", "update", &input]).await } /// Phase 2-success. Commits the staged `flake.lock` change with a @@ -127,7 +127,7 @@ pub async fn abort_deploy() -> Result<()> { pub async fn lock_update_for_rebuild(name: &str) -> Result<()> { let dir = meta_dir(); let input = format!("agent-{name}"); - nix(&dir, &["flake", "lock", "--update-input", &input]).await?; + nix(&dir, &["flake", "update", &input]).await?; if !git_is_clean(&dir).await? { git(&dir, &["add", "flake.lock"]).await?; git_commit(&dir, &format!("rebuild {name}: lock update")).await?; @@ -141,7 +141,7 @@ pub async fn lock_update_for_rebuild(name: &str) -> Result<()> { #[allow(dead_code)] pub async fn lock_update_hyperhive() -> Result<()> { let dir = meta_dir(); - nix(&dir, &["flake", "lock", "--update-input", "hyperhive"]).await?; + nix(&dir, &["flake", "update", "hyperhive"]).await?; if !git_is_clean(&dir).await? { git(&dir, &["add", "flake.lock"]).await?; git_commit(&dir, "bump hyperhive").await?;